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 v3 2/2] platform/x86: hp-wmi: fix fan freeze during load for Victus 15-fb0xxx (8A3D)
Date: Sat, 21 Nov 2026 12:45:34 +0530 [thread overview]
Message-ID: <20261121071534.28473-3-nonameblank007@gmail.com> (raw)
In-Reply-To: <20261121071534.28473-1-nonameblank007@gmail.com>
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@gmail.com>
Signed-off-by: Sourav Nayak <nonameblank007@gmail.com>
---
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
prev parent reply other threads:[~2026-11-21 7:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-24 20:26 [PATCH] platform/x86: hp-wmi: fix platform profile values " 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 ` 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=20261121071534.28473-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®