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)
commitfdd99a4103c91a2067c096a4931518cc05ca9206
treede2c0350d01daceea3f43538a33e8f456e211d0a
parent9fb3d4a303380ea76ebf49d930a777dd9c9dbc25
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