Skip to content

Commit 6674c5a

Browse files
kuu-rtij-intel
authored andcommitted
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>
1 parent bfcda5c commit 6674c5a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Documentation/wmi/devices/alienware-wmi.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ WMI method Thermal_Information([in] uint32 arg2, [out] uint32 argr)
9696
argr = 1
9797

9898
if BYTE_0(arg2) == 0x02:
99-
argr = UNKNOWN_CONSTANT
99+
argr = SYSTEM_DESCRIPTION
100100

101101
if BYTE_0(arg2) == 0x03:
102102
if BYTE_1(arg2) == 0x00:
@@ -179,6 +179,16 @@ WMI method Thermal_Information([in] uint32 arg2, [out] uint32 argr)
179179
else:
180180
argr = 0xFFFFFFFF
181181

182+
Operation 0x02 returns a *system description* buffer with the following
183+
structure:
184+
185+
::
186+
187+
out[0] -> Number of fans
188+
out[1] -> Number of sensors
189+
out[2] -> 0x00
190+
out[3] -> Number of thermal modes
191+
182192
Operation 0x03 list all available fan IDs, sensor IDs and thermal profile
183193
codes in order, but different models may have different number of fans and
184194
thermal profiles. These are the known ranges:

0 commit comments

Comments
 (0)