mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Sourav Nayak <nonameblank007@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>, platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH v3 2/2] platform/x86: hp-wmi: fix fan freeze during load for Victus 15-fb0xxx (8A3D)
Date: Mon, 23 Nov 2026 10:46:57 +0200 (EET)	[thread overview]
Message-ID: <47c9dd58-774b-20ea-b78e-0d3453be0a42@linux.intel.com> (raw)
In-Reply-To: <20261121071534.28473-3-nonameblank007@gmail.com>

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@gmail.com>

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

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.


      reply	other threads:[~2026-11-23  8:47 UTC|newest]

Thread overview: 7+ 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       ` [PATCH v3 2/2] platform/x86: hp-wmi: fix fan freeze during load " Sourav Nayak
2026-11-23  8:46         ` Ilpo Järvinen [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=47c9dd58-774b-20ea-b78e-0d3453be0a42@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nonameblank007@gmail.com \
    --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®