On Wed, 31 Mar 2004, Russell King wrote:

> The correct interface is dma_mmap_coherent().
> 
> I'm actually tempted to provide dma_mmap_coherent() and just let
> everyone else whinge and moan that the API doesn't meet their
> expectations.

Thanks. Evolution is the best way.

> BTW, ARM also needs the mark_pages and unmark_pages functions commented
> out since they're also trying to use virt_to_page() on virtual addresses
> that this function is not supposed to - except for the ISA DMA case
> (and yes, we have ISA DMA-based sound cards as well.)

It's another inconsistency. We need to mark these pages for the x86 
architecture, because dma_alloc_coherent does not do this for us.

Do you see any reason to ommit this settings for some cases (including 
for ISA bus)? I think that dma_alloc_coherent should offer consistent
API - thus mark all allocated pages as reserved for all cases.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to