Re: [PATCH] arm64: mm: Fix ARCH_LOW_ADDRESS_LIMIT when !CONFIG_ZONE_DMA
From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2021-01-04 11:50:34
Also in:
lkml
From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2021-01-04 11:50:34
Also in:
lkml
On Fri, 18 Dec 2020 17:33:07 +0100, Nicolas Saenz Julienne wrote:
Systems configured with CONFIG_ZONE_DMA32, CONFIG_ZONE_NORMAL and !CONFIG_ZONE_DMA will fail to properly setup ARCH_LOW_ADDRESS_LIMIT. The limit will default to ~0ULL, effectively spanning the whole memory, which is too high for a configuration that expects low memory to be capped at 4GB. Fix ARCH_LOW_ADDRESS_LIMIT by falling back to arm64_dma32_phys_limit when arm64_dma_phys_limit isn't set. arm64_dma32_phys_limit will honour CONFIG_ZONE_DMA32, or span the entire memory when not enabled.
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: mm: Fix ARCH_LOW_ADDRESS_LIMIT when !CONFIG_ZONE_DMA
https://git.kernel.org/arm64/c/095507dc1350
--
Catalin
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel