[PATCH v3 2/2] platform/x86: hp-wmi: fix fan freeze during load for Victus 15-fb0xxx (8A3D)
From: Sourav Nayak
Date: Sat Nov 21 2026 - 02:16:49 EST
hp_wmi_fan_speed_max_reset() caused fans to freeze during loads at 0RPM,
So, assign a custom victus_s_ec_fan_profile_params for 8A3D,
introduce a 'if' statement with hp_wmi_fan_speed_auto_reapply to resolve it by
calling hp_wmi_fan_speed_max_set(0), and passing platform active again to reactive curves.
Test data:
auto/max:
hp-isa-0000
Adapter: ISA adapter
fan1: 5400 RPM
fan2: 5200 RPM
mannual[255]:
hp-isa-0000
Adapter: ISA adapter
fan1: 5800 RPM
fan2: 5800 RPM
Tested-by: Sourav Nayak <nonameblank007@xxxxxxxxx>
Signed-off-by: Sourav Nayak <nonameblank007@xxxxxxxxx>
---
drivers/platform/x86/hp/hp-wmi.c | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
index 0166b9cc4d9e..583e1c0dda07 100644
--- a/drivers/platform/x86/hp/hp-wmi.c
+++ b/drivers/platform/x86/hp/hp-wmi.c
@@ -155,6 +155,7 @@ static const struct thermal_profile_params omen_v1_no_ec_thermal_params = {
struct hp_wmi_fan_profile_params {
int (*get_fan_speed)(int fan);
+ bool fan_speed_auto_reapply;
bool fan_table;
};
@@ -170,6 +171,12 @@ static const struct hp_wmi_fan_profile_params victus_s_fan_profile_params = {
.fan_table = true,
};
+static const struct hp_wmi_fan_profile_params victus_s_ec_fan_profile_params = {
+ .get_fan_speed = hp_wmi_get_fan_speed_victus_s,
+ .fan_speed_auto_reapply = true,
+ .fan_table = true,
+};
+
static const struct hp_wmi_board_params victus_s_board_params = {
.thermal_profile = &victus_s_thermal_params,
.fan_profile = &victus_s_fan_profile_params,
@@ -177,7 +184,7 @@ static const struct hp_wmi_board_params victus_s_board_params = {
static const struct hp_wmi_board_params victus_s_ec_board_params = {
.thermal_profile = &victus_s_ec_thermal_params,
- .fan_profile = &victus_s_fan_profile_params,
+ .fan_profile = &victus_s_ec_fan_profile_params,
};
static const struct hp_wmi_board_params omen_v1_board_params = {
@@ -2286,6 +2293,13 @@ static bool hp_wmi_fan_control_supported(void)
return params && params->get_fan_speed;
}
+static bool hp_wmi_fan_speed_auto_reapply(void)
+{
+ const struct hp_wmi_fan_profile_params *params = hp_wmi_fan_profile();
+
+ return params && params->fan_speed_auto_reapply;
+}
+
static bool hp_wmi_fan_table_supported(void)
{
const struct hp_wmi_fan_profile_params *params = hp_wmi_fan_profile();
@@ -2945,7 +2959,17 @@ static int hp_wmi_apply_fan_settings(struct hp_wmi_hwmon_priv *priv)
secs_to_jiffies(KEEP_ALIVE_DELAY_SECS));
return 0;
case PWM_MODE_AUTO:
- if (hp_wmi_fan_control_supported()) {
+ /*
+ * Victus models like 8A3D, calling hp_wmi_fan_speed_max_reset()
+ * freezes fans at 0 RPM under load. Instead, disable max fans and re-apply
+ * the active platform profile, so the EC firmware thermal curves regain control.
+ */
+ if (hp_wmi_fan_speed_auto_reapply()) {
+ ret = hp_wmi_fan_speed_max_set(0);
+ if (ret < 0)
+ return ret;
+ ret = platform_profile_victus_s_set_ec(active_platform_profile);
+ } else if (hp_wmi_fan_control_supported()) {
ret = hp_wmi_get_fan_count_userdefine_trigger();
if (ret < 0)
return ret;
--
2.55.0