[GIT PULL] Thermal control updates for v5.18-rc1

From: Rafael J. Wysocki
Date: Mon Mar 21 2022 - 12:40:00 EST


Hi Linus,

Please pull from the tag

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

with top-most commit 31035f3e20af4ede5f1c8162068327ea0b35a96e

Merge branch 'thermal-hfi'

on top of commit 7e57714cd0ad2d5bb90e50b5096a0e671dec1ef3

Linux 5.17-rc6

to receive thermal control updates for 5.18-rc1.

As far as new functionality is concerned, there is a new thermal
driver for the Intel Hardware Feedback Interface (HFI) along with
some intel-speed-select utility changes to support it. There are
also new DT compatible strings for a couple of platforms and
thermal zones on some platforms will be registered as HWmon
sensors now.

Apart from the above, some drivers are updated (fixes mostly) and
there is a new piece of documentation for the Intel DPTF (Dynamic
Power and Thermal Framework) sysfs interface.

Specifics:

- Add a new thermal driver for the Intel Hardware Feedback Interface
(HFI) including the HFI initialization, HFI notification interrupt
handling and sending CPU capabilities change messages to user
space via the thermal netlink interface (Ricardo Neri, Srinivas
Pandruvada, Nathan Chancellor, Randy Dunlap).

- Extend the intel-speed-select utility to handle out-of-band CPU
configuration changes and add support for the CPU capabilities
change messages sent over the thermal netlink interface by the new
HFI thermal driver to it (Srinivas Pandruvada).

- Convert the DT bindings to yaml format for the Exynos platform
and fix and update the MAINTAINERS file for this driver (Krzysztof
Kozlowski).

- Register the thermal zones as HWmon sensors for the QCom's
Tsens driver and TI thermal platforms (Dmitry Baryshkov, Romain
Naour).

- Add the msm8953 compatible documentation in the bindings (Luca
Weiss).

- Add the sm8150 platform support to the QCom LMh driver's DT
binding (Thara Gopinath).

- Check the command result from the IPC command to the BPMP in the
Tegra driver (Mikko Perttunen).

- Silence the error for normal configuration where the interrupt
is optional in the Broadcom thermal driver (Florian Fainelli).

- Remove remaining dead code from the TI thermal driver (Yue
Haibing).

- Don't use bitmap_weight() in end_power_clamp() in the powerclamp
driver (Yury Norov).

- Update the OS policy capabilities handshake in the int340x thermal
driver (Srinivas Pandruvada).

- Increase the policies bitmap size in int340x (Srinivas Pandruvada).

- Replace acpi_bus_get_device() with acpi_fetch_acpi_dev() in the
int340x thermal driver (Rafael Wysocki).

- Check for NULL after calling kmemdup() in int340x (Jiasheng Jiang).

- Add Intel Dynamic Power and Thermal Framework (DPTF) kernel interface
documentation (Srinivas Pandruvada).

- Fix bullet list warning in the thermal documentation (Randy Dunlap).

Thanks!


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

Dmitry Baryshkov (1):
thermal/drivers/tsens: register thermal zones as hwmon sensors

Florian Fainelli (1):
thermal/drivers/brcmstb_thermal: Interrupt is optional

Jiasheng Jiang (1):
thermal: int340x: Check for NULL after calling kmemdup()

Krzysztof Kozlowski (3):
dt-bindings: thermal: samsung: Convert to dtschema
MAINTAINERS: thermal: samsung: Drop obsolete properties
MAINTAINERS: thermal: samsung: update Krzysztof Kozlowski's email

Luca Weiss (1):
dt-bindings: thermal: tsens: Add msm8953 compatible

Mikko Perttunen (1):
thermal: tegra-bpmp: Handle errors in BPMP response

Nathan Chancellor (1):
thermal: netlink: Fix parameter type of
thermal_genl_cpu_capability_event() stub

Nicolas Cavallari (1):
thermal: core: Fix TZ_GET_TRIP NULL pointer dereference

