Skip to content

Thermal: ACPI INT340X thermal drivers

Zhang Rui linux-acpi linux-pm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19ACPI: introduce ACPI int340x thermal scan handlerdrivers/acpi/Makefile drivers/acpi/int340x_thermal.c drivers/acpi/internal.h +2 more+71 -01 reply
2/19ACPI: make acpi_create_platform_device() an external APIdrivers/acpi/acpi_platform.c include/linux/acpi.h+8 -01 reply
3/19ACPI: add ACPI_TYPE_LOCAL_REFERENCE support to acpi_extract_package()drivers/acpi/utils.c+27 -11 reply
4/19Thermal: introduce int3400 thermal driverdrivers/acpi/int340x_thermal.c drivers/thermal/Kconfig drivers/thermal/Makefile +2 more+249 -20 replies
5/19Thermal: int3400 thermal: add capability to detect supporting UUIDsdrivers/thermal/int340x_thermal/int3400_thermal.c+69 -00 replies
6/19Thermal: int3400 thermal: register to thermal frameworkdrivers/thermal/Kconfig drivers/thermal/int340x_thermal/int3400_thermal.c+104 -00 replies
7/19ACPI / fan: remove unused macrodrivers/acpi/fan.c+0 -40 replies
8/19ACPI / fan: remove no need check for device pointerdrivers/acpi/fan.c+1 -170 replies
9/19ACPI / fan: use acpi_device_xxx_power instead of acpi_bus equivelantdrivers/acpi/device_pm.c drivers/acpi/fan.c drivers/acpi/internal.h +1 more+7 -70 replies
10/19ACPI / fan: convert to platform driverdrivers/acpi/fan.c+28 -340 replies
11/19ACPI / Fan: add ACPI 4.0 style fan supportdrivers/acpi/fan.c+241 -270 replies
12/19ACPI / Fan: support INT3404 thermal devicedrivers/acpi/fan.c+1 -00 replies
13/19Thermal: move the KELVIN_TO_MILLICELSIUS macro to thermal.hdrivers/acpi/thermal.c include/linux/thermal.h+11 -90 replies
14/19Thermal: introduce INT3402 thermal driverdrivers/thermal/int340x_thermal/Makefile drivers/thermal/int340x_thermal/int3402_thermal.c include/linux/thermal.h+245 -00 replies
15/19Thermal: introduce int3403 thermal driverdrivers/thermal/Kconfig drivers/thermal/Makefile drivers/thermal/int3403_thermal.c +2 more+490 -3120 replies
16/19Thermal: int340x_thermal: expose acpi thermal relationship tablesdrivers/thermal/Kconfig drivers/thermal/int340x_thermal/Makefile drivers/thermal/int340x_thermal/acpi_thermal_rel.c +1 more+490 -00 replies
17/19Thermal: int3400_thermal: use acpi_thermal_rel parsing APIsdrivers/thermal/int340x_thermal/int3400_thermal.c+13 -1590 replies
18/19Thermal: introduce INT3406 thermal driverdrivers/acpi/video.c drivers/thermal/int340x_thermal/Makefile drivers/thermal/int340x_thermal/int3406_thermal.c +3 more+323 -520 replies
19/19Thermal: int340x thermal: select ACPI fan driverdrivers/acpi/Kconfig drivers/thermal/Kconfig+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/19] Thermal: ACPI INT340X thermal drivers

Hi,

Newer laptops and tablets that use ACPI may have thermal sensors and other devices with thermal control capabilities outside the core CPU/SOC, for thermal safety reasons.
They are exposed for the OS to use via the ACPI INT340x device objects.

This patch set introduces kernel drivers for those INT340X devices and expose their telemetry and cooling capability to user space via the normal thermal framework. So that a wide range of applications and GUI widgets can show this information to the user or use this information for making decisions. For example, the Intel Thermal Daemon can use this information to allow the user to select his laptop to run w/ or w/o turning on the fans.

