Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Russell King - ARM Linux
Date: Wednesday, October 1, 2008 - 7:06 am

On Wed, Oct 01, 2008 at 07:07:42AM -0500, Christoph Lameter wrote:

Because it is a virtual address.  It has to be.  You're using __pa() on it,
and __pa() ONLY takes a virtual address.


That's no clearer.  Are they physical addresses?  Or are they virtual
addresses?  Can't guess that from the names.


Semantically disagree.

If you only have a controller which can address 1MB of memory (yes, they do
exist) then MAX_DMA_ADDRESS must be PAGE_OFFSET + 1MB, otherwise you have
precisely NO way to obtain memory from the kernel for this DMA controller
- and that means you want the DMA zone to be sized to 1MB.  So _indirectly_
it's true that MAX_DMA_ADDRESS is the highest possible address for the DMA
zone.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
wrong usage of MAX_DMA_ADDRESS in bootmem.h, Nicolas Pitre, (Tue Sep 30, 12:35 pm)
Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h, Christoph Lameter, (Tue Sep 30, 12:56 pm)
Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h, Russell King - ARM Linux, (Tue Sep 30, 1:12 pm)
Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h, Nicolas Pitre, (Tue Sep 30, 2:09 pm)
Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h, Christoph Lameter, (Wed Oct 1, 5:07 am)
Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h, Russell King - ARM Linux, (Wed Oct 1, 7:06 am)
Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h, Christoph Lameter, (Wed Oct 1, 7:50 am)
Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h, Russell King - ARM Linux, (Wed Oct 1, 8:02 am)
Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h, Christoph Lameter, (Thu Oct 2, 9:49 am)
Re: wrong usage of MAX_DMA_ADDRESS in bootmem.h, Russell King - ARM Linux, (Thu Oct 2, 12:06 pm)