From: Mario Limonciello <mario.limonciello@amd.com>
To: Runhua He <hua@aosc.io>, platform-driver-x86@vger.kernel.org
Cc: "Rong Zhang" <i@rong.moe>, "Mingcong Bai" <jeffbai@aosc.io>,
"Kexy Biscuit" <kexybiscuit@aosc.io>,
"Xinhui Yang" <cyan@cyano.uk>, "Yemu Lu" <prcups@krgm.moe>,
"Shyam Sundar S K" <Shyam-sundar.S-k@amd.com>,
"Hans de Goede" <hdegoede@redhat.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] platform/x86/amd/pmc: Declare quirk_spurious_8042 for MECHREVO Wujie 14XA (GX4HRXL)
Date: Tue, 6 May 2025 08:29:22 -0500 [thread overview]
Message-ID: <f7200e0f-d6d5-4fb8-9701-3f97d1ab64fa@amd.com> (raw)
In-Reply-To: <20250506112514.446784-1-hua@aosc.io>
On 5/6/2025 6:25 AM, Runhua He wrote:
> MECHREVO Wujie 14XA (GX4HRXL) wakes up immediately after s2idle entry.
> This happens regardless of whether the laptop is plugged into AC power,
> or whether any peripheral is plugged into the laptop.
>
> Similar to commit a55bdad5dfd1 ("platform/x86/amd/pmc: Disable keyboard
> wakeup on AMD Framework 13"), the MECHREVO Wujie 14XA wakes up almost
> instantly after s2idle suspend entry (IRQ1 is the keyboard):
>
> 2025-04-18 17:23:57,588 DEBUG: PM: Triggering wakeup from IRQ 9
> 2025-04-18 17:23:57,588 DEBUG: PM: Triggering wakeup from IRQ 1
>
> Add this model to the spurious_8042 quirk to workaround this.
>
> This patch does not affect the wake-up function of the built-in keyboard.
> Because the firmware of this machine adds an insurance for keyboard
> wake-up events, as it always triggers an additional IRQ 9 to wake up the
> system.
>
> I have only matched the motherboard model, as the same chassis and
> motherboard (GX4HRXL) combination may be used under different product
> names.
>
> Suggested-by: Mingcong Bai <jeffbai@aosc.io>
> Suggested-by: Xinhui Yang <cyan@cyano.uk>
> Suggested-by: Rong Zhang <i@rong.moe>
> Fixes: a55bdad5dfd1 ("platform/x86/amd/pmc: Disable keyboard wakeup on AMD Framework 13")
> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4166
> Cc: Mario Limonciello <mario.limonciello@amd.com>
> Link: https://zhuanldan.zhihu.com/p/730538041
> Tested-by: Yemu Lu <prcups@krgm.moe>
> Signed-off-by: Runhua He <hua@aosc.io>
> ---
> drivers/platform/x86/amd/pmc/pmc-quirks.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/platform/x86/amd/pmc/pmc-quirks.c b/drivers/platform/x86/amd/pmc/pmc-quirks.c
> index b4f49720c87f..e01012d5ecd0 100644
> --- a/drivers/platform/x86/amd/pmc/pmc-quirks.c
> +++ b/drivers/platform/x86/amd/pmc/pmc-quirks.c
> @@ -217,6 +217,13 @@ static const struct dmi_system_id fwbug_list[] = {
> DMI_MATCH(DMI_BIOS_VERSION, "03.05"),
> }
> },
> + {
> + .ident = "MECHREVO Wujie 14 Series (GX4HRXL)",
> + .driver_data = &quirk_spurious_8042,
> + .matches = {
> + DMI_MATCH(DMI_BOARD_NAME, "GX4HRXL"),
This feels like it might be too wide. Could we match a system vendor as
well?
next prev parent reply other threads:[~2025-05-06 13:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-06 11:25 [PATCH] platform/x86/amd/pmc: Declare quirk_spurious_8042 for MECHREVO Wujie 14XA (GX4HRXL) Runhua He
2025-05-06 13:29 ` Mario Limonciello [this message]
2025-05-06 14:02 ` Mingcong Bai
2025-05-06 18:54 ` Rong Zhang
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=f7200e0f-d6d5-4fb8-9701-3f97d1ab64fa@amd.com \
--to=mario.limonciello@amd.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=cyan@cyano.uk \
--cc=hdegoede@redhat.com \
--cc=hua@aosc.io \
--cc=i@rong.moe \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=jeffbai@aosc.io \
--cc=kexybiscuit@aosc.io \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=prcups@krgm.moe \
/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