aboutsummaryrefslogtreecommitdiff
path: root/include/opal-dump.h
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-07-12 16:47:48 +0530
committerOliver O'Halloran <oohall@gmail.com>2019-08-15 17:53:23 +1000
commit4f94bda6a3b9fe2dca8da11e1fb337ea2629be20 (patch)
tree61b54ce2c0bdf5ad3cb9f35e394b3ae918353ed5 /include/opal-dump.h
parent1ba3198bcdac8965c4e4c9364b08b888600d9324 (diff)
downloadskiboot-4f94bda6a3b9fe2dca8da11e1fb337ea2629be20.zip
skiboot-4f94bda6a3b9fe2dca8da11e1fb337ea2629be20.tar.gz
skiboot-4f94bda6a3b9fe2dca8da11e1fb337ea2629be20.tar.bz2
MPIPL: Define OPAL metadata area
We want to save some information (like crashing CPU PIR, kernel tags, etc) before triggering MPIPL. Post MPIPL we will use this information to retrieve dump metadata and create dump. MDRT table doesn't need 64K. Hence split MDRT table to accommodate metadata area. Finally define metadata structure. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> [oliver: rebased] Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include/opal-dump.h')
-rw-r--r--include/opal-dump.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/opal-dump.h b/include/opal-dump.h
index c05e810..77e505c 100644
--- a/include/opal-dump.h
+++ b/include/opal-dump.h
@@ -107,6 +107,16 @@ struct proc_reg_data {
uint64_t reg_val;
} __packed;
+/* Metadata to capture before triggering MPIPL */
+struct mpipl_metadata {
+ /* Crashing PIR is required to create OPAL dump */
+ uint32_t crashing_pir;
+ /* Kernel expects OPAL to presrve tag and pass it back via OPAL API */
+ uint64_t kernel_tag;
+ /* Post MPIPL kernel boot memory size */
+ uint64_t boot_mem_size;
+} __packed;
+
/* init opal dump */
extern void opal_mpipl_init(void);