aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-07-12 16:47:40 +0530
committerOliver O'Halloran <oohall@gmail.com>2019-08-15 17:52:26 +1000
commit9d57eb465222b33c317fde6f7c0d15ef255f989a (patch)
tree97521239fdbc8107240719ce9d4457bc0e171e18 /hdata
parentaf98c56312b4521985f40223209d64e7715bb49a (diff)
downloadskiboot-9d57eb465222b33c317fde6f7c0d15ef255f989a.zip
skiboot-9d57eb465222b33c317fde6f7c0d15ef255f989a.tar.gz
skiboot-9d57eb465222b33c317fde6f7c0d15ef255f989a.tar.bz2
hdata: Split MDST 'type' field to accommodate MPIPL
The MPIPL facility needs to store region and type information corresponding with each MDST entry. - data region : dump data regions (like DUMP_REGION_* ) - dump type : Reflects MDST entry usage (used by SYSDUMP -OR- FADUMP) The existing type field is currently not used by FSP and/or firmware, so it is safe to re-purpose it. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> [oliver: rebased] Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/spira.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hdata/spira.c b/hdata/spira.c
index 1bcbb6c..396c222 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -86,12 +86,14 @@ extern struct mdst_table init_mdst_table[];
__section(".mdst.data") struct mdst_table init_mdst_table[2] = {
{
.addr = CPU_TO_BE64(INMEM_CON_START | HRMOR_BIT),
- .type = CPU_TO_BE32(DUMP_REGION_CONSOLE),
+ .data_region = DUMP_REGION_CONSOLE,
+ .dump_type = DUMP_TYPE_SYSDUMP,
.size = CPU_TO_BE32(INMEM_CON_LEN),
},
{
.addr = CPU_TO_BE64(HBRT_CON_START | HRMOR_BIT),
- .type = CPU_TO_BE32(DUMP_REGION_HBRT_LOG),
+ .data_region = DUMP_REGION_HBRT_LOG,
+ .dump_type = DUMP_TYPE_SYSDUMP,
.size = CPU_TO_BE32(HBRT_CON_LEN),
},
};