]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/mm/hotplug: Ensure early memory sections are all online
authorAnshuman Khandual <anshuman.khandual@arm.com>
Mon, 9 Nov 2020 04:28:57 +0000 (09:58 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 10 Nov 2020 18:44:12 +0000 (18:44 +0000)
commitbf8a076e4e4eeaa36d8bf2a19ebb59c54e227f56
treede2c0350d01daceea3f43538a33e8f456e211d0a
parent455b9032f4e1ea16fb86062dd3e4fe33b8e9687d
arm64/mm/hotplug: Ensure early memory sections are all online

This adds a validation function that scans the entire boot memory and makes
sure that all early memory sections are online. This check is essential for
the memory notifier to work properly, as it cannot prevent any boot memory
from offlining, if all sections are not online to begin with. Although the
boot section scanning is selectively enabled with DEBUG_VM.

Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Steve Capper <steve.capper@arm.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Link: https://lore.kernel.org/r/1604896137-16644-4-git-send-email-anshuman.khandual@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c