aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2019-07-12 16:47:39 +0530
committerOliver O'Halloran <oohall@gmail.com>2019-08-15 17:52:07 +1000
commitaf98c56312b4521985f40223209d64e7715bb49a (patch)
tree7600002cbfe57d73459ee1f9e7dc894620d957c6 /hw
parentca222757f288bcff710ff557f49a9ec18ee588a4 (diff)
downloadskiboot-af98c56312b4521985f40223209d64e7715bb49a.zip
skiboot-af98c56312b4521985f40223209d64e7715bb49a.tar.gz
skiboot-af98c56312b4521985f40223209d64e7715bb49a.tar.bz2
FSP/MDST: Rename fsp-mdst-table.c -> fsp-sysdump.c
MDST is a ntuple inside SPIRAH. Its just a interface to pass memory ranges to be captured as part of dump to FSP/Hostboot. Today OPAL is using MDST ntuple to pass list of memory region (mostly OPAL console and host dmesg) to be collected as part of SYSDUMP. Soon we are going to support OPAL MPIPL feature (aka Memory Preserving IPL). Even MPIPL uses MDST/MDDT table. Hence rename files based on feature instead of some table name: - fsp-mdst-table.c -> fsp-sysdump.c - fsp-mdst-table.h -> opal-dump.h (This will cater both SYSDUMP and MPIPL) - Rename structure -> dump_mdst_table -> mdst_table This patch does renaming and header file adjustment. No functionality changes. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> [oliver: rebased] Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/fsp/Makefile.inc2
-rw-r--r--hw/fsp/fsp-sysdump.c (renamed from hw/fsp/fsp-mdst-table.c)6
2 files changed, 4 insertions, 4 deletions
diff --git a/hw/fsp/Makefile.inc b/hw/fsp/Makefile.inc
index b078a4d..21dc52a 100644
--- a/hw/fsp/Makefile.inc
+++ b/hw/fsp/Makefile.inc
@@ -4,7 +4,7 @@ FSP_OBJS = fsp.o fsp-console.o fsp-rtc.o fsp-nvram.o fsp-sysparam.o
FSP_OBJS += fsp-surveillance.o fsp-codeupdate.o fsp-sensor.o
FSP_OBJS += fsp-diag.o fsp-leds.o fsp-mem-err.o fsp-op-panel.o
FSP_OBJS += fsp-elog-read.o fsp-elog-write.o fsp-epow.o fsp-dpo.o
-FSP_OBJS += fsp-dump.o fsp-mdst-table.o fsp-chiptod.o fsp-ipmi.o
+FSP_OBJS += fsp-dump.o fsp-sysdump.o fsp-chiptod.o fsp-ipmi.o
FSP_OBJS += fsp-attn.o fsp-occ.o fsp-psi.o
FSP = hw/fsp/built-in.a
diff --git a/hw/fsp/fsp-mdst-table.c b/hw/fsp/fsp-sysdump.c
index 98f667f..869e059 100644
--- a/hw/fsp/fsp-mdst-table.c
+++ b/hw/fsp/fsp-sysdump.c
@@ -18,7 +18,7 @@
#include <lock.h>
#include <skiboot.h>
#include <errorlog.h>
-#include <fsp-mdst-table.h>
+#include <opal-dump.h>
/*
* Sapphire dump size
@@ -46,8 +46,8 @@ DEFINE_LOG_ENTRY(OPAL_RC_DUMP_MDST_REMOVE, OPAL_PLATFORM_ERR_EVT, OPAL_DUMP,
OPAL_PLATFORM_FIRMWARE, OPAL_INFO, OPAL_NA);
-static struct dump_mdst_table *mdst_table;
-static struct dump_mdst_table *dump_mem_region;
+static struct mdst_table *mdst_table;
+static struct mdst_table *dump_mem_region;
static int cur_mdst_entry;
static int max_mdst_entry;