mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Justin Vargas <justinyvar@gmail.com>, W_Armin@gmx.de
Cc: jlee@suse.com, Hans de Goede <hansg@kernel.org>,
	 platform-driver-x86@vger.kernel.org,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3] platform/x86: acer-wmi: Add support for Acer Nitro ANV15-51
Date: Fri, 18 Sep 2026 14:19:38 +0300 (EEST)	[thread overview]
Message-ID: <a00b2a01-8629-d242-584d-08a5e983e970@linux.intel.com> (raw)
In-Reply-To: <20260819041740.9645-1-justinyvar@gmail.com>

On Wed, 19 Aug 2026, Justin Vargas wrote:

> The Acer Nitro ANV15-51 uses the Predator V4 WMI interface for thermal
> profile handling, hardware monitoring and fan control, but has no quirk
> entry, so none of these features are available.
> 
> Add a quirk entry for this model.
> 
> Note that this machine does not support the turbo thermal profile: its
> supported profiles bitmap (misc setting 0x0A) reads 0x53, and writing

Armin removed support for trusting the "supported bitmap" in b0908e03fdd4 
("platform/x86: acer-wmi: Stop using ACPI bitmap for platform profile 
choices") as it was unclear if we'd interpreted their meaning correctly.

> PLATFORM_PROFILE_PERFORMANCE is rejected by the firmware. The four
> remaining profiles work as expected.
> 
> Assisted-by: Claude:claude-opus-5
> Signed-off-by: Justin Vargas <justinyvar@gmail.com>
> Tested-by: Justin Vargas <justinyvar@gmail.com>
> ---
> v3: Use a model-specific quirk_entry with cpu_fans, gpu_fans and pwm
>     set, as suggested by Armin Wolf, instead of reusing
>     quirk_acer_predator_v4. Fan control is now tested (see below).
> v2: Add Assisted-by trailer per
>     Documentation/process/coding-assistants.rst.
> 
> Tested on an Acer Nitro ANV15-51, BIOS V1.60 (04/08/2026), by building
> this patch as an out-of-tree acer-wmi module against kernel
> 7.1.8-1-cachyos and loading it on the machine.
> 
> Thermal profiles:
> 
>   $ cat /sys/firmware/acpi/platform_profile_choices
>   low-power quiet balanced balanced-performance performance
> 
>   low-power, quiet, balanced and balanced-performance all apply
>   successfully and audibly change fan behaviour. Writing performance
>   fails with -EIO, consistent with the supported profiles bitmap
>   (misc setting 0x0A) reading 0x53, i.e. bit 5 (turbo) clear.
> 
> hwmon and fan control, via the acer hwmon device:
> 
>   pwm_enable  pwm    fan1 (CPU)  fan2 (GPU)
>   2 (auto)    229    2311 RPM    2057 RPM
>   1 (manual)  255    8167 RPM    2077 RPM
>   1 (manual)  128    4482 RPM    2065 RPM
> 
>   Setting pwm2 to 255 raised fan2 to 7284 RPM while fan1 was unaffected,
>   so the two fans are independently controllable. Restoring
>   pwm1_enable/pwm2_enable to 2 returned both fans to automatic control
>   (2267 / 2000 RPM at idle).
> 
>   temp1_input, temp2_input and temp3_input are also exposed.
> 
> The WMI mechanism was cross-checked on Windows, where NitroSense switches
> profiles via SetGamingMiscSetting with index 0x0B and the same profile
> values used by this driver.
> 
> The analysis and patch were produced with AI assistance (see the
> Assisted-by trailer); all testing was performed by me on the physical
> machine, and I take responsibility for the patch as signed off above.
> 
>  drivers/platform/x86/acer-wmi.c | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
> index e0eaaefb13d..86c212df49f 100644
> --- a/drivers/platform/x86/acer-wmi.c
> +++ b/drivers/platform/x86/acer-wmi.c
> @@ -466,6 +466,13 @@ static struct quirk_entry quirk_acer_predator_ph315_53 = {
>  	.gpu_fans = 1,
>  };
>  
> +static struct quirk_entry quirk_acer_nitro_anv15_51 = {
> +	.cpu_fans = 1,
> +	.gpu_fans = 1,
> +	.predator_v4 = 1,

Can you respin this on top of the commits in the review-ilpo-next branch 
which contains the commit 2502b3d92132 ("platform/x86: acer-wmi: split 
hwmon from platform profile quirk"). Note that the commit id may change 
if I need to do a force push due to some issue.

-- 
 i.


      reply	other threads:[~2026-09-18 11:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-29 22:29 [PATCH] " Justin Vargas
2026-07-29 23:51 ` [PATCH v2] " Justin Vargas
2026-07-30  9:17   ` Armin Wolf
2026-07-30 14:05     ` Justin Vargas
2026-07-31  7:15       ` Justin Vargas
2026-08-18  0:51         ` Justin Vargas
2026-08-19  4:17 ` [PATCH v3] " Justin Vargas
2026-09-18 11:19   ` 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=a00b2a01-8629-d242-584d-08a5e983e970@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=W_Armin@gmx.de \
    --cc=hansg@kernel.org \
    --cc=jlee@suse.com \
    --cc=justinyvar@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

all inboxes | Powered by JetHome®