thanks,
rui

----------------------------------------------------------------
Aaron Lu (9):
ACPI / fan: remove unused macro
ACPI / fan: remove no need check for device pointer
ACPI / fan: use acpi_device_xxx_power instead of acpi_bus equivelant ACPI / fan: convert to platform driver
ACPI / Fan: add ACPI 4.0 style fan support
ACPI / Fan: support INT3404 thermal device
Thermal: move the KELVIN_TO_MILLICELSIUS macro to thermal.h
Thermal: introduce INT3402 thermal driver
Thermal: introduce INT3406 thermal driver

Jacob Pan (2):
Thermal: int340x_thermal: expose acpi thermal relationship tables
Thermal: int3400_thermal: use acpi_thermal_rel parsing APIs

Lan Tianyu (1):
Thermal: introduce int3403 thermal driver

Zhang Rui (7):
ACPI: introduce ACPI int340x thermal scan handler
ACPI: make acpi_create_platform_device() an external API
ACPI: add ACPI_TYPE_LOCAL_REFERENCE support to acpi_extract_package()
Thermal: introduce int3400 thermal driver
Thermal: int3400 thermal: add capability to detect supporting UUIDs
Thermal: int3400 thermal: register to thermal framework
Thermal: int340x thermal: select ACPI fan driver

 drivers/acpi/Kconfig                               |   2 +-
 drivers/acpi/Makefile                              |   1 +
 drivers/acpi/acpi_platform.c                       |   1 +
 drivers/acpi/device_pm.c                           |   1 +
 drivers/acpi/fan.c                                 | 341 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
 drivers/acpi/int340x_thermal.c                     |  51 ++++++++++++++++
 drivers/acpi/internal.h                            |   3 +-
 drivers/acpi/scan.c                                |   1 +
 drivers/acpi/thermal.c                             |  18 +++---
 drivers/acpi/utils.c                               |  28 ++++++++-
 drivers/acpi/video.c                               |  78 +++++++++++++-----------
 drivers/thermal/Kconfig                            |  39 +++++++-----
 drivers/thermal/Makefile                           |   2 +-
 drivers/thermal/int3403_thermal.c                  | 296 ----------------------------------------------------------------------------------------
 drivers/thermal/int340x_thermal/Makefile           |   5 ++
 drivers/thermal/int340x_thermal/acpi_thermal_rel.c | 400 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/thermal/int340x_thermal/acpi_thermal_rel.h |  84 +++++++++++++++++++++++++
 drivers/thermal/int340x_thermal/int3400_thermal.c  | 271 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/thermal/int340x_thermal/int3402_thermal.c  | 242 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/thermal/int340x_thermal/int3403_thermal.c  | 489 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/thermal/int340x_thermal/int3406_thermal.c  | 230 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/video/backlight/backlight.c                |  44 +++++++++-----
 include/acpi/acpi_bus.h                            |   1 +
 include/acpi/video.h                               |  20 ++++++
 include/linux/acpi.h                               |   7 +++
 include/linux/backlight.h                          |   2 +
 include/linux/thermal.h                            |   4 ++
 27 files changed, 2208 insertions(+), 453 deletions(-)
 create mode 100644 drivers/acpi/int340x_thermal.c
 delete mode 100644 drivers/thermal/int3403_thermal.c
 create mode 100644 drivers/thermal/int340x_thermal/Makefile
 create mode 100644 drivers/thermal/int340x_thermal/acpi_thermal_rel.c
 create mode 100644 drivers/thermal/int340x_thermal/acpi_thermal_rel.h
 create mode 100644 drivers/thermal/int340x_thermal/int3400_thermal.c
 create mode 100644 drivers/thermal/int340x_thermal/int3402_thermal.c
 create mode 100644 drivers/thermal/int340x_thermal/int3403_thermal.c
 create mode 100644 drivers/thermal/int340x_thermal/int3406_thermal.c