powerpc/pseries/fadump: add support for multiple boot memory regions
authorHari Bathini <hbathini@linux.ibm.com>
Thu, 9 May 2024 11:57:53 +0000 (17:27 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 May 2024 06:36:10 +0000 (16:36 +1000)
commit78d5cc15fb7d1b2683f0baf418a9a870c02319fb
treeea3a6361476b14d363b0fee5e73a9a51f829a282
parent98ec6d38ee57a734123c6f5d42640804034024ef
powerpc/pseries/fadump: add support for multiple boot memory regions

Currently, fadump on pseries assumes a single boot memory region even
though f/w supports more than one boot memory region. Add support for
more boot memory regions to make the implementation flexible for any
enhancements that introduce other region types. For this, rtas memory
structure for fadump is updated to have multiple boot memory regions
instead of just one. Additionally, methods responsible for creating
the fadump memory structure during both the first and second kernel
boot have been modified to take these multiple boot memory regions
into account. Also, a new callback has been added to the fadump_ops
structure to get the maximum boot memory regions supported by the
platform.

Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240509115755.519982-2-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