* __pa(dma_alloc_coherent()) doesn't give physical address
@ 2007-02-26 15:54 DI BACCO ANTONIO - technolabs
2007-02-26 16:26 ` Dan Malek
0 siblings, 1 reply; 2+ messages in thread
From: DI BACCO ANTONIO - technolabs @ 2007-02-26 15:54 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 407 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 1382 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: __pa(dma_alloc_coherent()) doesn't give physical address
2007-02-26 15:54 __pa(dma_alloc_coherent()) doesn't give physical address DI BACCO ANTONIO - technolabs
@ 2007-02-26 16:26 ` Dan Malek
0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2007-02-26 16:26 UTC (permalink / raw)
To: DI BACCO ANTONIO - technolabs; +Cc: ppc embedded list
[-- Attachment #1: Type: text/plain, Size: 313 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1052 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-26 16:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-26 15:54 __pa(dma_alloc_coherent()) doesn't give physical address DI BACCO ANTONIO - technolabs
2007-02-26 16:26 ` Dan Malek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.