diff --git a/common/thermal.c b/common/thermal.c index fa54b3123b..7d2640a1ad 100644 --- a/common/thermal.c +++ b/common/thermal.c @@ -105,6 +105,8 @@ static void smi_sensor_failure_warning(void) static void overheated_action(void) { if (overheated[THRESHOLD_POWER_DOWN]) { + cprintf(CC_CHIPSET, + "[%T critical temperature; shutting down]\n"); x86_power_force_shutdown(); return; } diff --git a/common/x86_power.c b/common/x86_power.c index 7136795529..cd599692d2 100644 --- a/common/x86_power.c +++ b/common/x86_power.c @@ -181,8 +181,10 @@ void x86_power_cpu_overheated(int too_hot) if (too_hot) { overheat_count++; - if (overheat_count > 3) + if (overheat_count > 3) { + CPRINTF("[%T overheated; shutting down]\n"); x86_power_force_shutdown(); + } } else { overheat_count = 0; } @@ -190,6 +192,8 @@ void x86_power_cpu_overheated(int too_hot) void x86_power_force_shutdown(void) { + CPRINTF("[%T x86 power force shutdown]\n"); + /* * Force x86 off. This condition will reset once the state machine * transitions to G3.