diff options
author | Matt Derksen <mderkse1@us.ibm.com> | 2017-12-14 11:52:15 -0600 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-12-21 16:51:42 -0500 |
commit | 6141805efc9ca2e9109ca29c837ee3f51d63b141 (patch) | |
tree | de6945f3e0ee156a152a9829467bb8cf09199c8a /src/usr/isteps | |
parent | 25cb28c5a6cf36e77719a1ae3e8bd142e09cd491 (diff) | |
download | talos-hostboot-6141805efc9ca2e9109ca29c837ee3f51d63b141.tar.gz talos-hostboot-6141805efc9ca2e9109ca29c837ee3f51d63b141.zip |
Add HB_VOLATILE sensor so OpenBMC can mark volatile sections
Set sensor to 1 to tell OpenBMC code to allow hostboot
volatile section to be cleared.
RTC: 180772
Change-Id: Id63e3ae8a24facd5e01e8bf94688a60f066ba838
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51101
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-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>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/isteps')
-rw-r--r-- | src/usr/isteps/istep16/call_host_ipl_complete.C | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/usr/isteps/istep16/call_host_ipl_complete.C b/src/usr/isteps/istep16/call_host_ipl_complete.C index 40484d107..484faa070 100644 --- a/src/usr/isteps/istep16/call_host_ipl_complete.C +++ b/src/usr/isteps/istep16/call_host_ipl_complete.C @@ -48,7 +48,9 @@ #include <util/utilsemipersist.H> #include <hwas/common/deconfigGard.H> - +#ifdef CONFIG_BMC_IPMI +#include <ipmi/ipmisensor.H> +#endif using namespace ERRORLOG; using namespace TARGETING; using namespace ISTEP; @@ -88,6 +90,23 @@ void* call_host_ipl_complete (void *io_pArgs) errlCommit( l_err, ISTEP_COMP_ID ); } +#ifdef CONFIG_BMC_IPMI + // Alert BMC to clear HB volatile memory + SENSOR::HbVolatileSensor l_hbVolatileCtl; + l_err = l_hbVolatileCtl.setHbVolatile( + SENSOR::HbVolatileSensor::ENABLE_VOLATILE ); + if(l_err) + { + TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, + "Failure in notifying BMC to clear hostboot volatile section," + " RC=%X", ERRL_GETRC_SAFE(l_err) ); + + // This error could come from OpenPower system without + // updated OpenBMC code so just delete the error + delete l_err; + l_err = nullptr; + } +#endif // Setup the TCEs needed for the FSP to DMA the PAYLOAD if (TCE::utilUseTcesForDmas()) |