summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_sensors_ocmb.c
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2019-07-12 11:01:38 -0500
committerMartha Broyles <mbroyles@us.ibm.com>2019-07-22 16:25:28 -0500
commit788814140419c907001c59934da7be39a046820c (patch)
tree18085a0e25f83cab4d4196df69b80ac5131a8f3a /src/occ_405/amec/amec_sensors_ocmb.c
parentd467852fe039a980180df22178ae09a89a3ed6d9 (diff)
downloadtalos-occ-788814140419c907001c59934da7be39a046820c.tar.gz
talos-occ-788814140419c907001c59934da7be39a046820c.zip
Support for 16 OCMBs
Change-Id: I906c797176f0ea2a683e6f05c7e6094cdf11693a Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80364 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J Cain <cjcain@us.ibm.com> Reviewed-by: Douglas R Gilbert <dgilbert@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_405/amec/amec_sensors_ocmb.c')
-rw-r--r--src/occ_405/amec/amec_sensors_ocmb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/occ_405/amec/amec_sensors_ocmb.c b/src/occ_405/amec/amec_sensors_ocmb.c
index 88f277c..a2cd4a6 100644
--- a/src/occ_405/amec/amec_sensors_ocmb.c
+++ b/src/occ_405/amec/amec_sensors_ocmb.c
@@ -50,8 +50,8 @@
/******************************************************************************/
extern dimm_sensor_flags_t G_dimm_overtemp_bitmap;
extern dimm_sensor_flags_t G_dimm_temp_updated_bitmap;
-extern uint8_t G_cent_overtemp_bitmap;
-extern uint8_t G_cent_temp_updated_bitmap;
+extern uint16_t G_cent_overtemp_bitmap;
+extern uint16_t G_cent_temp_updated_bitmap;
extern uint8_t G_centaur_needs_recovery;
extern uint64_t G_inject_dimm;
extern uint32_t G_inject_dimm_trace[MAX_NUM_OCMBS][NUM_DIMMS_PER_OCMB];
@@ -337,7 +337,7 @@ void amec_update_ocmb_dts_sensors(OcmbMemData * i_sensor_cache, uint8_t i_membuf
}
else
{
- //don't allow temp to change more than is reasonable for 2ms
+ //don't allow temp to change more than is reasonable since last read
if(l_sens_temp > (l_prev_temp + MAX_MEM_TEMP_CHANGE))
{
l_dts = l_prev_temp + MAX_MEM_TEMP_CHANGE;
@@ -365,7 +365,7 @@ void amec_update_ocmb_dts_sensors(OcmbMemData * i_sensor_cache, uint8_t i_membuf
}
//Notify thermal thread that temperature has been updated
- G_cent_temp_updated_bitmap |= CENTAUR0_PRESENT_MASK >> i_membuf;
+ G_cent_temp_updated_bitmap |= (CENTAUR0_PRESENT_MASK >> i_membuf);
//clear error flags
l_fru->flags &= FRU_TEMP_FAST_CHANGE;
@@ -434,7 +434,7 @@ void amec_update_ocmb_temp_sensors(void)
l_hot_dimm = g_amec->proc[0].memctl[k].centaur.tempdimmax.sample;
}
}
- sensor_update(&g_amec->proc[0].temp2mscent,l_hot_mb);
+ sensor_update(&g_amec->proc[0].tempcent,l_hot_mb);
AMEC_DBG("HotMembuf=%d\n",l_hot_mb);
sensor_update(&g_amec->proc[0].tempdimmthrm,l_hot_dimm);
OpenPOWER on IntegriCloud