summaryrefslogtreecommitdiff
path: root/Documentation/wmi
diff options
context:
space:
mode:
authorKurt Borja <kuurtb@gmail.com>2024-11-11 15:36:39 -0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2024-11-16 16:50:54 +0200
commit6674c5a0eeb55143cd10514d0083624e056e7d13 (patch)
tree404bf66d36476cd6d7e34e4dd0ee0639e58af4ea /Documentation/wmi
parentbfcda5cbcdb642a64d5b8a0229842dca7917ac6e (diff)
downloadlwn-6674c5a0eeb55143cd10514d0083624e056e7d13.tar.gz
lwn-6674c5a0eeb55143cd10514d0083624e056e7d13.zip
Documentation: alienware-wmi: Describe THERMAL_INFORMATION operation 0x02
This operation is used by alienware-wmi driver to avoid brute-forcing operation 0x03. Signed-off-by: Kurt Borja <kuurtb@gmail.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20241111183639.14726-1-kuurtb@gmail.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'Documentation/wmi')
-rw-r--r--Documentation/wmi/devices/alienware-wmi.rst12
1 files changed, 11 insertions, 1 deletions
diff --git a/Documentation/wmi/devices/alienware-wmi.rst b/Documentation/wmi/devices/alienware-wmi.rst
index 03f932494d58..ddc5e561960e 100644
--- a/Documentation/wmi/devices/alienware-wmi.rst
+++ b/Documentation/wmi/devices/alienware-wmi.rst
@@ -96,7 +96,7 @@ WMI method Thermal_Information([in] uint32 arg2, [out] uint32 argr)
argr = 1
if BYTE_0(arg2) == 0x02:
- argr = UNKNOWN_CONSTANT
+ argr = SYSTEM_DESCRIPTION
if BYTE_0(arg2) == 0x03:
if BYTE_1(arg2) == 0x00:
@@ -179,6 +179,16 @@ WMI method Thermal_Information([in] uint32 arg2, [out] uint32 argr)
else:
argr = 0xFFFFFFFF
+Operation 0x02 returns a *system description* buffer with the following
+structure:
+
+::
+
+ out[0] -> Number of fans
+ out[1] -> Number of sensors
+ out[2] -> 0x00
+ out[3] -> Number of thermal modes
+
Operation 0x03 list all available fan IDs, sensor IDs and thermal profile
codes in order, but different models may have different number of fans and
thermal profiles. These are the known ranges: