Subject: Re: virt_to_phys() in drivers w/dma - MPC8xxx

From: Scott Wood <[email-masked]>
Date: Mon, 25 Aug 2008 10:33:30 -0500

Russell McGuire wrote:
> So shouldn't we be using like dma_alloc_coherent, and then tracking the dma
> address separately as a variable, and use it when necessary instead of
> calling virt_to_phys()?

Yes.  On 8xxx (but not 8xx, and not with 36-bit memory), there'll be no 
practical difference, but the DMA mapping API *should* be used.

-Scott