powerpc/fadump: register kernel metadata address with opal
OPAL allows registering address with it in the first kernel and retrieving it after MPIPL. Setup kernel metadata and register its address with OPAL to use it for processing the crash dump. Signed-off-by: Hari Bathini <hbathini@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/156821345011.5656.13567765019032928471.stgit@hbathini.in.ibm.com
This commit is contained in:

committed by
Michael Ellerman

parent
6abec12c65
commit
742a265acc
@@ -97,6 +97,8 @@ struct fw_dump {
|
||||
unsigned long cpu_notes_buf_vaddr;
|
||||
unsigned long cpu_notes_buf_size;
|
||||
|
||||
u64 kernel_metadata;
|
||||
|
||||
int ibm_configure_kernel_dump;
|
||||
|
||||
unsigned long fadump_enabled:1;
|
||||
@@ -110,6 +112,8 @@ struct fw_dump {
|
||||
|
||||
struct fadump_ops {
|
||||
u64 (*fadump_init_mem_struct)(struct fw_dump *fadump_conf);
|
||||
u64 (*fadump_get_metadata_size)(void);
|
||||
int (*fadump_setup_metadata)(struct fw_dump *fadump_conf);
|
||||
int (*fadump_register)(struct fw_dump *fadump_conf);
|
||||
int (*fadump_unregister)(struct fw_dump *fadump_conf);
|
||||
int (*fadump_invalidate)(struct fw_dump *fadump_conf);
|
||||
|
Reference in New Issue
Block a user