summaryrefslogtreecommitdiffstats
path: root/src/sbefw
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2019-11-03 19:58:29 -0600
committerRAJA DAS <rajadas2@in.ibm.com>2019-11-10 22:13:30 -0600
commitc05bb41d728e6fc05a34d9d02320d6e37a6a79a4 (patch)
tree5b2dbce5a0e4b486314e33373de81521a9ec3a37 /src/sbefw
parent27423190a5278003a50686ea4d46fd364a547e39 (diff)
downloadtalos-sbe-c05bb41d728e6fc05a34d9d02320d6e37a6a79a4.tar.gz
talos-sbe-c05bb41d728e6fc05a34d9d02320d6e37a6a79a4.zip
Run LPC Init to clean up errors on MPIPL
Recently HBBL added some error checking on LPC accesses Unfortunately OPAL leaves some errors in the accumulated status register of the LPC Host Controller. Since HBBL doesn't have the space to clear... have the SBE run lpc_init on MPIPL to clean up Keep a global alias for HRMOR Attribute in Pibmem Fetch the SPMode from Default SPMODE Attr if Mbox8 valid bit is not set, else fetch it from Mbox3 bit3. This is to support BMC scratch register setting which are all NULL Change-Id: I975311d9313ac8dbe70cf4595a96c43faaa98dd7 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/86434 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Diffstat (limited to 'src/sbefw')
-rw-r--r--src/sbefw/app/power/ipl_table.C1
-rw-r--r--src/sbefw/app/power/sbecmdmpipl.C2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/sbefw/app/power/ipl_table.C b/src/sbefw/app/power/ipl_table.C
index c590ca47..442c33ff 100644
--- a/src/sbefw/app/power/ipl_table.C
+++ b/src/sbefw/app/power/ipl_table.C
@@ -240,6 +240,7 @@ static istepMap_t g_istepMpiplContinuePtrTbl[] =
{
#ifdef SEEPROM_IMAGE
// Setup EC/EQ guard records
+ ISTEP_MAP( istepLpcInit, p9_sbe_lpc_init ),
ISTEP_MAP( istepMpiplSetFunctionalState, p9_sbe_select_ex),
ISTEP_MAP( istepNoOp, NULL ), // Witherspoon only (mpipl_dump_reg)
ISTEP_MAP( istepNoOp, NULL ), // Witherspoon only (mpipl_query_quad_access_state)
diff --git a/src/sbefw/app/power/sbecmdmpipl.C b/src/sbefw/app/power/sbecmdmpipl.C
index 2244b7e0..792cd6c4 100644
--- a/src/sbefw/app/power/sbecmdmpipl.C
+++ b/src/sbefw/app/power/sbecmdmpipl.C
@@ -75,7 +75,7 @@ p9_stopclocks_FP_t p9_stopclocks_hwp = &p9_stopclocks;
static const uint32_t SBE_ISTEP_MPIPL_START = 96;
static const uint32_t MPIPL_START_MAX_SUBSTEPS = 8;
static const uint32_t SBE_ISTEP_MPIPL_CONTINUE = 97;
-static const uint32_t MPIPL_CONTINUE_MAX_SUBSTEPS = 7;
+static const uint32_t MPIPL_CONTINUE_MAX_SUBSTEPS = 8;
static const uint32_t SBE_ISTEP4 = 4;
static const uint32_t SBE_ISTEP5 = 5;
static const uint32_t ISTEP_MINOR_START = 1;
OpenPOWER on IntegriCloud