DMA using data buffer vmapped in kernel space
David Miller
davem at davemloft.net
Tue Mar 9 05:20:15 EST 2010
From: Russell King - ARM Linux <linux at arm.linux.org.uk>
Date: Tue, 9 Mar 2010 10:16:11 +0000
> It looks like the firmware interface may return a pointer to either the
> kernel binary itself for built-in firmware, or to a set of pages which
> have been vmap'd. In the former case, vmalloc_to_page() will fail.
Indeed, then you're right, the firmware layer would need to provide
the interface since only it knows where the memory is.
However, there's also no real portable way to compute physical
addresses from kernel image virtual addresses.
BTW, it's been my experience that drivers copy the firmware into a
locally allocated buffer exactly to avoid this problem.
More information about the linux-arm-kernel
mailing list