From: Sourav Nayak <nonameblank007@gmail.com>
To: ilpo.jarvinen@linux.intel.com
Cc: linux-kernel@vger.kernel.org, nonameblank007@gmail.com,
platform-driver-x86@vger.kernel.org
Subject: [PATCH v4 2/2] platform/x86: hp-wmi: fix fan freeze during load for Victus 15-fb0xxx (8A3D)
Date: Mon, 23 Nov 2026 20:59:17 +0530 [thread overview]
Message-ID: <20261123152917.14260-3-nonameblank007@gmail.com> (raw)
In-Reply-To: <20261123152917.14260-1-nonameblank007@gmail.com>
On Victus 15-fb0xxx (8A3D) model, Calling hp_wmi_fan_speed_max_reset()
causes fans to freeze during loads at 0RPM in auto mode,
So, fix this regression by a flag to struct hp_wmi_fan_profile_params
and enable it for 8A3D in victus_s_ec_fan_profile_params.
When fan_speed_auto_reapply() is called, It disables maximum fan speed
via hp_wmi_fan_speed_max_set(0), and passes to active platform profile
to reactive curves via platform_profile_victus_s_set_ec().
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
Signed-off-by: Sourav Nayak <nonameblank007@gmail.com>
---
drivers/platform/x86/hp/hp-wmi.c | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
index 0166b9cc4d9e..d9a51406aea8 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,19 @@ 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
prev parent reply other threads:[~2026-11-23 15:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-24 20:26 [PATCH] platform/x86: hp-wmi: fix platform profile values for Victus 15-fb0xxx (8A3D) Sourav Nayak
2026-10-25 3:45 ` [PATCH V2] " Sourav Nayak
2026-11-20 21:42 ` Ilpo Järvinen
2026-11-21 7:15 ` [PATCH v3 0/2] platform/x86: hp-wmi: fix platform profile values and fan freeze " Sourav Nayak
2026-11-21 7:15 ` [PATCH v3 1/2] platform/x86: hp-wmi: fix platform profile values for " Sourav Nayak
2026-11-21 7:15 ` [PATCH v3 2/2] platform/x86: hp-wmi: fix fan freeze during load " Sourav Nayak
2026-11-23 8:46 ` Ilpo Järvinen
2026-11-23 15:29 ` [PATCH v4 0/2] platform/x86: hp-wmi: fix platform profile values and fan freeze " Sourav Nayak
2026-11-23 15:29 ` [PATCH v4 1/2] platform/x86: hp-wmi: fix platform profile values for " Sourav Nayak
2026-11-23 15:29 ` Sourav Nayak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123152917.14260-3-nonameblank007@gmail.com \
--to=nonameblank007@gmail.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.