[GIT PULL] Thermal control fixes for v6.10-rc4

From: Rafael J. Wysocki
Date: Fri Jun 14 2024 - 09:29:15 EST


Hi Linus,

Please pull from the tag

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
thermal-6.10-rc4

with top-most commit b6846826982b9f2f2ad0e79540521b517469ee92

thermal: gov_step_wise: Restore passive polling management

on top of commit ae2170d6ea96e652c7fb5689f1980986bf48b7b8

thermal: trip: Trigger trip down notifications when trips involved in
mitigation become invalid

to receive thermal control fixes for 6.10-rc4.

These fix three issues introduced recently, two related to defects in
ACPI tables supplied by the platform firmware and one cause by a thermal
core change that went too far:

- Prevent the thermal core from failing the registration of a cooling
device if its .get_cur_state() reports an incorrect state to start
with which may happen for fans handled through firmware-supplied AML
in ACPI tables.

- Make the ACPI thermal zone driver initialize all trip points with
temperature of 0 centigrade and below as invalid because such trip
point temperatures do not make sense on systems with ACPI thermal
control and they cause performance regressions due to permanent
thermal mitigations to occur.

- Restore passive polling management in the Step-Wise thermal governor
that uses it to ensure that all cooling devices used for thermal
mitigation will go back to their initial states eventually.

Thanks!


---------------

Rafael J. Wysocki (3):
thermal: core: Do not fail cdev registration because of invalid
initial state
thermal: ACPI: Invalidate trip points with temperature of 0 or below
thermal: gov_step_wise: Restore passive polling management

---------------

drivers/acpi/thermal.c | 8 +++++++-
drivers/thermal/gov_step_wise.c | 17 +++++++++++++++++
drivers/thermal/thermal_core.c | 13 +++++++++++--
3 files changed, 35 insertions(+), 3 deletions(-)