arm64: kdump: defer the crashkernel reservation for platforms with no DMA memory...
authorBaoquan He <bhe@redhat.com>
Fri, 7 Apr 2023 01:15:07 +0000 (09:15 +0800)
committerWill Deacon <will@kernel.org>
Tue, 11 Apr 2023 18:24:46 +0000 (19:24 +0100)
commit504cae453f8222884486f77f1fd3e8e0aa317dd7
tree1d5974a7312a46612d032d1aa9a09de1903da6fe
parent04a2a7af3d977f5a54aed26ab54cf734b59dcdf3
arm64: kdump: defer the crashkernel reservation for platforms with no DMA memory zones

In commit 031495635b46 ("arm64: Do not defer reserve_crashkernel() for
platforms with no DMA memory zones"), reserve_crashkernel() is called
much earlier in arm64_memblock_init() to avoid causing base apge
mapping on platforms with no DMA meomry zones.

With taking off protection on crashkernel memory region, no need to call
reserve_crashkernel() specially in advance. The deferred invocation of
reserve_crashkernel() in bootmem_init() can cover all cases. So revert
the whole commit now.

Signed-off-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20230407011507.17572-4-bhe@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/memory.h
arch/arm64/mm/init.c