summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_controller.c
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2017-06-15 12:33:02 -0500
committerWilliam A. Bryan <wilbryan@us.ibm.com>2017-06-16 13:53:52 -0400
commit2c557cd7a08573c142fb508ae729887531af51c2 (patch)
treedda2ceb12032b149f4339043e38bc92847f3c9bf /src/occ_405/amec/amec_controller.c
parentca4e0ea382d03376fba5a1d3400fc22d7ba66dd5 (diff)
downloadtalos-occ-2c557cd7a08573c142fb508ae729887531af51c2.tar.gz
talos-occ-2c557cd7a08573c142fb508ae729887531af51c2.zip
Stop State and Throttle Sensor Updates
Change-Id: Ic2589a9e3fb5bad67ce85fb7a5f2c3e9af9f5047 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41887 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Shawn M. McCarney <shawnmm@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_405/amec/amec_controller.c')
-rw-r--r--src/occ_405/amec/amec_controller.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/occ_405/amec/amec_controller.c b/src/occ_405/amec/amec_controller.c
index 9da01de..25901c7 100644
--- a/src/occ_405/amec/amec_controller.c
+++ b/src/occ_405/amec/amec_controller.c
@@ -143,6 +143,17 @@ void amec_controller_proc_thermal()
g_amec->thermalproc.freq_request = amec_controller_speed2freq(
g_amec->thermalproc.speed_request,
g_amec->sys.fmax);
+
+ // Update the Processor OT Throttle Sensor
+ if(g_amec->thermalproc.freq_request < g_amec->sys.fmax)
+ {
+ // frequency is less than max indicate throttle due to OT
+ sensor_update(AMECSENSOR_PTR(PROCOTTHROT), 1);
+ }
+ else // not currently throttled due to OT
+ {
+ sensor_update(AMECSENSOR_PTR(PROCOTTHROT), 0);
+ }
}
//*************************************************************************
@@ -235,6 +246,18 @@ void amec_controller_dimm_thermal()
// Generate the new thermal speed request
g_amec->thermaldimm.speed_request = (uint16_t) l_mem_speed;
+
+ // Update the Memory OT Throttle Sensor
+ if(g_amec->thermaldimm.speed_request < AMEC_MEMORY_MAX_STEP)
+ {
+ // Memory speed is less than max indicate throttle due to OT
+ sensor_update(AMECSENSOR_PTR(MEMOTTHROT), 1);
+ }
+ else // not currently throttled due to OT
+ {
+ sensor_update(AMECSENSOR_PTR(MEMOTTHROT), 0);
+ }
+
}
OpenPOWER on IntegriCloud