]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64/kdump: Limit kdump base to 512MB
authorHari Bathini <hbathini@linux.ibm.com>
Mon, 12 Sep 2022 06:50:31 +0000 (12:20 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:09 +0000 (19:22 +1000)
commitd33e3d1c513e8bccbc5d395a01cff5d7977860aa
treef4b9a26bb14302a02d83706fcd3102394bc88029
parent653797f9a8485dcad10e9a55bea151e6fcba4ee5
powerpc/64/kdump: Limit kdump base to 512MB

Since commit 878ad25e4c7ac ("powerpc: Fix up the kdump base cap to
128M") memory for kdump kernel has been reserved at an offset of 128MB.
This held up well for a long time before running into boot failure on
LPARs having a lot of cores. Commit 30135a9042bdf ("powerpc: Set
crashkernel offset to mid of RMA region") fixed this boot failure by
moving the offset to mid of RMA region. This change meant the offset is
either 256MB or 512MB on LPARs as ppc64_rma_size was 512MB or 1024MB
owing to commit bc0f522868008 ("powerpc/book3s64/ radix: Fix boot
failure with large amount of guest memory").

But ppc64_rma_size can be larger as well with newer f/w. So, limit
crashkernel reservation offset to 512MB to avoid running into boot
failures during kdump kernel boot, due to RTAS or other allocation
restrictions.

Also, while here, use SZ_128M instead of opening coding it.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Tested-by: Sachin Sant <sachinp@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220912065031.57416-1-hbathini@linux.ibm.com
arch/powerpc/kexec/core.c