@@ -8094,8 +8094,11 @@ void ThermalMonitor_IA32(CORE_RO *Core)
8094
8094
ThermStatus.CriticalTemp_Log = 0;
8095
8095
ClearBit = 1;
8096
8096
}
8097
- if (Clear_Events & EVENT_THERM_THOLD ) {
8097
+ if (Clear_Events & EVENT_THOLD1_LOG ) {
8098
8098
ThermStatus.Threshold1_Log = 0;
8099
+ ClearBit = 1;
8100
+ }
8101
+ if (Clear_Events & EVENT_THOLD2_LOG) {
8099
8102
ThermStatus.Threshold2_Log = 0;
8100
8103
ClearBit = 1;
8101
8104
}
@@ -8148,8 +8151,8 @@ void ThermalMonitor_IA32(CORE_RO *Core)
8148
8151
((Bit64) ThermStatus.Thermal_Log << LSHIFT_THERMAL_LOG)
8149
8152
| ((Bit64) ThermStatus.PROCHOT_Log << LSHIFT_PROCHOT_LOG)
8150
8153
| ((Bit64) ThermStatus.CriticalTemp_Log << LSHIFT_CRITIC_LOG)
8151
- | ((Bit64) ( ThermStatus.Threshold1_Log
8152
- | ThermStatus.Threshold2_Log) << LSHIFT_THRESHOLD_LOG )
8154
+ | ((Bit64) ThermStatus.Threshold1_Log << LSHIFT_THOLD1_LOG)
8155
+ | ((Bit64) ThermStatus.Threshold2_Log << LSHIFT_THOLD2_LOG )
8153
8156
| ((Bit64) ThermStatus.PwrLimit_Log << LSHIFT_POWER_LIMIT)
8154
8157
| ((Bit64) ThermStatus.CurLimit_Log << LSHIFT_CURRENT_LIMIT)
8155
8158
| ((Bit64) ThermStatus.XDomLimit_Log << LSHIFT_CROSS_DOMAIN);
@@ -8158,8 +8161,8 @@ void ThermalMonitor_IA32(CORE_RO *Core)
8158
8161
((Bit64) ThermStatus.Thermal_Status << LSHIFT_THERMAL_STS)
8159
8162
| ((Bit64) ThermStatus.PROCHOT_Event << LSHIFT_PROCHOT_STS)
8160
8163
| ((Bit64) ThermStatus.CriticalTemp << LSHIFT_CRITIC_TMP)
8161
- | ((Bit64) ( ThermStatus.Threshold1
8162
- | ThermStatus.Threshold2) << LSHIFT_THERM_THOLD );
8164
+ | ((Bit64) ThermStatus.Threshold1 << LSHIFT_THOLD1_STS)
8165
+ | ((Bit64) ThermStatus.Threshold2 << LSHIFT_THOLD2_STS );
8163
8166
8164
8167
if (PUBLIC(RO(Proc))->Features.Power.EAX.PTM
8165
8168
&& (Core->Bind == PUBLIC(RO(Proc))->Service.Core))
@@ -8180,8 +8183,11 @@ void ThermalMonitor_IA32(CORE_RO *Core)
8180
8183
ThermStatus.CriticalTemp_Log = 0;
8181
8184
ClearBit = 1;
8182
8185
}
8183
- if (Clear_Events & EVENT_THERM_THOLD ) {
8186
+ if (Clear_Events & EVENT_THOLD1_LOG ) {
8184
8187
ThermStatus.Threshold1_Log = 0;
8188
+ ClearBit = 1;
8189
+ }
8190
+ if (Clear_Events & EVENT_THOLD2_LOG) {
8185
8191
ThermStatus.Threshold2_Log = 0;
8186
8192
ClearBit = 1;
8187
8193
}
@@ -8230,16 +8236,16 @@ void ThermalMonitor_IA32(CORE_RO *Core)
8230
8236
((Bit64) ThermStatus.Thermal_Log << LSHIFT_THERMAL_LOG)
8231
8237
| ((Bit64) ThermStatus.PROCHOT_Log << LSHIFT_PROCHOT_LOG)
8232
8238
| ((Bit64) ThermStatus.CriticalTemp_Log << LSHIFT_CRITIC_LOG)
8233
- | ((Bit64) ( ThermStatus.Threshold1_Log
8234
- | ThermStatus.Threshold2_Log) << LSHIFT_THRESHOLD_LOG )
8239
+ | ((Bit64) ThermStatus.Threshold1_Log << LSHIFT_THOLD1_LOG)
8240
+ | ((Bit64) ThermStatus.Threshold2_Log << LSHIFT_THOLD2_LOG )
8235
8241
| ((Bit64) ThermStatus.PwrLimit_Log << LSHIFT_POWER_LIMIT);
8236
8242
8237
8243
PUBLIC(RO(Proc))->PowerThermal.Events[eSTS] = \
8238
8244
((Bit64) ThermStatus.Thermal_Status << LSHIFT_THERMAL_STS)
8239
8245
| ((Bit64) ThermStatus.PROCHOT_Event << LSHIFT_PROCHOT_STS)
8240
8246
| ((Bit64) ThermStatus.CriticalTemp << LSHIFT_CRITIC_TMP)
8241
- | ((Bit64) ( ThermStatus.Threshold1
8242
- | ThermStatus.Threshold2) << LSHIFT_THERM_THOLD );
8247
+ | ((Bit64) ThermStatus.Threshold1 << LSHIFT_THOLD1_STS)
8248
+ | ((Bit64) ThermStatus.Threshold2 << LSHIFT_THOLD2_STS );
8243
8249
}
8244
8250
}
8245
8251
}
@@ -12728,8 +12734,8 @@ void Core_Intel_Temp(CORE_RO *Core)
12728
12734
((Bit64) ThermStatus.Thermal_Log << LSHIFT_THERMAL_LOG)
12729
12735
| ((Bit64) ThermStatus.PROCHOT_Log << LSHIFT_PROCHOT_LOG)
12730
12736
| ((Bit64) ThermStatus.CriticalTemp_Log << LSHIFT_CRITIC_LOG)
12731
- | ((Bit64) ( ThermStatus.Threshold1_Log
12732
- | ThermStatus.Threshold2_Log) << LSHIFT_THRESHOLD_LOG )
12737
+ | ((Bit64) ThermStatus.Threshold1_Log << LSHIFT_THOLD1_LOG)
12738
+ | ((Bit64) ThermStatus.Threshold2_Log << LSHIFT_THOLD2_LOG )
12733
12739
| ((Bit64) ThermStatus.PwrLimit_Log << LSHIFT_POWER_LIMIT)
12734
12740
| ((Bit64) ThermStatus.CurLimit_Log << LSHIFT_CURRENT_LIMIT)
12735
12741
| ((Bit64) ThermStatus.XDomLimit_Log << LSHIFT_CROSS_DOMAIN);
@@ -12738,8 +12744,8 @@ void Core_Intel_Temp(CORE_RO *Core)
12738
12744
((Bit64) ThermStatus.Thermal_Status << LSHIFT_THERMAL_STS)
12739
12745
| ((Bit64) ThermStatus.PROCHOT_Event << LSHIFT_PROCHOT_STS)
12740
12746
| ((Bit64) ThermStatus.CriticalTemp << LSHIFT_CRITIC_TMP)
12741
- | ((Bit64) ( ThermStatus.Threshold1
12742
- | ThermStatus.Threshold2) << LSHIFT_THERM_THOLD );
12747
+ | ((Bit64) ThermStatus.Threshold1 << LSHIFT_THOLD1_STS)
12748
+ | ((Bit64) ThermStatus.Threshold2 << LSHIFT_THOLD2_STS );
12743
12749
}
12744
12750
12745
12751
#define Pkg_Intel_Temp(Pkg) \
@@ -12754,16 +12760,16 @@ void Core_Intel_Temp(CORE_RO *Core)
12754
12760
((Bit64) ThermStatus.Thermal_Log << LSHIFT_THERMAL_LOG) \
12755
12761
| ((Bit64) ThermStatus.PROCHOT_Log << LSHIFT_PROCHOT_LOG) \
12756
12762
| ((Bit64) ThermStatus.CriticalTemp_Log << LSHIFT_CRITIC_LOG) \
12757
- | ((Bit64) ( ThermStatus.Threshold1_Log \
12758
- | ThermStatus.Threshold2_Log) << LSHIFT_THRESHOLD_LOG) \
12763
+ | ((Bit64) ThermStatus.Threshold1_Log << LSHIFT_THOLD1_LOG) \
12764
+ | ((Bit64) ThermStatus.Threshold2_Log << LSHIFT_THOLD2_LOG) \
12759
12765
| ((Bit64) ThermStatus.PwrLimit_Log << LSHIFT_POWER_LIMIT); \
12760
12766
\
12761
12767
Pkg->PowerThermal.Events[eSTS] = \
12762
12768
((Bit64) ThermStatus.Thermal_Status << LSHIFT_THERMAL_STS) \
12763
12769
| ((Bit64) ThermStatus.PROCHOT_Event << LSHIFT_PROCHOT_STS) \
12764
12770
| ((Bit64) ThermStatus.CriticalTemp << LSHIFT_CRITIC_TMP) \
12765
- | ((Bit64) ( ThermStatus.Threshold1 \
12766
- | ThermStatus.Threshold2) << LSHIFT_THERM_THOLD); \
12771
+ | ((Bit64) ThermStatus.Threshold1 << LSHIFT_THOLD1_STS) \
12772
+ | ((Bit64) ThermStatus.Threshold2 << LSHIFT_THOLD2_STS); \
12767
12773
} \
12768
12774
})
12769
12775
@@ -19765,7 +19771,8 @@ static long CoreFreqK_ioctl( struct file *filp,
19765
19771
case EVENT_THERMAL_LOG:
19766
19772
case EVENT_PROCHOT_LOG:
19767
19773
case EVENT_CRITIC_LOG:
19768
- case EVENT_THERM_THOLD:
19774
+ case EVENT_THOLD1_LOG:
19775
+ case EVENT_THOLD2_LOG:
19769
19776
case EVENT_POWER_LIMIT:
19770
19777
case EVENT_CURRENT_LIMIT:
19771
19778
case EVENT_CROSS_DOMAIN:
0 commit comments