Thread (1 message) 1 message, 1 author, 2004-03-23

Re: can device drivers return non-ram via vm_ops->nopage?

From: Russell King <hidden>
Date: 2004-03-23 15:50:45

Possibly related (same subject, not in this thread)

On Tue, Mar 23, 2004 at 04:36:41PM +0100, Andrea Arcangeli wrote:
On Tue, Mar 23, 2004 at 07:25:31AM -0800, Linus Torvalds wrote:
quoted
On Tue, 23 Mar 2004, Russell King wrote:
quoted
On Tue, Mar 23, 2004 at 01:34:39PM +0100, Andrea Arcangeli wrote:
quoted
anyways Linus vetoed the lazy approch so we probably should give it up
(the one thing I like most is to avoid the branch in the fast path).
I don't think he did - he vetoed adding another special condition to
the fast path, or returning non-RAM pages via ->nopage.
Indeed.
note that I was talking about non-ram, obviously ram pages can be
returned via ->nopage and that's what drivers are using already.
Let's not get distracted into the other problem areas.  What we're
talking about here is solving the "how to map memory returned from
dma_alloc_coherent()".

There's the related problem (which Jeff has - via82cxxx_audio.c)
which is effectively a scatter-gather dma_alloc_coherent() +
dma_coherent_mmap() problem.

Then there's the unrelated problem where ALSA wants to map buffers
on PCI devices coherently into user space.

The these are three distinct problems, and we should not confuse
them.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help