]> Gentwo Git Trees - linux/.git/commit
ACPI: fan: Add support for Microsoft fan extensions
authorArmin Wolf <W_Armin@gmx.de>
Fri, 24 Oct 2025 18:38:24 +0000 (20:38 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Oct 2025 19:56:01 +0000 (20:56 +0100)
commita5c2fcd82e04a6eea8f6097b473d5ec34413eeeb
treeb8dce2b3eaa3d64a544fb5c18d99d69e18bd08d2
parent3d4ca76369782e9a55a6c07d4fdc492f9a731cdb
ACPI: fan: Add support for Microsoft fan extensions

Microsoft has designed a set of extensions for the ACPI fan device
allowing the OS to specify a set of fan speed trip points. The
platform firmware will then notify the ACPI fan device when one
of the trip points is triggered.

Unfortunatly, some device manufacturers (like HP) blindly assume
that the OS will use said extensions and thus only update the values
returned by the _FST control method when receiving such a
notification. As a result, the ACPI fan driver is currently unusable
on such machines, always reporting a constant value.

Fix this by adding support for the Microsoft extensions.

During probe and when resuming from suspend, the driver will attempt to
trigger an initial notification that will update the values returned by
_FST.

Said trip points will be updated each time a notification is received
from the platform firmware to ensure that the values returned by the
_FST control method are updated.

Link: https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/design-guide
Closes: https://github.com/lm-sensors/lm-sensors/issues/506
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
[ rjw: Edits of the new code comments ]
Link: https://patch.msgid.link/20251024183824.5656-4-W_Armin@gmx.de
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/fan.h
drivers/acpi/fan_core.c