Rafael J. Wysocki (1):
thermal: Replace acpi_bus_get_device()

Randy Dunlap (2):
thermal: fix Documentation bullet list warning
thermal: intel: hfi: INTEL_HFI_THERMAL depends on NET

Ricardo Neri (5):
x86/Documentation: Describe the Intel Hardware Feedback Interface
x86/cpu: Add definitions for the Intel Hardware Feedback Interface
thermal: intel: hfi: Minimally initialize the Hardware Feedback Interface
thermal: intel: hfi: Handle CPU hotplug events
thermal: intel: hfi: Enable notification interrupt

Romain Naour (1):
drivers/thermal/ti-soc-thermal: Add hwmon support

Srinivas Pandruvada (8):
thermal: netlink: Add a new event to notify CPU capabilities change
thermal: intel: hfi: Notify user space for HFI events
tools/power/x86/intel-speed-select: OOB daemon mode
tools/power/x86/intel-speed-select: HFI support
tools/power/x86/intel-speed-select: v1.12 release
Documentation: thermal: DPTF Documentation
thermal: int340x: Increase bitmap size
thermal: int340x: Update OS policy capability handshake

Thara Gopinath (2):
thermal/drivers/qcom/lmh: Add support for sm8150
dt-bindings: thermal: Add sm8150 compatible string for LMh

YueHaibing (1):
thermal/drivers/ti-soc-thermal: Remove unused function
ti_thermal_get_temp()

Yury Norov (1):
thermal: intel_powerclamp: don't use bitmap_weight() in end_power_clamp()

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

Documentation/ABI/testing/sysfs-class-thermal | 2 +-
.../devicetree/bindings/thermal/exynos-thermal.txt | 106 ----
.../devicetree/bindings/thermal/qcom-lmh.yaml | 1 +
.../devicetree/bindings/thermal/qcom-tsens.yaml | 1 +
.../bindings/thermal/samsung,exynos-thermal.yaml | 184 +++++++
Documentation/driver-api/thermal/index.rst | 1 +
Documentation/driver-api/thermal/intel_dptf.rst | 272 ++++++++++
Documentation/x86/index.rst | 1 +
Documentation/x86/intel-hfi.rst | 72 +++
MAINTAINERS | 7 +-
arch/x86/include/asm/cpufeatures.h | 1 +
arch/x86/include/asm/msr-index.h | 6 +
drivers/thermal/broadcom/brcmstb_thermal.c | 2 +-
drivers/thermal/intel/Kconfig | 14 +
drivers/thermal/intel/Makefile | 1 +
.../intel/int340x_thermal/acpi_thermal_rel.c | 23 +-
.../intel/int340x_thermal/int3400_thermal.c | 153 ++++--
drivers/thermal/intel/intel_hfi.c | 569 +++++++++++++++++++++
drivers/thermal/intel/intel_hfi.h | 17 +
drivers/thermal/intel/intel_powerclamp.c | 9 +-
drivers/thermal/intel/therm_throt.c | 22 +
drivers/thermal/qcom/lmh.c | 62 ++-
drivers/thermal/qcom/tsens.c | 5 +
drivers/thermal/tegra/tegra-bpmp-thermal.c | 13 +-
drivers/thermal/thermal_netlink.c | 58 ++-
drivers/thermal/thermal_netlink.h | 14 +
drivers/thermal/ti-soc-thermal/ti-thermal-common.c | 12 +-
include/uapi/linux/thermal.h | 6 +-
tools/power/x86/intel-speed-select/Build | 2 +-
tools/power/x86/intel-speed-select/Makefile | 10 +-
tools/power/x86/intel-speed-select/hfi-events.c | 309 +++++++++++
tools/power/x86/intel-speed-select/isst-config.c | 54 +-
tools/power/x86/intel-speed-select/isst-daemon.c | 244 +++++++++
tools/power/x86/intel-speed-select/isst.h | 13 +
34 files changed, 2029 insertions(+), 237 deletions(-)