Re: DMA API issues

From: Linus Torvalds
Date: Mon Jun 21 2004 - 22:21:55 EST




On Mon, 21 Jun 2004, Jeff Garzik wrote:
>
> When I was writing sound/oss/via82cxxx_audio.c, Linus specifically
> recommended using ->nopage, which worked out quite well (modulo cleaning
> up VM_xxx flags).

It does need some architecture-specific support for getting the caching
behaviour right, but I do believe that as long as there is some "struct
page" that can be returned, together with a way of setting the
vm_page_prot bits right, it should be ok.

The argument at some point was that some architectures may not even _have_
a "struct page" for DMA memory, since it's not "normal" memory (ie "slow
memory" on m68k). However, I thought we all agreed that such a "struct
page" could be furnished if that architecture wants so support mmap'ing.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/