Thread (8 messages) flat view 8 messages, 4 authors, 2007-07-24

Re: Kmalloc returns which address

From: Misbah khan <hidden>
Date: 2007-07-23 03:47:49

hi Scott

yes really it would really generate a machine check... but i guess if you
convert this virt address to physical address using __pa() then pass it to
the ioremap() i guess things will work .

Please correct me if i am wrong

regard 
misbah
 

Scott Wood-2 wrote:
suresh suresh wrote:
quoted
I want know the address return by kmalloc function? is it physical
address
or kernel virtual address.
Kernel virtual.
quoted
For Tx and Rx, hardware uses buffers, so I have to allocate buffers and 
pass
the pointer to hardware. Can I pass the pointer returned kmalloc?  or  I
should convert it into physical address?
You need to convert it; read Documentation/DMA-mapping.txt.

-Scott
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
-- 
View this message in context: http://www.nabble.com/Kmalloc-returns-which-address-tf4086826.html#a11737504
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help