__pa(dma_alloc_coherent()) doesn't give physical address

Dan Malek dan at embeddedalley.com
Tue Feb 27 03:26:33 EST 2007


On Feb 26, 2007, at 10:54 AM, DI BACCO ANTONIO - technolabs wrote:

> dma_alloc_coherent gives a kernel virtual address as a return address,

....and more.  Everything you need.
Read Documentation/DMA-API.txt

> applying __pa I expected a physical address.

You don't need to (and shouldn't) do this.


	-- Dan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070226/f106cf93/attachment.htm 


More information about the Linuxppc-embedded mailing list