summaryrefslogtreecommitdiffstats
path: root/src/occ_405/cmdh/cmdh_fsp_cmds.c
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2018-01-30 15:35:23 -0600
committerMartha Broyles <mbroyles@us.ibm.com>2018-01-31 17:06:49 -0500
commitc9954444fc8df5fa0bd79b57ce8a6434a7e0714e (patch)
tree20591093021552a9b7341e6e760500ffe6324626 /src/occ_405/cmdh/cmdh_fsp_cmds.c
parentf72f857b7e5ab25a5616b1655005b963405eb350 (diff)
downloadtalos-occ-c9954444fc8df5fa0bd79b57ce8a6434a7e0714e.tar.gz
talos-occ-c9954444fc8df5fa0bd79b57ce8a6434a7e0714e.zip
Calculate Pstate from a frequency starting at max frequency instead of min
Change-Id: Ic5c59d9a633a0c278b2dc20e3a04cefc13bd63dc CQ: SW415606 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52948 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_405/cmdh/cmdh_fsp_cmds.c')
-rwxr-xr-xsrc/occ_405/cmdh/cmdh_fsp_cmds.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/occ_405/cmdh/cmdh_fsp_cmds.c b/src/occ_405/cmdh/cmdh_fsp_cmds.c
index c28add1..c1f29cf 100755
--- a/src/occ_405/cmdh/cmdh_fsp_cmds.c
+++ b/src/occ_405/cmdh/cmdh_fsp_cmds.c
@@ -707,6 +707,30 @@ ERRL_RC cmdh_poll_v20(cmdh_fsp_rsp_t * o_rsp_ptr)
l_extnSensorList[l_sensorHeader.count].data[5] = CONVERT_UINT32_UINT8_LOWER_LOW(g_amec->proc[0].chip_f_reason_history);
l_sensorHeader.count++;
+ // WOF clip info from PGPE
+ l_extnSensorList[l_sensorHeader.count].name = EXTN_NAME_WOFC;
+ if(g_amec->wof.wof_disabled)
+ {
+ // WOF disabled put 0xFF for clip followed by WOF disable reason
+ l_extnSensorList[l_sensorHeader.count].data[0] = 0xFF;
+ l_extnSensorList[l_sensorHeader.count].data[1] = 0x00;
+ l_extnSensorList[l_sensorHeader.count].data[2] = CONVERT_UINT32_UINT8_UPPER_HIGH(g_amec->wof.wof_disabled);
+ l_extnSensorList[l_sensorHeader.count].data[3] = CONVERT_UINT32_UINT8_UPPER_LOW(g_amec->wof.wof_disabled);
+ l_extnSensorList[l_sensorHeader.count].data[4] = CONVERT_UINT32_UINT8_LOWER_HIGH(g_amec->wof.wof_disabled);
+ l_extnSensorList[l_sensorHeader.count].data[5] = CONVERT_UINT32_UINT8_LOWER_LOW(g_amec->wof.wof_disabled);
+ }
+ else
+ {
+ // WOF is enabled return WOF information from PGPE
+ // These are read from PGPE shared SRAM every WOF cycle
+ l_extnSensorList[l_sensorHeader.count].data[0] = g_amec->wof.f_clip_ps;
+ l_extnSensorList[l_sensorHeader.count].data[1] = CONVERT_UINT16_UINT8_HIGH(g_amec->wof.v_clip);
+ l_extnSensorList[l_sensorHeader.count].data[2] = CONVERT_UINT16_UINT8_LOW(g_amec->wof.v_clip);
+ l_extnSensorList[l_sensorHeader.count].data[3] = CONVERT_UINT16_UINT8_HIGH(g_amec->wof.v_ratio);
+ l_extnSensorList[l_sensorHeader.count].data[4] = CONVERT_UINT16_UINT8_LOW(g_amec->wof.v_ratio);
+ }
+ l_sensorHeader.count++;
+
// add any non-0 error history counts
for(l_err_hist_idx=0; l_err_hist_idx < ERR_HISTORY_SIZE; l_err_hist_idx++)
{
OpenPOWER on IntegriCloud