[GIT PULL] Thermal control updates for v6.9-rc1

From: Rafael J. Wysocki
Date: Mon Mar 11 2024 - 12:02:21 EST


Hi Linus,

Please pull from the tag

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
thermal-6.9-rc1

with top-most commit dcb497ec993265dfc5fffa60b486c1ad353e9ad5

Merge branches 'thermal-core' and 'thermal-intel'

on top of commit 841c35169323cd833294798e58b9bf63fa4fa1de

Linux 6.8-rc4

to receive thermal control updates for 6.9-rc1.

These mostly change the thermal core in a few ways allowing thermal
drivers to be simplified, in particular in their removal and failing
probe handling parts that are notoriously prone to errors, and propagate
the changes to several drivers.

Apart from that, support for a new platform is added (Intel Lunar
Lake-M), some bugs are fixed and some code is cleaned up, as usual.

Specifics:

- Store zone trips table and zone operations directly in struct
thermal_zone_device (Rafael Wysocki).

- Fix up flex array initialization during thermal zone device
registration (Nathan Chancellor).

- Rework writable trip points handling in the thermal core and
several drivers (Rafael Wysocki).

- Thermal core code cleanups (Dan Carpenter, Flavio Suligoi).

- Use thermal zone accessor functions in the int340x Intel thermal
driver (Rafael Wysocki).

- Add Lunar Lake-M PCI ID to the int340x Intel thermal driver (Srinivas
Pandruvada).

- Minor fixes for thermal governors (Rafael Wysocki, Di Shen).

- Trip point handling fixes for the iwlwifi wireless driver (Rafael
Wysocki).

- Code cleanups (Rafael Wysocki, AngeloGioacchino Del Regno).

Thanks!


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

AngeloGioacchino Del Regno (1):
thermal: core: Change governor name to const char pointer

Dan Carpenter (1):
thermal: core: remove unnecessary check in trip_point_hyst_store()

Di Shen (1):
thermal: gov_power_allocator: Avoid overwriting PID coefficients
from setup time

Flavio Suligoi (1):
thermal: core: Remove excess empty line from a comment

Nathan Chancellor (1):
thermal: core: Move initial num_trips assignment before memcpy()

Rafael J. Wysocki (22):
thermal: gov_fair_share: Fix dependency on trip points ordering
thermal: gov_bang_bang: Fix possible cooling device state ping-pong
iwlwifi: mvm: Drop unused fw_trips_index[] from iwl_mvm_thermal_device
iwlwifi: mvm: Populate trip table before registering thermal zone
iwlwifi: mvm: Use for_each_thermal_trip() for walking trip points
thermal: sysfs: Fix up white space in trip_point_temp_store()
thermal: core: Store zone trips table in struct thermal_zone_device
thermal: ACPI: Discard trips table after zone registration
thermal: intel: Discard trip tables after zone registration
thermal: core: Store zone ops in struct thermal_zone_device
thermal: ACPI: Constify acpi_thermal_zone_ops
thermal: intel: Adjust ops handling during thermal zone registration
thermal: Get rid of CONFIG_THERMAL_WRITABLE_TRIPS
thermal: core: Add flags to struct thermal_trip
thermal: core: Drop the .set_trip_hyst() thermal zone operation
thermal: intel: Set THERMAL_TRIP_FLAG_RW_TEMP directly
mlxsw: core_thermal: Set THERMAL_TRIP_FLAG_RW_TEMP directly
wifi: iwlwifi: mvm: Set THERMAL_TRIP_FLAG_RW_TEMP directly
thermal: imx: Set THERMAL_TRIP_FLAG_RW_TEMP directly
thermal: of: Set THERMAL_TRIP_FLAG_RW_TEMP directly
thermal: core: Eliminate writable trip points masks
thermal: intel: int340x_thermal: Use thermal zone accessor functions

Srinivas Pandruvada (1):
thermal: int340x: processor_thermal: Add Lunar Lake-M PCI ID

Zhang Rui (1):
thermal/intel: Fix intel_tcc_get_temp() to support negative CPU
temperature

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

arch/arm/configs/imx_v6_v7_defconfig | 1 -
drivers/acpi/thermal.c | 61 +++++++----------
drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.c | 2 +-
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 12 ++--
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 2 -
drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 73 ++++++++++----------
drivers/platform/x86/acerhdf.c | 2 +-
drivers/thermal/Kconfig | 11 ----
drivers/thermal/da9062-thermal.c | 2 +-
drivers/thermal/gov_bang_bang.c | 2 +-
drivers/thermal/gov_fair_share.c | 16 +++--
drivers/thermal/gov_power_allocator.c | 2 +
drivers/thermal/imx_thermal.c | 6 +-
drivers/thermal/intel/Kconfig | 2 -
.../intel/int340x_thermal/int340x_thermal_zone.c | 43 ++++--------
.../intel/int340x_thermal/int340x_thermal_zone.h | 2 -
.../int340x_thermal/processor_thermal_device.c | 8 +--
.../int340x_thermal/processor_thermal_device.h | 1 +
.../int340x_thermal/processor_thermal_device_pci.c | 13 ++--
drivers/thermal/intel/intel_pch_thermal.c | 28 ++++----
drivers/thermal/intel/intel_quark_dts_thermal.c | 34 ++++------
drivers/thermal/intel/intel_soc_dts_iosf.c | 77 +++++++++-------------
drivers/thermal/intel/intel_soc_dts_iosf.h | 2 -
drivers/thermal/intel/intel_tcc.c | 12 ++--
drivers/thermal/intel/x86_pkg_temp_thermal.c | 47 +++++--------
drivers/thermal/rcar_thermal.c | 2 +-
drivers/thermal/st/st_thermal.c | 2 +-
drivers/thermal/thermal_core.c | 76 +++++++++------------
drivers/thermal/thermal_core.h | 2 +-
drivers/thermal/thermal_helpers.c | 10 +--
drivers/thermal/thermal_hwmon.c | 4 +-
drivers/thermal/thermal_of.c | 37 ++++-------
drivers/thermal/thermal_sysfs.c | 38 +++++------
drivers/thermal/thermal_trip.c | 6 +-
include/linux/intel_tcc.h | 2 +-
include/linux/thermal.h | 37 ++++++-----
36 files changed, 282 insertions(+), 395 deletions(-)