ACPI: fan: Add additional attributes for fine grain control
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 11 Feb 2022 16:09:31 +0000 (08:09 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Feb 2022 19:49:30 +0000 (20:49 +0100)
commitf1197343f07749035d74c08cf8b546c4f95614ab
tree684cbee49af5ef5eb698083eca2ec94efe7aeae2
parentbea2d9868ef553e376480de3cd84a7a06fb03e41
ACPI: fan: Add additional attributes for fine grain control

Add additional attributes, which helps in implementing algorithm in
the user space to optimize fan control. These attributes are presented
in the same directory as the existing performance state attributes.

Additional attributes:

1. Support of fine grain control
Publish support of presence of fine grain control so that fan speed
can be tuned correctly. This attribute is called "fine_grain_control".

2. fan speed
Publish the actual fan rpm in sysfs. Knowing fan rpm is helpful to
reduce noise level and use passive control instead. Also fan performance
may not be same over time, so the same control value may not be enough
to run the fan at a speed. So a feedback value of speed is helpful. This
sysfs attribute is called "fan_speed_rpm".

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/fan.h
drivers/acpi/fan_attr.c
drivers/acpi/fan_core.c