summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_sensors_power.c
diff options
context:
space:
mode:
authorWael El-Essawy <welessa@us.ibm.com>2015-12-07 15:07:09 -0600
committerWael Elessawy <welessa@us.ibm.com>2015-12-11 13:29:24 -0600
commit99ef891b7853232a80d5c1914f201c81e8a725c3 (patch)
tree7335da0a2c06a918f27fd0475b1dcb1a368e2ff5 /src/occ_405/amec/amec_sensors_power.c
parentca9e4420760a191828d259c1e425486fa1f658a7 (diff)
downloadtalos-occ-99ef891b7853232a80d5c1914f201c81e8a725c3.tar.gz
talos-occ-99ef891b7853232a80d5c1914f201c81e8a725c3.zip
CC: Support Thermal Control Threshold Config Data format 0x13
Support thermal control thresholds format 0x13 config data command with new version 0x20 defined in P9 interface spec. All older P8 versions of format 0x13 deleted. Tested in simics. remove thermal thread. fix a dts calculation bug. add a firmware failure error log. Change-Id: I4a9979929292833a5e6f4f7f4e162ea20983b96a RTC: 141647 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22516 Tested-by: FSP CI Jenkins Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: Wael Elessawy <welessa@us.ibm.com>
Diffstat (limited to 'src/occ_405/amec/amec_sensors_power.c')
-rwxr-xr-xsrc/occ_405/amec/amec_sensors_power.c45
1 files changed, 1 insertions, 44 deletions
diff --git a/src/occ_405/amec/amec_sensors_power.c b/src/occ_405/amec/amec_sensors_power.c
index 3369a5e..1778a9e 100755
--- a/src/occ_405/amec/amec_sensors_power.c
+++ b/src/occ_405/amec/amec_sensors_power.c
@@ -53,8 +53,6 @@
// This holds the converted ADC Reads
uint32_t G_lastValidAdcValue[MAX_APSS_ADC_CHANNELS] = {0};
-extern thrm_fru_data_t G_thrm_fru_data[DATA_FRU_MAX];
-
// There are only MAX_APSS_ADC_CHANNELS channels. Therefore if the channel value
// is greater then the MAX, then there was no channel associated with the function id.
#define ADC_CONVERTED_VALUE(i_chan) \
@@ -484,10 +482,8 @@ void amec_update_vrm_sensors(void)
// Update the VR_FAN sensor
sensor_update( AMECSENSOR_PTR(VRFAN250USPROC), (uint16_t)l_vrfan );
- // Clear our error count and the 'read failure' flag (since we can
- // read VR_FAN signal)
+ // Clear our error count
L_error_count = 0;
- G_thrm_fru_data[DATA_FRU_VRM].read_failure = 0;
// No longer reading gpio from APSS in GA1 due to instability in
// APSS composite mode
@@ -525,45 +521,6 @@ void amec_update_vrm_sensors(void)
{
L_error_count = 0xFF;
}
-
- // Log an error if we exceeded our number of fail-to-read sensor
- if ((L_error_count == g_amec->proc[0].vrfan_error_count) &&
- (g_amec->proc[0].vrfan_error_count != 0xFF))
- {
- TRAC_ERR("amec_update_vrm_sensors: Failed to read VR_FAN for %u consecutive times!",
- L_error_count);
-
- // Also, inform the thermal thread to send a cooling request
- G_thrm_fru_data[DATA_FRU_VRM].read_failure = 1;
-
- /* @
- * @errortype
- * @moduleid AMEC_HEALTH_CHECK_VRFAN_TIMEOUT
- * @reasoncode VRM_VRFAN_TIMEOUT
- * @userdata1 timeout value
- * @userdata2 0
- * @userdata4 OCC_NO_EXTENDED_RC
- * @devdesc Failed to read VR_FAN signal from regulator.
- *
- */
- l_err = createErrl(AMEC_HEALTH_CHECK_VRFAN_TIMEOUT, //modId
- VRM_VRFAN_TIMEOUT, //reasoncode
- OCC_NO_EXTENDED_RC, //Extended reason code
- ERRL_SEV_PREDICTIVE, //Severity
- NULL, //Trace Buf
- DEFAULT_TRACE_SIZE, //Trace Size
- g_amec->thermaldimm.temp_timeout, //userdata1
- 0); //userdata2
-
- // Callout backplane for this VRM error
- addCalloutToErrl(l_err,
- ERRL_CALLOUT_TYPE_HUID,
- G_sysConfigData.backplane_huid,
- ERRL_CALLOUT_PRIORITY_MED);
-
- // Commit the error
- commitErrl(&l_err);
- }
}
}
OpenPOWER on IntegriCloud