[Skiboot] [PATCH v2 03/17] hdata: Define MDDT and MDRT table

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Fri May 4 20:28:03 AEST 2018


MDDT and MDRT are part of SPIRAH and used in MPIPL.
  - MDDT is used by OPAL to pass destination memory details to hostboot.
  - MDRT is used by hostboot to pass post dump result table to OPAL.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 include/opal-dump.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/include/opal-dump.h b/include/opal-dump.h
index 0dedeae86..faa4a1639 100644
--- a/include/opal-dump.h
+++ b/include/opal-dump.h
@@ -55,4 +55,29 @@ struct mdst_table {
 	__be32	size;
 } __packed;
 
+/* Memory dump destination table (MDDT) */
+struct mddt_table {
+	__be64	addr;
+	uint8_t	data_region;	/* Same as mdst_table->data_region */
+	uint8_t reserved[3];
+	__be32	size;
+} __packed;
+
+/*
+ * Memory dump result table (MDRT)
+ *
+ * List of the memory ranges that have been included in the dump. This table is
+ * filled by hostboot and passed to OPAL on second boot. OPAL/payload will use
+ * this table to extract the dump.
+ */
+struct mdrt_table {
+	__be64	src_addr;
+	__be64	dest_addr;
+	uint8_t	data_region;	/* Same as mdst_table->data_region */
+	uint8_t dump_type;	/* Same as mdst_table->dump_type */
+	__be16	reserved;
+	__be32	size;
+	__be64	padding;
+} __packed;
+
 #endif	/* __OPAL_DUMP_H */
-- 
2.14.3



More information about the Skiboot mailing list