OpenCloudOS-Kernel/drivers/thermal/intel/int340x_thermal
Kai-Heng Feng dd47366aaa thermal: int340x: Fix unexpected shutdown at critical temperature
We are seeing thermal shutdown on Intel based mobile workstations, the
shutdown happens during the first trip handle in
thermal_zone_device_register():
kernel: thermal thermal_zone15: critical temperature reached (101 C), shutting down

However, we shouldn't do a thermal shutdown here, since
1) We may want to use a dedicated daemon, Intel's thermald in this case,
to handle thermal shutdown.

2) For ACPI based system, _CRT doesn't mean shutdown unless it's inside
ThermalZone namespace. ACPI Spec, 11.4.4 _CRT (Critical Temperature):
"... If this object it present under a device, the device’s driver
evaluates this object to determine the device’s critical cooling
temperature trip point. This value may then be used by the device’s
driver to program an internal device temperature sensor trip point."

So a "critical trip" here merely means we should take a more aggressive
cooling method.

As int340x device isn't present under ACPI ThermalZone, override the
default .critical callback to prevent surprising thermal shutdown.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201221172345.36976-1-kai.heng.feng@canonical.com
2021-01-19 22:30:25 +01:00
..
Kconfig thermal: int340x: processor_thermal: Refactor MMIO interface 2020-12-10 12:29:47 +01:00
Makefile thermal: int340x: processor_thermal: Add mailbox driver 2020-12-10 12:29:50 +01:00
acpi_thermal_rel.c acpi: Remove header dependency 2020-03-21 16:00:21 +01:00
acpi_thermal_rel.h
int340x_thermal_zone.c thermal: int340x: Fix unexpected shutdown at critical temperature 2021-01-19 22:30:25 +01:00
int340x_thermal_zone.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
int3400_thermal.c thermal: int340x: Support Alder Lake 2020-12-17 15:29:30 +01:00
int3402_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
int3403_thermal.c thermal: int340x: Support Alder Lake 2020-12-17 15:29:30 +01:00
int3406_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
processor_thermal_device.c thermal: int340x: processor_thermal: Add mailbox driver 2020-12-10 12:29:50 +01:00
processor_thermal_device.h thermal: int340x: processor_thermal: Add mailbox driver 2020-12-10 12:29:50 +01:00
processor_thermal_mbox.c thermal: int340x: processor_thermal: Correct workload type name 2020-12-10 22:48:52 +01:00
processor_thermal_rapl.c thermal: int340x: processor_thermal: Refactor MMIO interface 2020-12-10 12:29:47 +01:00
processor_thermal_rfim.c thermal: int340x: processor_thermal: Add RFIM driver 2020-12-10 12:29:49 +01:00