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.
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Reply via email to