Re: [PATCH v3 2/2] platform/x86: hp-wmi: fix fan freeze during load for Victus 15-fb0xxx (8A3D)

From: Ilpo Järvinen

Date: Mon Nov 23 2026 - 03:47:06 EST


On Sat, 21 Nov 2026, Sourav Nayak wrote:

Thanks for the update.

This looks better but the changelog needs work.

> hp_wmi_fan_speed_max_reset() caused fans to freeze during loads at 0RPM,

This reads badly, as if something is missing. Do not assume shortlog
preceeds the changelog body, the body should be totally independent from
shortlog and fully readable on its own.

It think you want to tell right from the start that is happens on a
particular HW.

> 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

No need to tell you 'introduce a 'if' statement'. Please write with the
changelog with assumption that the readers are experienced kernel
developers, but not necessarily familiar with this driver or HW).

You should instead be telling that you add "fan_speed_auto_reapply", what
it does on a high-level (the code details about if statements are too
low-level and can be easily read from the diff below), and mention "use
fan_speed_auto_reapply for board 8A3D.

Any function name quoted should have () added to it.

> calling hp_wmi_fan_speed_max_set(0), and passing platform active again to reactive curves.

Please reflow the paragraph to up to 72 chars.

> 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>

The assumption is that you've tested the patches you create :-) so these
tested-by tags can be dropped.

> 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.

Please limit comments to 80 chars per line.

> + */
> + 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;
>

--
i.