powerpc/fadump: setup additional parameters for dump capture kernel
authorHari Bathini <hbathini@linux.ibm.com>
Thu, 9 May 2024 11:57:54 +0000 (17:27 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 May 2024 06:36:10 +0000 (16:36 +1000)
commit683eab94da75bcf55a9c65e0c31d0529edebe86d
tree709d2b7b19383de9c91841183e0e5111260e2ad7
parent78d5cc15fb7d1b2683f0baf418a9a870c02319fb
powerpc/fadump: setup additional parameters for dump capture kernel

For fadump case, passing additional parameters to dump capture kernel
helps in minimizing the memory footprint for it and also provides the
flexibility to disable components/modules, like hugepages, that are
hindering the boot process of the special dump capture environment.

Set up a dedicated parameter area to be passed to the capture kernel.
This area type is defined as RTAS_FADUMP_PARAM_AREA. Sysfs attribute
'/sys/kernel/fadump/bootargs_append' is exported to the userspace to
specify the additional parameters to be passed to the capture kernel

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240509115755.519982-3-hbathini@linux.ibm.com
arch/powerpc/include/asm/fadump-internal.h
arch/powerpc/kernel/fadump.c
arch/powerpc/platforms/powernv/opal-fadump.c
arch/powerpc/platforms/pseries/rtas-fadump.c
arch/powerpc/platforms/pseries/rtas-fadump.h