linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: James Simmons <jsimmons@edgeglobal.com>
To: "Stephen C. Tweedie" <sct@redhat.com>
Cc: Andrea Arcangeli <andrea@suse.de>, linux-mm@kvack.org
Subject: Re: mm->mmap_sem
Date: Mon, 27 Sep 1999 16:22:19 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.10.9909271616080.7835-100000@imperial.edgeglobal.com> (raw)
In-Reply-To: <14319.31833.53685.244682@dukat.scot.redhat.com>

> Hi,
> 
> On Sat, 25 Sep 1999 21:19:59 -0400 (EDT), James Simmons
> <jsimmons@edgeglobal.com> said:
> 
> > To be exactly I'm trying to do cooperative locking between a mmaping of
> > the accel region of /dev/gfx and the framebuffer region of /dev/fb. 
> 
> I thought you might be.  Look at the DRI (XI's direct rendering
> infrastructure): they implement a cooperative locking mechanism which
> optimises the fast case (current locker was also the last holder of the
> lock) not to require a syscall at all.

Already am peeking under the hood.

> Using any form of physical memory protection will be too slow.

Agree. 

> > I notice that after mmapping the kernel can no long control access to
> > the memory regions. So I need to block any process from accessing the
> > framebuffer while the accel engine is running. Since many low end
> > cards lock if you access the framebuffer and accel engine at the same
> > time.
> 
> I know.  The hardware sucks.  There is no fast way to deal with it.  The
> closest you might get to it is ia32 segmentation, but we don't support
> that in the kernel and never will.

Well if the number of cards that are broken this bad are small then I will
just not support such cards. If simulatenous access just screws up the
screen well that will not count. As long as crumy hardware is not allowed
to lock the machine.

> You still don't prevent a rogue application from locking the graphics
> adapter. 

Yuck. I rather not support that kind of hardware if that type of hardware 
is small in numbers. 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

  reply	other threads:[~1999-09-27 20:22 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-22 21:02 mm->mmap_sem James Simmons
1999-09-24  0:07 ` mm->mmap_sem Stephen C. Tweedie
1999-09-24 14:59   ` mm->mmap_sem James Simmons
1999-09-24 18:09     ` mm->mmap_sem Stephen C. Tweedie
1999-09-25  1:24       ` mm->mmap_sem James Simmons
1999-09-25 14:55         ` mm->mmap_sem Andrea Arcangeli
1999-09-25 16:50           ` mm->mmap_sem James Simmons
1999-09-25 17:06             ` mm->mmap_sem Andrea Arcangeli
1999-09-26  1:19               ` mm->mmap_sem James Simmons
1999-09-26 14:07                 ` mm->mmap_sem Andrea Arcangeli
1999-09-27  8:55                 ` mm->mmap_sem Marcus Sundberg
1999-09-27 19:31                   ` mm->mmap_sem James Simmons
1999-09-29 23:00                     ` mm->mmap_sem Stephen C. Tweedie
1999-09-30  0:17                       ` mm->mmap_sem James Simmons
1999-09-30  0:23                         ` mm->mmap_sem Benjamin C.R. LaHaise
1999-09-30 14:59                           ` mm->mmap_sem James Simmons
1999-09-30 15:15                             ` mm->mmap_sem Benjamin C.R. LaHaise
1999-09-30 16:05                               ` mm->mmap_sem James Simmons
1999-09-30 14:54                         ` mm->mmap_sem Stephen C. Tweedie
1999-09-27 14:16                 ` mm->mmap_sem Stephen C. Tweedie
1999-09-27 20:22                   ` James Simmons [this message]
1999-09-27 14:13             ` mm->mmap_sem Stephen C. Tweedie
1999-09-27  8:08     ` mm->mmap_sem Neil Conway

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.10.9909271616080.7835-100000@imperial.edgeglobal.com \
    --to=jsimmons@edgeglobal.com \
    --cc=andrea@suse.de \
    --cc=linux-mm@kvack.org \
    --cc=sct@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox