diff options
author | Sheldon Bailey <baileysh@us.ibm.com> | 2017-03-13 15:44:48 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-03-29 12:02:00 -0400 |
commit | 2972bebc278bc0d29617a5d62ae34cbb7a6a7f3e (patch) | |
tree | 860c469acc534b5147ee033d47bcd59e24643b4c /src/usr/htmgt | |
parent | 009456d1d6f548cf9596a223e935ff048d0cffad (diff) | |
download | talos-hostboot-2972bebc278bc0d29617a5d62ae34cbb7a6a7f3e.tar.gz talos-hostboot-2972bebc278bc0d29617a5d62ae34cbb7a6a7f3e.zip |
HTMGT: compile errors: fix depricated interfaces.
RTC:170737
Change-Id: I4afa36c4b3aacc47c7c0d4c69c5bc20587ed9315
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37875
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt')
-rw-r--r-- | src/usr/htmgt/htmgt.C | 7 | ||||
-rw-r--r-- | src/usr/htmgt/htmgt_occ.C | 34 |
2 files changed, 23 insertions, 18 deletions
diff --git a/src/usr/htmgt/htmgt.C b/src/usr/htmgt/htmgt.C index 761972833..628581a38 100644 --- a/src/usr/htmgt/htmgt.C +++ b/src/usr/htmgt/htmgt.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014,2016 */ +/* Contributors Listed Below - COPYRIGHT 2014,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -46,6 +46,7 @@ #include <sys/time.h> #include <targeting/common/attributeTank.H> +#include <isteps/pm/pm_common_ext.H> namespace HTMGT { @@ -216,8 +217,8 @@ namespace HTMGT TMGT_INF("processOccStartStatus: Skipping start of OCCS due to " "internal flags 0x%08X", get_int_flags()); // Reset all OCCs - TMGT_INF("processOccStartStatus: Calling HBOCC::stopAllOCCs"); - l_err = HBOCC::stopAllOCCs(); + TMGT_INF("processOccStartStatus: Calling HBPM::resetPMAll()"); + l_err = HBPM::resetPMAll(); if(l_err) { l_err->setSev(ERRORLOG::ERRL_SEV_INFORMATIONAL); diff --git a/src/usr/htmgt/htmgt_occ.C b/src/usr/htmgt/htmgt_occ.C index 44ffe706b..6949eec49 100644 --- a/src/usr/htmgt/htmgt_occ.C +++ b/src/usr/htmgt/htmgt_occ.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014,2016 */ +/* Contributors Listed Below - COPYRIGHT 2014,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -43,6 +43,8 @@ #include <errl/errludlogregister.H> #include <buffer.H> +#include <isteps/pm/pm_common_ext.H> + namespace HTMGT { @@ -553,11 +555,11 @@ namespace HTMGT } // Reset all OCCs - TMGT_INF("_buildOccs: Calling HBOCC::stopAllOCCs"); - err2 = HBOCC::stopAllOCCs(); + TMGT_INF("_buildOccs: Calling HBPM::resetPMAll"); + err2 = HBPM::resetPMAll(); if (nullptr != err2) { - TMGT_ERR("_buildOccs: stopAllOCCs failed with rc 0x%04X", + TMGT_ERR("_buildOccs: HBPM::resetPMAll failed with rc 0x%04X", err2->reasonCode()); err2->collectTrace("HTMGT"); ERRORLOG::errlCommit(err2, HTMGT_COMP_ID); @@ -865,8 +867,8 @@ namespace HTMGT while(retryCount) { // Reset all OCCs - TMGT_INF("_resetOccs: Calling HBOCC::stopAllOCCs"); - err = HBOCC::stopAllOCCs(); + TMGT_INF("_resetOccs: Calling HBPM::resetPMAll"); + err = HBPM::resetPMAll(); if(!err) { break; @@ -875,7 +877,7 @@ namespace HTMGT if (int_flags_set(FLAG_HALT_ON_RESET_FAIL)) { - TMGT_ERR("_resetOCCs: stopAllOCCs failed with 0x%04X " + TMGT_ERR("_resetOCCs: resetPMAll failed with 0x%04X " "and HALT_ON_RESET_FAIL is set. Resets will " "be disabled", err->reasonCode()); set_int_flags(get_int_flags() | FLAG_RESET_DISABLED); @@ -889,7 +891,7 @@ namespace HTMGT } else { - TMGT_ERR("_resetOCCs: stopAllOCCs failed. " + TMGT_ERR("_resetOCCs: HBPM::resetPMAll failed. " "Leaving OCCs in reset state"); // pass err handle back err->collectTrace("HTMGT"); @@ -900,15 +902,20 @@ namespace HTMGT { for( const auto & occ : iv_occArray ) { - // After OCCs have been reset, clear flags + // After OCC has been reset, clear flag occ->postResetClear(); } - TMGT_INF("_resetOccs: Calling HBOCC::activateOCCs"); - err = HBOCC::activateOCCs(); + //get parent proc chip. + TARGETING::Target* l_proc_target = NULL; + + //Reload OCC on this processor chip. + TMGT_INF("_resetOccs: Calling loadAndStartPMAll"); + err = HBPM::loadAndStartPMAll(HBPM::PM_RELOAD, + l_proc_target); if(err) { - TMGT_ERR("_resetOCCs: activateOCCs failed. "); + TMGT_ERR("_resetOCCs: loadAndStartPMAll failed. "); err->collectTrace("HTMGT"); } } @@ -1449,6 +1456,3 @@ namespace HTMGT } } // end namespace - - - |