mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mario Limonciello <mario.limonciello@amd.com>
To: Mario Limonciello <superm1@kernel.org>,
	Olzhas <marat.olzhasss@gmail.com>,
	linusw@kernel.org
Cc: linux-gpio@vger.kernel.org, regressions@lists.linux.dev,
	stable@vger.kernel.org, linux-kernel@vger.kernel.org,
	sashal@kernel.org
Subject: Re: [REGRESSION] pinctrl-amd: Don't clear S4 wake bits at probe causes power off to reboot AMD Ryzen laptop
Date: Mon, 21 Sep 2026 08:45:09 -0500	[thread overview]
Message-ID: <4d5e3cff-03a5-45f0-8fa8-a6c99e82cdf6@amd.com> (raw)
In-Reply-To: <de1b64ff-ee8c-4b76-aae8-ca29628b2db1@kernel.org>



On 9/20/26 12:05, Mario Limonciello wrote:
> 
> 
> On 9/20/26 12:00 PM, Olzhas wrote:
>> Hi Mario,
>>
>> I am experiencing a regression on my laptop where attempting to power
>> off the machine results in an immediate reboot instead of a shutdown.
>>
>> The last known good kernel is v7.1.7, while v7.1.8 is the first known
>> bad release.
>>
>> I bisected the regression across 9 kernel builds and identified the
>> following commit as the first bad commit:
>>
>> a7c855969b1a ("pinctrl-amd: Don't clear S4 wake bits at probe")
>>
>> With this commit present, running:
>>
>>      systemctl poweroff
>>
>> causes the laptop to power off and then immediately power back on.
>>
>> I reverted this specific commit on top of v7.3.0-rc3 and the issue is
>> completely resolved. The laptop now powers off correctly and remains
>> off.
>>
>> Hardware:
>> - Laptop: Chuwi CoreBook Plus 16
>> - DMI board vendor: Default string
>> - DMI board name: Default string
>> - DMI BIOS version: AB8139_S_2C_V00.01_007
>> - DMI BIOS date: 2025-08-05
>> - CPU reported by the system: AMD Ryzen 5 7430U with Radeon Graphics
>> - The CPU/hardware appears to correspond to Ryzen 5 5500U / Lucienne
>>    silicon, although I am not certain whether this is relevant.
>>
>> Software:
>> - Distribution: Arch Linux
>> - Last known good: v7.1.7
>> - First known bad: v7.1.8
>> - Current test kernel: v7.3.0-rc3 with a7c855969b1a reverted
>>
>> I have verified the fix by booting the reverted kernel and testing
>> poweroff successfully.
>>
>> Since the DMI board strings are generic ("Default string"), I would be
>> happy to provide an ACPI dump, dmesg output, kernel configuration,
>> bisect log, or perform additional testing if needed.
>>
>> I suspect this may be related to an S4 wake source left enabled by the
>> firmware, but I have not identified the exact wake source yet.
>>
>> Best regards,
>> Olzhas Marat
>>
>> #regzbot introduced: a7c855969b1a
>>
> 
> This is most likely a BIOS bug, but we need to dig into the details to 
> understand more and decide what to do.  It could also be a driver bug, 
> most likely in a WLAN driver.
> 
> Can you please open a kernel bugzilla with the following information:
> 
> 1) /sys/kernel/debug/gpio without the commit
> 2) /sys/kernel/debug/gpio with the commit
> 3) acpidump (just once)
> 4) amd-s2idle report (this will capture and associate some information 
> that will make this easier to triage)
> 
> Please CC me into the bug report.
> 
> Thanks

FYI for others, a bug report is opened here:

https://bugzilla.kernel.org/show_bug.cgi?id=222041

We are working on narrowing down which GPIO is causing problems for this 
machine and then will decide what to do.

      reply	other threads:[~2026-09-21 13:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-20 17:00 Olzhas
2026-09-20 17:05 ` Mario Limonciello
2026-09-21 13:45   ` Mario Limonciello [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=4d5e3cff-03a5-45f0-8fa8-a6c99e82cdf6@amd.com \
    --to=mario.limonciello@amd.com \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marat.olzhasss@gmail.com \
    --cc=regressions@lists.linux.dev \
    --cc=sashal@kernel.org \
    --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

all inboxes | Powered by JetHome®