<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=606374515-26022007>dma_alloc_coherent
gives a kernel virtual address as a return address, applying __pa I expected a
physical address.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=606374515-26022007>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.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=606374515-26022007>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?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=606374515-26022007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=606374515-26022007></SPAN></FONT><FONT
face=Arial size=2><SPAN class=606374515-26022007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=606374515-26022007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=606374515-26022007>Bye,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=606374515-26022007>Antonio.</SPAN></FONT></DIV></BODY></HTML>