summaryrefslogtreecommitdiffstats
path: root/src/usr/sbeio
diff options
context:
space:
mode:
authorRick Ward <rward15@us.ibm.com>2018-02-13 16:15:46 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-02-15 21:52:28 -0500
commitebe0b5de67d7d4081e3983bee451d63219f2dbf4 (patch)
tree971cd5fa05dff82101420494ef0fa6244c231beb /src/usr/sbeio
parent11cb66583553b58be26ca70d0b132cadcb77b84d (diff)
downloadtalos-hostboot-ebe0b5de67d7d4081e3983bee451d63219f2dbf4.tar.gz
talos-hostboot-ebe0b5de67d7d4081e3983bee451d63219f2dbf4.zip
Send additional FSP progress messages during long isteps (e.g. memdiags)
Updated sendProgressCode() so that it would only output trace or console messages once per step/substep. Replaced most calls to IPMIWATCHDOG::resetWatchDogTimer() with calls to sendProgressCode() which calls resetWatchDogTimer() if communicating with a BMC, or updates the FSP with its progress on FSP-based systems. Change-Id: I29beb7ce5cdae467d26a0b2c5fee9e3cc4629161 RTC: 169682 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53995 Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/sbeio')
-rw-r--r--src/usr/sbeio/common/sbe_retry_handler.C40
1 files changed, 4 insertions, 36 deletions
diff --git a/src/usr/sbeio/common/sbe_retry_handler.C b/src/usr/sbeio/common/sbe_retry_handler.C
index b18480df4..ed7bfb11d 100644
--- a/src/usr/sbeio/common/sbe_retry_handler.C
+++ b/src/usr/sbeio/common/sbe_retry_handler.C
@@ -43,6 +43,7 @@
#include <fapi2/plat_hwp_invoker.H>
#include <initservice/isteps_trace.H>
#include <initservice/initserviceif.H>
+#include <initservice/istepdispatcherif.H>
#include <errl/errludtarget.H>
#include <sys/time.h>
#include <util/misc.H>
@@ -429,26 +430,10 @@ void SbeRetryHandler::handle_sbe_reg_value(TARGETING::Target * i_target)
{
iv_retriggeredMain = true;
-#ifdef CONFIG_BMC_IPMI
+
#ifndef __HOSTBOOT_RUNTIME
// This could potentially take awhile, reset watchdog
- l_errl = IPMIWATCHDOG::resetWatchDogTimer();
- if(l_errl)
- {
- SBE_TRACF("Inside handle_sbe_reg_value before sbe_handler "
- "Resetting watchdog");
- l_errl->collectTrace("ISTEPS_TRACE",256);
-
- // Set the PLID of the error log to caller's PLID,
- // if provided
- if (iv_callerErrorLogPLID)
- {
- l_errl->plid(iv_callerErrorLogPLID);
- }
-
- errlCommit(l_errl,ISTEP_COMP_ID);
- }
-#endif
+ INITSERVICE::sendProgressCode();
#endif
SBE_TRACF("handle_sbe_reg_value(): Attempting "
"REIPL_UPD_SEEPROM failed. Recalling with BKP_SEEPROM");
@@ -910,26 +895,9 @@ bool SbeRetryHandler::sbe_boot_fail_handler(TARGETING::Target * i_target,
#endif
}
-#ifdef CONFIG_BMC_IPMI
#ifndef __HOSTBOOT_RUNTIME
// This could potentially take awhile, reset watchdog
- l_errl = IPMIWATCHDOG::resetWatchDogTimer();
- if(l_errl)
- {
- SBE_TRACF("sbe_boot_fail_handler "
- "Resetting watchdog before sbe_handler");
- l_errl->collectTrace("ISTEPS_TRACE",KILOBYTE/4);
-
- // Set the PLID of the error log to caller's PLID,
- // if provided
- if (iv_callerErrorLogPLID)
- {
- l_errl->plid(iv_callerErrorLogPLID);
- }
-
- errlCommit(l_errl,ISTEP_COMP_ID);
- }
-#endif
+ INITSERVICE::sendProgressCode();
#endif
SBE_TRACF("sbe_boot_fail_handler. iv_switchSides count is %llx",
iv_switchSidesCount);
OpenPOWER on IntegriCloud