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

From: Jaroslav Kysela
Date: Sat Mar 20 2004 - 11:03:49 EST


On Sat, 20 Mar 2004, Russell King wrote:

> Actually, ALSA is broken in that respect - it isn't portable as it
> stands. It isn't the API which is broken - it's ALSA which is broken.
> Performing virt_to_page() on any non-direct mapped RAM page (which
> means the value returned from dma_alloc_coherent or pci_alloc_consistent)
> is undefined.
>
> One of my current projects is fixing this crap in ALSA.

Yes, but if there's no API in the kernel code allowing to obtain page
pointers using any value returned from dma_alloc_coherent(), then we
cannot fix this problem.

So, it's not much subsystem (ALSA) problem, but kernel core is not matured
enough.

The same problem is for the cache coherency for mmaped pages.

Jaroslav

-----
Jaroslav Kysela <perex@xxxxxxx>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-
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/