[PATCH 01/10] ARM: change ARM_DMA_ZONE_SIZE into a variable

Arnd Bergmann arnd at arndb.de
Thu Jul 7 12:17:11 EDT 2011


On Thursday 07 July 2011, Nicolas Pitre wrote:
> > What is hardware specific is that the DMA devices can only address a
> > limited range of memory.  IMHO it's that which should be described in
> > DT, not that we'll have a DMA zone of X bytes in size.
> 
> I think that we all agree on the principle.  I certainly never intended 
> to suggest that the DMA zone size be stored as is in the device tree.

There is a way to specify DMA address ranges in the device tree, though
I forgot the exact format. It comes down to saying the device sees
memory range XXX to YYY as its local address AAA to BBB. We could use
that information at boot time to determine what the largest range
of memory is that is visible by all devices (and hope that it's at
the start of physical memory).

	Arnd



More information about the linux-arm-kernel mailing list