public inbox for platform-driver-x86@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Bani Brata <banibrata2007@gmail.com>,
	 Krishna Chomal <krishna.chomal108@gmail.com>
Cc: platform-driver-x86@vger.kernel.org,
	Hans de Goede <hansg@kernel.org>,
	 LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] platform/x86: hp-wmi: Hide bogus fan RPM on HP ENVY x360 13-bd0xxx
Date: Tue, 31 Mar 2026 16:25:22 +0300 (EEST)	[thread overview]
Message-ID: <96f1e5b3-e1f5-0fd7-7bcc-3160deb3bc7c@linux.intel.com> (raw)
In-Reply-To: <20260329054052.32023-1-banibrata2007@gmail.com>

On Sun, 29 Mar 2026, Bani Brata wrote:

> On the HP ENVY x360 Convertible 13-bd0xxx (board 8824), the WMI
> interfaces for reading fan speed (HPWMI_FAN_SPEED_GET_QUERY) return
> zero-filled buffers regardless of the actual fan speed.
> 
> This results in the hp_wmi driver exposing `fan1_input` and `fan2_input`
> nodes through hwmon that permanently report "0 RPM", which is misleading
> and interferes with userspace sensor monitoring tools.
> 
> Add a DMI quirk to disable exposing the hwmon fan nodes on this specific
> board.
> 
> Signed-off-by: Bani Brata <banibrata2007@gmail.com>
> ---
>  drivers/platform/x86/hp/hp-wmi.c | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
> index XXXXXXX..XXXXXXX 100644
> --- a/drivers/platform/x86/hp/hp-wmi.c
> +++ b/drivers/platform/x86/hp/hp-wmi.c
> @@ -192,6 +192,18 @@ static const struct dmi_system_id hp_wmi_rfkill_dmi_table[] __initconst = {
>  };
>  
>  static bool is_victus_s_board;
> +static bool is_envy_x360_8824_board;
> +
> +static const struct dmi_system_id hp_envy_x360_8824_boards[] __initconst = {
> +	{
> +		.matches = {
> +			DMI_MATCH(DMI_SYS_VENDOR, "HP"),
> +			DMI_MATCH(DMI_PRODUCT_NAME, "HP ENVY x360 Convertible 13-bd0xxx"),
> +			DMI_MATCH(DMI_BOARD_NAME, "8824"),
> +		},
> +	},
> +	{},
> +};
>  
>  enum hp_wmi_radio {
>  	HPWMI_WIFI	= 0x0,
> @@ -2166,6 +2178,8 @@ static umode_t hp_wmi_hwmon_is_visible(const void *data,
>  	case hwmon_pwm:
>  		return 0644;
>  	case hwmon_fan:
> +		if (is_envy_x360_8824_board)
> +			return 0;
>  		if (is_victus_s_thermal_profile()) {
>  			if (hp_wmi_get_fan_speed_victus_s(channel) >= 0)
>  				return 0444;
> @@ -2188,6 +2202,8 @@ static int hp_wmi_hwmon_read(struct device *dev, enum hwmon_sensor_types type,
>  
>  	switch (type) {
>  	case hwmon_fan:
> +		if (is_envy_x360_8824_board)
> +			return -EOPNOTSUPP;
>  		if (is_victus_s_thermal_profile())
>  			ret = hp_wmi_get_fan_speed_victus_s(channel);
>  		else
> @@ -2281,6 +2297,8 @@ static int __init hp_wmi_bios_setup(struct platform_device *device)
>  {
>  	const struct dmi_system_id *id;
>  
> +	is_envy_x360_8824_board = dmi_first_match(hp_envy_x360_8824_boards);
> +
>  	/*
>  	 * Currently only victus_s devices use the
>  	 * active_thermal_profile_params

So does this mean we can't get fan speeds at all with this device?

(This approach is written very specific to a model and should be 
generalized if there really isn't any way to get the speeds.)

I've Krishna Chomal who might have better ideas than me.

-- 
 i.


  parent reply	other threads:[~2026-03-31 13:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-29  5:40 [PATCH] platform/x86: hp-wmi: Hide bogus fan RPM on HP ENVY x360 13-bd0xxx Bani Brata
2026-03-29  5:40 ` [PATCH 2/2] platform/x86: hp-wmi: Add ACPI PWM fan control for HP ENVY 13-bd0xxx Bani Brata
2026-03-31 13:20   ` Ilpo Järvinen
2026-03-31 13:25 ` Ilpo Järvinen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-03-29  5:20 [PATCH] platform/x86: hp-wmi: Hide bogus fan RPM on HP ENVY x360 13-bd0xxx Bani Brata

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=96f1e5b3-e1f5-0fd7-7bcc-3160deb3bc7c@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=banibrata2007@gmail.com \
    --cc=hansg@kernel.org \
    --cc=krishna.chomal108@gmail.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