From 2fe9ab3dcaa6a7208cb5f92619dbc0f5fd83201f Mon Sep 17 00:00:00 2001 From: Doug Gilbert Date: Wed, 30 Aug 2017 11:49:34 -0500 Subject: Add Droop counter sensors Change-Id: If4c367eaeaaf746619d537d4d8424cf018591563 RTC: 155684 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45574 Tested-by: FSP CI Jenkins Reviewed-by: Andres A. Lugo-Reyes Reviewed-by: Martha Broyles --- src/occ_gpe0/nest_dts.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/occ_gpe0/nest_dts.c') 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 #include #include @@ -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; } - -- cgit v1.2.1