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

DI BACCO ANTONIO - technolabs Antonio.DiBacco at technolabs.it
Tue Feb 27 02:54:53 EST 2007


dma_alloc_coherent gives a kernel virtual address as a return address,
applying __pa I expected a physical address.
It doesn't happen, I receive an address far beyond my 16 MB ram.
Applying virt_to_bus doesn't give a physical address too.
OK, you can resort to dma_addr_t parameter of dma_alloc_coherent but is
there a reason for __pa not working on a kernel virtual address?
 
 
 
Bye,
Antonio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070226/2152d419/attachment.htm 


More information about the Linuxppc-embedded mailing list