[PATCH v2] arm64: Ignore any DMA offsets in the max_zone_phys() calculation

Nicolas Saenz Julienne nsaenzjulienne at suse.de
Thu Nov 19 04:51:19 EST 2020


On Wed, 2020-11-18 at 18:58 +0000, Catalin Marinas wrote:
> Currently, the kernel assumes that if RAM starts above 32-bit (or
> zone_bits), there is still a ZONE_DMA/DMA32 at the bottom of the RAM and
> such constrained devices have a hardwired DMA offset. In practice, we
> haven't noticed any such hardware so let's assume that we can expand
> ZONE_DMA32 to the available memory if no RAM below 4GB. Similarly,
> ZONE_DMA is expanded to the 4GB limit if no RAM addressable by
> zone_bits.
> 
> Signed-off-by: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>
> Cc: Robin Murphy <robin.murphy at arm.com>
> ---

Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>

On RPi4 and QEMU:
Tested-by: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>

Regards,
Nicolas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201119/42f0be30/attachment.sig>


More information about the linux-arm-kernel mailing list