summaryrefslogtreecommitdiffstats
path: root/src/occ_405/mode.c
diff options
context:
space:
mode:
authorAndres Lugo-Reyes <aalugore@us.ibm.com>2018-05-30 16:17:01 -0500
committerAndres A. Lugo-Reyes <aalugore@us.ibm.com>2018-06-05 17:58:28 -0400
commit41f0c2c5e001fc0eb52e6e9d8f68a8d4d9accb88 (patch)
treebed15da7f67dfe1556774f30cfc76df29fc7648f /src/occ_405/mode.c
parente66f727bf40b9dbd00c0e9a527dbfe584c6eb8ba (diff)
downloadtalos-occ-41f0c2c5e001fc0eb52e6e9d8f68a8d4d9accb88.tar.gz
talos-occ-41f0c2c5e001fc0eb52e6e9d8f68a8d4d9accb88.zip
WOF: Add Extended RC to wof errors
Change-Id: I18a532879deec3a8dd9f84396ac4ed2df1383881 RTC:192844 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59608 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
Diffstat (limited to 'src/occ_405/mode.c')
-rwxr-xr-xsrc/occ_405/mode.c38
1 files changed, 28 insertions, 10 deletions
diff --git a/src/occ_405/mode.c b/src/occ_405/mode.c
index fbaec25..75ccd3d 100755
--- a/src/occ_405/mode.c
+++ b/src/occ_405/mode.c
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER OnChipController Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2017 */
+/* Contributors Listed Below - COPYRIGHT 2011,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -274,7 +274,9 @@ errlHndl_t SMGR_mode_transition_to_nominal()
CURRENT_MODE() = OCC_MODE_NOMINAL;
// WOF is disabled in nominal mode
- set_clear_wof_disabled( SET, WOF_RC_MODE_NO_SUPPORT_MASK );
+ set_clear_wof_disabled( SET,
+ WOF_RC_MODE_NO_SUPPORT_MASK,
+ ERC_WOF_MODE_NO_SUPPORT_MASK );
TRAC_IMP("SMGR: Mode to Nominal Transition Completed");
return l_errlHndl;
@@ -300,7 +302,9 @@ errlHndl_t SMGR_mode_transition_to_powersave()
CURRENT_MODE() = OCC_MODE_PWRSAVE;
// WOF is disabled in SPS mode
- set_clear_wof_disabled( SET, WOF_RC_MODE_NO_SUPPORT_MASK );
+ set_clear_wof_disabled( SET,
+ WOF_RC_MODE_NO_SUPPORT_MASK,
+ ERC_WOF_MODE_NO_SUPPORT_MASK );
TRAC_IMP("SMGR: Mode to PowerSave Transition Completed");
@@ -328,7 +332,9 @@ errlHndl_t SMGR_mode_transition_to_dynpowersave()
CURRENT_MODE() = OCC_MODE_DYN_POWER_SAVE;
// WOF is enabled in DPS, clear the mode bit
- set_clear_wof_disabled( CLEAR, WOF_RC_MODE_NO_SUPPORT_MASK );
+ set_clear_wof_disabled( CLEAR,
+ WOF_RC_MODE_NO_SUPPORT_MASK,
+ ERC_WOF_MODE_NO_SUPPORT_MASK );
TRAC_IMP("SMGR: Mode to Dynamic PowerSave-Favor Energy Transition Completed");
@@ -353,7 +359,9 @@ errlHndl_t SMGR_mode_transition_to_dynpowersave_fp()
CURRENT_MODE() = OCC_MODE_DYN_POWER_SAVE_FP;
// WOF is enabled in DPS-FP, clear the mode bit
- set_clear_wof_disabled( CLEAR, WOF_RC_MODE_NO_SUPPORT_MASK );
+ set_clear_wof_disabled( CLEAR,
+ WOF_RC_MODE_NO_SUPPORT_MASK,
+ ERC_WOF_MODE_NO_SUPPORT_MASK );
TRAC_IMP("SMGR: Mode to Dynamic PowerSave-Favor Performance Transition Completed");
@@ -380,7 +388,9 @@ errlHndl_t SMGR_mode_transition_to_turbo()
CURRENT_MODE() = OCC_MODE_TURBO;
// WOF is disabled in turbo mode
- set_clear_wof_disabled( SET, WOF_RC_MODE_NO_SUPPORT_MASK );
+ set_clear_wof_disabled( SET,
+ WOF_RC_MODE_NO_SUPPORT_MASK,
+ ERC_WOF_MODE_NO_SUPPORT_MASK );
TRAC_IMP("SMGR: Mode to Turbo Transition Completed");
@@ -406,7 +416,9 @@ errlHndl_t SMGR_mode_transition_to_ffo()
CURRENT_MODE() = OCC_MODE_FFO;
// WOF is disabled in FFO
- set_clear_wof_disabled( SET, WOF_RC_MODE_NO_SUPPORT_MASK );
+ set_clear_wof_disabled( SET,
+ WOF_RC_MODE_NO_SUPPORT_MASK,
+ ERC_WOF_MODE_NO_SUPPORT_MASK );
TRAC_IMP("SMGR: Mode to FFO Transition Completed");
@@ -431,7 +443,9 @@ errlHndl_t SMGR_mode_transition_to_fmf()
CURRENT_MODE() = OCC_MODE_FMF;
// WOF is enabled in FMF, clear the mode bit
- set_clear_wof_disabled( CLEAR, WOF_RC_MODE_NO_SUPPORT_MASK );
+ set_clear_wof_disabled( CLEAR,
+ WOF_RC_MODE_NO_SUPPORT_MASK,
+ ERC_WOF_MODE_NO_SUPPORT_MASK );
TRAC_IMP("SMGR: Mode to FMF Transition Completed");
return l_errlHndl;
@@ -455,7 +469,9 @@ errlHndl_t SMGR_mode_transition_to_nom_perf()
CURRENT_MODE() = OCC_MODE_NOM_PERFORMANCE;
// WOF is enabled in nominal performance mode, clear the mode bit
- set_clear_wof_disabled( CLEAR, WOF_RC_MODE_NO_SUPPORT_MASK );
+ set_clear_wof_disabled( CLEAR,
+ WOF_RC_MODE_NO_SUPPORT_MASK,
+ ERC_WOF_MODE_NO_SUPPORT_MASK );
TRAC_IMP("SMGR: Mode to Nominal Performance Transition Completed");
@@ -480,7 +496,9 @@ errlHndl_t SMGR_mode_transition_to_max_perf()
CURRENT_MODE() = OCC_MODE_MAX_PERFORMANCE;
// WOF is enabled in max performance mode, clear the mode bit
- set_clear_wof_disabled( CLEAR, WOF_RC_MODE_NO_SUPPORT_MASK );
+ set_clear_wof_disabled( CLEAR,
+ WOF_RC_MODE_NO_SUPPORT_MASK,
+ ERC_WOF_MODE_NO_SUPPORT_MASK );
TRAC_IMP("SMGR: Mode to Maximum Performance Transition Completed");
OpenPOWER on IntegriCloud