diff options
author | Doug Gilbert <dgilbert@us.ibm.com> | 2017-08-30 11:49:34 -0500 |
---|---|---|
committer | Martha Broyles <mbroyles@us.ibm.com> | 2017-09-21 09:58:02 -0400 |
commit | 2fe9ab3dcaa6a7208cb5f92619dbc0f5fd83201f (patch) | |
tree | 9aacf8882747f683c77eca2da0fc07525a4034c4 /src/occ_gpe0/nest_dts.c | |
parent | f92b6d26c9d2f3d1fe0e25de3768ce972d7051d1 (diff) | |
download | talos-occ-2fe9ab3dcaa6a7208cb5f92619dbc0f5fd83201f.tar.gz talos-occ-2fe9ab3dcaa6a7208cb5f92619dbc0f5fd83201f.zip |
Add Droop counter sensors
Change-Id: If4c367eaeaaf746619d537d4d8424cf018591563
RTC: 155684
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45574
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_gpe0/nest_dts.c')
-rw-r--r-- | src/occ_gpe0/nest_dts.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/occ_gpe0/nest_dts.c b/src/occ_gpe0/nest_dts.c index cdb615c..74ece94 100644 --- a/src/occ_gpe0/nest_dts.c +++ b/src/occ_gpe0/nest_dts.c @@ -22,6 +22,7 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + #include <nest_dts.h> #include <ppe42_msr.h> #include <ppe42_scom.h> @@ -49,10 +50,8 @@ uint32_t get_nest_dts(NestDts_t* o_data) uint32_t org_sem = mfmsr() & MSR_SEM; // Clear SIBRC and SIBRCA - // mask off resource occupied/offline errors - will return these) - // SIB rc 3-7 will machine check (unless already masked) - mtmsr((mfmsr() & ~(MSR_SIBRC | MSR_SIBRCA)) - | 0xe0000000); //MASK SIBRC == 1 | SIBRC == 2 + // mask off SIB errors as machine checks, return rc instead + mtmsr((mfmsr() & ~(MSR_SIBRC | MSR_SIBRCA)) | MSR_SEM); // Get DTS readings PPE_LVD(nest1Select + THERM_DTS_RESULT, value64); @@ -93,4 +92,3 @@ uint32_t get_nest_dts(NestDts_t* o_data) return rc; } - |