summaryrefslogtreecommitdiffstats
path: root/src/occ_405/amec/amec_health.c
diff options
context:
space:
mode:
authorChris Cain <cjcain@us.ibm.com>2016-08-03 10:57:57 -0500
committerChristopher J. Cain <cjcain@us.ibm.com>2016-08-11 16:28:46 -0400
commit5b69d47a980cc851b7eea9f45f7eb9bb0f567a04 (patch)
tree984971897ab8b57fccd474c41f5f87b65ed03dec /src/occ_405/amec/amec_health.c
parent315680e0fd53cbc3f271b7d59393a4bf4661b8e2 (diff)
downloadtalos-occ-5b69d47a980cc851b7eea9f45f7eb9bb0f567a04.tar.gz
talos-occ-5b69d47a980cc851b7eea9f45f7eb9bb0f567a04.zip
Add DIMM temperature validation, update fru flags, and rename dimm sensor
Change-Id: Ie201160d92b0d00dd523c78eb1496a1b05e2647a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27836 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Diffstat (limited to 'src/occ_405/amec/amec_health.c')
-rwxr-xr-xsrc/occ_405/amec/amec_health.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/occ_405/amec/amec_health.c b/src/occ_405/amec/amec_health.c
index a559f04..7eaa84e 100755
--- a/src/occ_405/amec/amec_health.c
+++ b/src/occ_405/amec/amec_health.c
@@ -86,13 +86,12 @@ uint64_t amec_mem_get_huid(uint8_t i_cent, uint8_t i_dimm)
{
//we're being asked for a dimm huid
l_huid = G_sysConfigData.dimm_huids[i_cent][i_dimm];
- if(!l_huid)
+ if((l_huid == 0) && (MEM_TYPE_CUMULUS == G_sysConfigData.mem_type))
{
- //if we don't have a valid dimm huid, use the
- //centaur huid.
- //TODO: this will not work for ISDIMMS.
+ //if we don't have a valid dimm huid, use the centaur huid.
l_huid = G_sysConfigData.centaur_huids[i_cent];
}
+ // else NIMBUS huid of 0 indicates not present (should never get called)
}
return l_huid;
}
@@ -142,7 +141,7 @@ void amec_health_check_dimm_temp()
}
l_ot_error = g_amec->thermaldimm.ot_error;
- l_sensor = getSensorByGsid(TEMP2MSDIMM);
+ l_sensor = getSensorByGsid(TEMP16MSDIMM);
l_cur_temp = l_sensor->sample;
l_max_temp = l_sensor->sample_max;
TRAC_ERR("amec_health_check_dimm_temp: DIMM reached error temp[%d]. cur_max[%d], hist_max[%d]",
OpenPOWER on IntegriCloud