Skip to content

generic thermal management

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 38 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10the generic thermal sysfs driverDocumentation/thermal/sysfs-api.txt drivers/Kconfig drivers/Makefile +4 more+1076 -00 replies
1/10the generic thermal sysfs driverDocumentation/thermal/sysfs-api.txt drivers/Kconfig drivers/Makefile +4 more+1076 -00 replies
2/10ACPI: register ACPI thermal zone as generic thermal zone devicesdrivers/acpi/Kconfig drivers/acpi/thermal.c+292 -100 replies
2/10ACPI: register ACPI thermal zone as generic thermal zone devicesdrivers/acpi/Kconfig drivers/acpi/thermal.c+292 -100 replies
3/10ACPI: ACPI thermal zone handle notification correctlydrivers/acpi/thermal.c+183 -1400 replies
3/10ACPI: ACPI thermal zone handle notification correctlydrivers/acpi/thermal.c+183 -1400 replies
4/10ACPI: register ACPI Fan as generic thermal cooling devicedrivers/acpi/fan.c+83 -72 replies
4/10ACPI: register ACPI Fan as generic thermal cooling devicedrivers/acpi/fan.c+83 -70 replies
5/10ACPI: register ACPI Processor as generic thermal cooling devicedrivers/acpi/processor_core.c drivers/acpi/processor_thermal.c include/acpi/processor.h+155 -80 replies
5/10ACPI: register ACPI Processor as generic thermal cooling devicedrivers/acpi/processor_core.c drivers/acpi/processor_thermal.c include/acpi/processor.h+155 -80 replies
6/10ACPI: register ACPI Video LCD as generic thermal cooling devicedrivers/acpi/video.c+77 -18 replies
6/10ACPI: register ACPI Video LCD as generic thermal cooling devicedrivers/acpi/video.c+77 -10 replies
7/10ACPI: attach thermal zone infodrivers/acpi/bus.c drivers/acpi/thermal.c include/acpi/acpi_bus.h+38 -00 replies
7/10ACPI: attach thermal zone infodrivers/acpi/bus.c drivers/acpi/thermal.c include/acpi/acpi_bus.h+38 -00 replies
8/10ACPI: CELSIUS_TO_KELVIN fixupdrivers/acpi/thermal.c include/linux/thermal.h+4 -30 replies
8/10ACPI: CELSIUS_TO_KELVIN fixupdrivers/acpi/thermal.c include/linux/thermal.h+4 -30 replies
9/10introduce intel_menlow platform specific driverdrivers/misc/Kconfig drivers/misc/Makefile drivers/misc/intel_menlow.c+538 -026 replies
9/10introduce intel_menlow platform specific driverdrivers/misc/Kconfig drivers/misc/Makefile drivers/misc/intel_menlow.c+538 -00 replies
10/10ACPI: thermal fixupdrivers/acpi/thermal.c+24 -180 replies
10/10ACPI: thermal fixupdrivers/acpi/thermal.c+24 -180 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/10] generic thermal management

Hi, all,

This patch series introduces a new generic thermal sysfs driver which provides a set of interfaces for thermal zone devices (sensors) and thermal cooling devices (fan, processor...) to register with the thermal management solution and to be a part of it.

And it also includes the implementation for ACPI thermal zone. Standard sysfs I/F should be available for all ACPI thermal zones with this patch series applied.

Patch 01 creates the new generic thermal sysfs driver.
It defines two kinds of devices, thermal zone device and thermal cooling device.
A thermal zone device usually contains a sensor to monitor the temperature, several trip points and a bunch of cooling devices associated with them.
A thermal cooling device is a device that can be throttled to cool the system.
The generic thermal sysfs driver creates the standard sysfs I/F for any registered thermal zone and thermal cooling device. And binds the cooling devices to thermal zones if possible.

Patch 02 registers ACPI thermal zone as thermal zone device.

Patch 03 is a fix of violations of ACPI spec in ACPI thermal driver.

Patch 04 registers ACPI Fan as thermal cooling device.

Patch 05 registers ACPI Processor as thermal cooling device.

Patch 06 registers ACPI Video LCD as thermal cooling device.
Because throttling the backlight of LCD can cool the system as well.

Patch 09 creates a new platform specific driver, intel_menlow.
which is the thermal enhancement driver for intel menlow platform. It programs the sensor of each thermal zone and registers the intel memory controller (hardware id INT0002) as thermal cooling device.

Patch 07 08 and 10 are minor fixes, please refer to the changelog of each patch.

I've tested them and they work well on several systems.
I'd like to get some feedbacks from the list. Any comments are appreciated. :)

Thanks,
Rui