[PATCH RFC 1/4] of: get dma area lower limit
Christoph Lameter (Ampere)
cl at linux.com
Wed Jan 17 14:23:33 PST 2024
On Wed, 27 Dec 2023, Baruch Siach wrote:
> of_dma_get_max_cpu_address() returns the highest CPU address that
> devices can use for DMA. The implicit assumption is that all CPU
> addresses below that limit are suitable for DMA. However the
> 'dma-ranges' property this code uses also encodes a lower limit for DMA
> that is potentially non zero.
All of memory can be used for DMA by default (==ZONE_NORMAL). ZONE_DMA
defines a special range for devices that are unable to perform DMA to all
of memory. Usually due to the lack of address bit support.
So I guess that the platform in question here has as a general limit as to
what address spaces I/O devices can do DMA to?
More information about the linux-arm-kernel
mailing list