Subject: Re: __pa giving strange phys address on PPC

From: Benjamin Herrenschmidt <[email-masked]>
Date: Thu, 08 Jan 2009 11:25:08 +1100

On Wed, 2009-01-07 at 22:11 +0100, [email-masked] wrote:
> I used __pa on the result of an uncached_mem_alloc. 

No idea what uncached_mem_alloc() is but if that uses the consistent
memory stuff it won't work with __pa.

> Furthermore __pa should work on the return of a kmalloc?

Yes. But don't use that, just use the dma allocation/mapping functions
instead, they return to you both the pa and the dma_addr_t. This is
better for -many- reasons.

Cheers,
Ben.