summaryrefslogtreecommitdiffstats
path: root/src/occ_405/mode.c
diff options
context:
space:
mode:
authorWael El-Essawy <welessa@us.ibm.com>2016-05-02 22:20:14 -0500
committerWael El-Essawy <welessa@us.ibm.com>2016-05-25 16:19:23 -0400
commit6d29cab23da5bacaf0772bb8dd6265c4b442760c (patch)
treed7dee4b726108c87734bd1508abccf47d1a230e4 /src/occ_405/mode.c
parent6f82299cb1e306dabef5bbae1a9d4e5817dbcea9 (diff)
downloadtalos-occ-6d29cab23da5bacaf0772bb8dd6265c4b442760c.tar.gz
talos-occ-6d29cab23da5bacaf0772bb8dd6265c4b442760c.zip
Pstate Infrastructure & Support config data required for active state
- Support all config data required for active state. - Set 'active ready' bit in poll response when all config data has been received. - Rewrite & rename proc_gpsm_pstate_initialize() - Delete GPSM, doesn't exist. - Put in TODO call PGPE to enable pstates this will also be telling PGPE how to set PMCR mode register (OCC control pstates or OPAL). - Initialize globals for fmax, fmin, pmax and mhz_per_pstate with temporary hard codes until PGPE is available. - Call to "proc_pstate_initialize()" moved to state transition to observation - Cleanup proc_freq2pstate() - rewrite amec_slv_freq_smh() - the calls to proc_set_core_bounds() and proc_set_core_pstate() will be replaced with 1 IPC call to the PGPE to set pmin/pmax given all cores or set pstate for all given cores. - Remove all DCM related code. Change-Id: I449d188b2cffc345afca19717dcbea037f159114 RTC:130224 RTC:150935 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23977 Tested-by: FSP CI Jenkins Reviewed-by: Wael El-Essawy <welessa@us.ibm.com>
Diffstat (limited to 'src/occ_405/mode.c')
-rwxr-xr-xsrc/occ_405/mode.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/occ_405/mode.c b/src/occ_405/mode.c
index fc533b5..e4a6715 100755
--- a/src/occ_405/mode.c
+++ b/src/occ_405/mode.c
@@ -39,7 +39,6 @@ errlHndl_t SMGR_mode_transition_to_powersave();
errlHndl_t SMGR_mode_transition_to_dynpowersave();
errlHndl_t SMGR_mode_transition_to_dynpowersave_fp();
errlHndl_t SMGR_mode_transition_to_turbo();
-errlHndl_t SMGR_mode_transition_to_superturbo();
errlHndl_t SMGR_mode_transition_to_ffo();
// Mode that OCC is currently in
@@ -72,26 +71,12 @@ SsxSemaphore G_smgrModeChangeSem;
// transition.
const smgr_state_trans_t G_smgr_mode_trans[] =
{
- /* ----- SPECIFIC CASE MODE TRANSITIONS ----- */
- /* These are specific mode transitions for when it matters what
- * mode we were in before the transition. These must come before
- * the agnostic mode transitions below, and will be run instead of
- * those catch-all transition functions. */
-
- /* Current Mode New Mode Transition Function */
- {OCC_MODE_STURBO, OCC_MODE_NOMINAL, NULL},
-
- /* ----- DEFAULT MODE TRANSITIONS ----- */
- /* These are default mode transitions for when it doesn't matter what
- * mode we were in before the transition. */
-
/* Current Mode New Mode Transition Function */
{OCC_MODE_ALL, OCC_MODE_NOMINAL, &SMGR_mode_transition_to_nominal},
{OCC_MODE_ALL, OCC_MODE_PWRSAVE, &SMGR_mode_transition_to_powersave},
{OCC_MODE_ALL, OCC_MODE_DYN_POWER_SAVE, &SMGR_mode_transition_to_dynpowersave},
{OCC_MODE_ALL, OCC_MODE_DYN_POWER_SAVE_FP, &SMGR_mode_transition_to_dynpowersave_fp},
{OCC_MODE_ALL, OCC_MODE_TURBO, &SMGR_mode_transition_to_turbo},
- {OCC_MODE_ALL, OCC_MODE_STURBO, &SMGR_mode_transition_to_superturbo},
{OCC_MODE_ALL, OCC_MODE_FFO, &SMGR_mode_transition_to_ffo},
};
const uint8_t G_smgr_mode_trans_count = sizeof(G_smgr_mode_trans)/sizeof(smgr_state_trans_t);
@@ -193,7 +178,6 @@ errlHndl_t SMGR_set_mode(const OCC_MODE i_mode,
case OCC_MODE_DYN_POWER_SAVE: // FALL THROUGH
case OCC_MODE_DYN_POWER_SAVE_FP: // FALL THROUGH
case OCC_MODE_TURBO: // FALL THROUGH
- case OCC_MODE_STURBO: // FALL THROUGH
case OCC_MODE_FFO: // FALL THROUGH
// Notify AMEC of mode change
@@ -390,29 +374,6 @@ errlHndl_t SMGR_mode_transition_to_turbo()
// Function Specification
//
-// Name: SMGR_mode_transition_to_superturbo
-//
-// Description:
-//
-// End Function Specification
-errlHndl_t SMGR_mode_transition_to_superturbo()
-{
- errlHndl_t l_errlHndl = NULL;
-
- TRAC_IMP("SMGR: Mode to SuperTurbo Transition Started");
-
- // Set Freq Mode for AMEC to use
- l_errlHndl = amec_set_freq_range(OCC_MODE_STURBO);
-
- CURRENT_MODE() = OCC_MODE_STURBO;
- TRAC_IMP("SMGR: Mode to SuperTurbo Transition Completed");
-
- return l_errlHndl;
-}
-
-
-// Function Specification
-//
// Name: SMGR_mode_transition_to_ffo
//
// Description:
OpenPOWER on IntegriCloud