The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Mario Limonciello <superm1@kernel.org>
Cc: Daniel Gibson <daniel@gibson.sh>,
	 Shyam Sundar S K <Shyam-sundar.S-k@amd.com>,
	 Hans de Goede <hansg@kernel.org>,
	platform-driver-x86@vger.kernel.org,
	 LKML <linux-kernel@vger.kernel.org>,
	 Sindre Henriksen <sindrehenriksen93@gmail.com>,
	 Hans de Goede <johannes.goede@oss.qualcomm.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH v5 2/4] platform/x86/amd/pmc: Delay suspend for some Lenovo Laptops
Date: Wed, 10 Jun 2026 11:21:41 +0300 (EEST)	[thread overview]
Message-ID: <ded3840d-fa7d-d6dd-a265-daca1e9df7a0@linux.intel.com> (raw)
In-Reply-To: <91af1da1-e2d0-40c1-87b0-452b48f4a2b6@kernel.org>

[-- Attachment #1: Type: text/plain, Size: 5025 bytes --]

On Tue, 9 Jun 2026, Mario Limonciello wrote:
> On 6/9/26 10:36, Daniel Gibson wrote:
> > On 09.06.26 17:06, Daniel Gibson wrote:
> > > On 09.06.26 16:40, Mario Limonciello wrote:
> > > > On 6/9/26 07:07, Daniel Gibson wrote:
> > > > > On 09.06.26 13:46, Ilpo Järvinen wrote:
> > > > > > On Tue, 9 Jun 2026, Daniel Gibson wrote:
> > > > > > >        },
> > > > > > > +    /* https://bugzilla.kernel.org/show_bug.cgi?id=221383 */
> > > > > > > +    {
> > > > > > > +        .ident = "Zen3-based IdeaPad Slim and similar",
> > > > > > > +        .driver_data = &quirk_s2idle_need_suspend_delay,
> > > > > > 
> > > > > > Hi,
> > > > > > 
> > > > > > One more question.
> > > > > > 
> > > > > > Sashiko noted, that amd_pmc_quirks_init() can overwrite
> > > > > > disable_8042_wakeup from the AMD_CPU_ID_CZN check when .driver_data
> > > > > > provides quirks. Is it okay in this case to not have .spurious_8042?
> > > > > > 
> > > > > 
> > > > > Good question.
> > > > > So far I haven't had complaints that sounded like they'd be related to
> > > > > this quirk not being active.
> > > > > 
> > > > > (The only report about things not working as expected on detected
> > > > > devices was something about "ACPI event storms" after resume:
> > > > > https://github.com/DanielGibson/amd_pmc-ideapad/issues/3 - but no one
> > > > > else with similar devices could reproduce that, so no idea what's
> > > > > going
> > > > > on there, and it doesn't sound like that IRQ1 issue)
> > > > > 
> > > > > I can test if explicitly enabling .spurious_8042 in
> > > > > quirk_s2idle_need_suspend_delay breaks anything on my device, if you
> > > > > think that enabling it by default makes more sense?
> > > > 
> > > > Famous last words - but we haven't had a need for spurious 8042 on
> > > > recent hardware so I think this is unlikely to be a big problem.
> > > 
> > > FWIW enabling .spurious_8042 didn't break anything on my machine, but
> > > didn't improve anything either - only visible difference is that when
> > > resuming by pressing a key without that quirk both IRQ1 and IRQ7 are
> > > reported as having triggered the resume, and with the quirk only IRQ7 is
> > > reported. But it didn't seem like IRQ1 triggers a resume when it
> > > shouldn't.
> > > 
> > > OTOH I have a the latest BIOS (from this year), so it's likely fixed
> > > there - maybe people with older BIOS versions still need the
> > > .spurious_8042 quirk?
> > > 
> > > As these devices are relatively recent and still sold I hope that
> > > everyone affected can get a new BIOS (which they should do either way).
> > 
> > Anyway, overall I'd say that the patches can be merged as they are - the
> > affected devices are known to have serious (-ly annoying) suspend
> > issues, so it's unlikely that a currently matched devices has working
> > suspend that breaks with them, so things at least shouldn't get any
> > worse for their users?
> > 
> > The patches have gotten some testing already on different devices (from
> > my out-of-tree patched amd_pmc module on Github) and so far it looks
> > like the spurious_8042 quirk isn't needed.
> > If reports of needing both quirks turn up after all, that can still be
> > easily added in a few lines of code (maybe even just one).
> > 
> > Cheers,
> > Daniel
> 
> Even with all that testing; it's only on hardware with problems.
> We don't want to have issues exposed by these patches for people that didn't
> need the patches.
> 
> So my 2c:
> * It's "too risky" to pick up for 7.1 final

Definitely it won't be happening.

Also, Linus effectively only allows regression fixes during -rc phase 
anymore (he stated his policy change around -rc5 timeframe). I therefore 
moved even some of queued new HW support patches from the pdx86 fixes 
branch into for-next.

> * It's a "bit late" in the cycle for 7.2-rc1 (usually new content stops being
> added around rc6).

I usually only stop accepting large series around that time, with some
exceptions. (We've one such exception ATM because I was a week away and 
couldn't process patches, it would feel unfair to penalize other devs 
because of that so for the series which have been around for awhile, I 
still try to process them during this week, this one included).

> * This isn't "risky enough" to wait until 7.3 (basically after 7.2-rc1 merge
> window is done)
> 
> But this has been on the list for a while now, so I would say this makes sense
> to put in for 7.2-rc1 and we should all make sure we test well once the RCs
> are posted.

My plan is to take this into for-next during this cycle.

We can always take a timeout and revert it during -rc phase if problems 
appear because of it (and even after 7.2 release, if situation requires 
it).

I'm not convinced testing pre rc1 really covers much when it comes to 
platform drivers, those few people testing linux-next, as valuable as they 
are, cannot really cover that much HW diversity.

-- 
 i.

  reply	other threads:[~2026-06-10  8:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-09 10:57 [PATCH v5 0/4] amd_pmc: Delay s2idle suspend for some devices Daniel Gibson
2026-06-09 10:57 ` [PATCH v5 1/4] platform/x86/amd/pmc: Check for intermediate wakeup in function Daniel Gibson
2026-06-09 10:57 ` [PATCH v5 2/4] platform/x86/amd/pmc: Delay suspend for some Lenovo Laptops Daniel Gibson
2026-06-09 11:46   ` Ilpo Järvinen
2026-06-09 12:07     ` Daniel Gibson
2026-06-09 14:40       ` Mario Limonciello
2026-06-09 15:06         ` Daniel Gibson
2026-06-09 15:36           ` Daniel Gibson
2026-06-09 15:47             ` Mario Limonciello
2026-06-10  8:21               ` Ilpo Järvinen [this message]
2026-06-10 14:51                 ` Mario Limonciello
2026-06-09 10:57 ` [PATCH v5 3/4] platform/x86/amd/pmc: Add delay_suspend module parameter Daniel Gibson
2026-06-09 10:57 ` [PATCH v5 4/4] platform/x86/amd/pmc: Don't log during intermediate wakeups Daniel Gibson
2026-06-11 14:02   ` Ilpo Järvinen
2026-06-11 14:20     ` Daniel Gibson

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=ded3840d-fa7d-d6dd-a265-daca1e9df7a0@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=daniel@gibson.sh \
    --cc=hansg@kernel.org \
    --cc=johannes.goede@oss.qualcomm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=sindrehenriksen93@gmail.com \
    --cc=stable@vger.kernel.org \
    --cc=superm1@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