summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_slave_smh.c
diff options
context:
space:
mode:
authorChris Cain <cjcain@us.ibm.com>2017-04-21 16:10:12 -0500
committerChristopher J. Cain <cjcain@us.ibm.com>2017-04-25 15:45:49 -0400
commit7da6a9afd506f8854972bbf4325b2e88abfcc2ce (patch)
tree0842cf19f77bc036bd42ba9cc9fc40fcb7ddf39b /src/occ_405/amec/amec_slave_smh.c
parente0db9bf273420ef90e63815a5af2170f5e346cd0 (diff)
downloadtalos-occ-7da6a9afd506f8854972bbf4325b2e88abfcc2ce.tar.gz
talos-occ-7da6a9afd506f8854972bbf4325b2e88abfcc2ce.zip
Enable PGPE support on hardware
Change-Id: Id709ec36d82a2b6c03b1a4b901cf64f45f241d36 RTC: 163934 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39562 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Diffstat (limited to 'src/occ_405/amec/amec_slave_smh.c')
-rwxr-xr-xsrc/occ_405/amec/amec_slave_smh.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/occ_405/amec/amec_slave_smh.c b/src/occ_405/amec/amec_slave_smh.c
index 03b1dab..9dde169 100755
--- a/src/occ_405/amec/amec_slave_smh.c
+++ b/src/occ_405/amec/amec_slave_smh.c
@@ -233,7 +233,6 @@ void amec_slv_check_apss_fail(void)
/* Local Variables */
/*------------------------------------------------------------------------*/
uint32_t l_pmax_rail_freq = g_amec->proc[0].pwr_votes.apss_pmax_clip_freq;
- Pstate l_pstate = 0;
static bool L_lower_pmax_rail = FALSE;
static bool L_raise_pmax_rail = TRUE;
@@ -256,16 +255,9 @@ void amec_slv_check_apss_fail(void)
// Lower the Pmax_rail to nominal
l_pmax_rail_freq = G_sysConfigData.sys_mode_freq.table[OCC_MODE_NOMINAL];
- // Let the slave voting box handle the clip in KVM
+ // Let the slave voting box handle the clip
// to take in account all reasons for clip changes
- if(!G_sysConfigData.system_type.kvm)
- {
- // Set the Pmax clip via PGPE
- // There is no Pmax "rail" in P9, just set clips via PGPE
- l_pstate = proc_freq2pstate(l_pmax_rail_freq);
- TRAC_INFO("amec_slv_check_apss_fail: attempting to lower Pstate to nominal");
- pgpe_set_clip_ranges(l_pstate);
- }
+ TRAC_INFO("amec_slv_check_apss_fail: Updating apss pmax clip freq to nominal");
L_lower_pmax_rail = TRUE;
L_raise_pmax_rail = FALSE;
@@ -278,15 +270,9 @@ void amec_slv_check_apss_fail(void)
// Raise the Pmax rail back
l_pmax_rail_freq = G_proc_fmax_mhz;
- // Let the slave voting box handle the clip in KVM
+ // Let the slave voting box handle the clip
// to take in account all reasons for clip changes
- if(!G_sysConfigData.system_type.kvm)
- {
- // Set the Pmax clip via PGPE
- l_pstate = proc_freq2pstate(l_pmax_rail_freq);
- TRAC_INFO("amec_slv_check_apss_fail: attempting to raise Pstate to fmax");
- pgpe_set_clip_ranges(l_pstate);
- }
+ TRAC_INFO("amec_slv_check_apss_fail: Updating apss pmax clip freq to fmax");
L_lower_pmax_rail = FALSE;
L_raise_pmax_rail = TRUE;
@@ -523,7 +509,7 @@ void amec_slv_state_4(void)
/* Not yet supported TODO Centaur support RTC 163359
//-------------------------------------------------------
- // Update Centaur sensors (for this tick)
+ // Update Centaur sensors (for this tick)
//-------------------------------------------------------
amec_update_centaur_sensors(CENTAUR_4);
*/
OpenPOWER on IntegriCloud