]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
platform/x86: hp-wmi: Add EC offsets to read Victus S thermal profile
authorKrishna Chomal <krishna.chomal108@gmail.com>
Wed, 21 Jan 2026 18:28:58 +0000 (23:58 +0530)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 28 Jan 2026 13:05:59 +0000 (15:05 +0200)
commiteeeb4c9874bb7ad11d322156443b1d3ebfaaa1cf
treee6b82b936369dc9ceb43e6a2d0dfbb1139aafa04
parent059417ea916f6d9cf80ebb3a09645856373d5ed5
platform/x86: hp-wmi: Add EC offsets to read Victus S thermal profile

The current implementation for Victus S thermal profiles only supports
setting the profile. The driver was missing the logic to read the
hardware state, meaning it would default to "Balanced" on driver load,
overriding the currently active profile. Furthermore, the driver could
not detect if the firmware reset the profile on a power source change.

Statically store the known EC offsets for reading thermal profile in the
new .ec_tp_offset field of struct thermal_profile_params. Implement
platform_profile_victus_s_get_ec() to use this offset to read the real
hardware state. Additionally, update the power source event notifier to
use the actual hardware state when re-triggering CPU power limits
actualization.

Testing on HP Omen 16-wf1xxx (board ID 8C78) confirmed that the thermal
profile is now persistent across driver loads and power source change
events.

Signed-off-by: Krishna Chomal <krishna.chomal108@gmail.com>
Link: https://patch.msgid.link/20260121182858.66363-1-krishna.chomal108@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/hp/hp-wmi.c