Linux Power Management development
 help / color / mirror / Atom feed
From: Mario Limonciello <mario.limonciello@amd.com>
To: Fourhundred Thecat <400thecat@ik.me>,
	platform-driver-x86@vger.kernel.org
Cc: linux-pm@vger.kernel.org, Shyam-sundar.S-k@amd.com,
	hansg@kernel.org, ilpo.jarvinen@linux.intel.com,
	rafael@kernel.org
Subject: Re: [BUG] s2idle: unrecoverable sleep on ThinkPad P16s Gen 4 AMD, (Strix Point) when more than 16 logical CPUs are online
Date: Wed, 23 Sep 2026 13:25:06 -0500	[thread overview]
Message-ID: <b29e9341-70cb-4201-99fc-ef307dd10fa5@amd.com> (raw)
In-Reply-To: <fc70f3b0-6ac5-7ac9-dca8-595b65785718@ik.me>



On 9/23/26 13:14, Fourhundred Thecat wrote:
> On 2026-09-23 20:11, Mario Limonciello wrote:
>>
>>
>> On 9/23/26 13:02, Fourhundred Thecat wrote:
>>
>> < snip noisy LLM interactions >
>>
>>> I will boot amd_iommu=off next and send the same counters plus a full 
>>> amd-s2idle report from a cycle that actually resumes, so you can see 
>>> whether that configuration reaches hardware sleep or is simply 
>>> failing to get there in a way that happens to stay recoverable.
>>
>> Please attach it when you have it.  Hopefully something stands out to 
>> me what could be wrong with the IOMMU here.
>>
>> Another useful data point will be whether this can reproduce on 7.3- 
>> rc4 with IOMMU enabled to rule out a backport issue.
> 
> 
> amd_iommu=off with all 24 CPUs online does reach hardware sleep. Full 
> amd-s2idle report attached; the relevant parts:
> 
> /sys/kernel/debug/amd_pmc/smu_fw_info after the cycle:
> 
>    Table Version: 3
>    Hint Count: 1
>    Last S0i3 Status: Success
>    Time (in us) to S0i3: 427925
>    Time (in us) in S0i3: 2066740
>    Time (in us) to resume from S0i3: 255153
> 
> /sys/kernel/debug/amd_pmc/s0ix_stats:
> 
>    S0ix Entry Time: 11245218037
>    S0ix Exit Time: 11337753680
>    Residency Time: 1927825
> 
>    /sys/power/suspend_stats/last_hw_sleep:  2066740
>    /sys/power/suspend_stats/total_hw_sleep: 2066740
>    /sys/power/pm_wakeup_irq: 9
> 
> amd-s2idle summary line:
> 
>    Start Time           Duration  Hardware Sleep  Battery Delta  Average 
> Power  Wake Interrupt
>    2026-09-23 20:07:28  0:00:07   28.57%          -0.02%         -10.29W 
>         Disabled interrupt (acpi)

OK looks good.

> 
> The only failure it reports for the cycle is "Userspace wasn't asleep at 
> least 0:00:30", because I woke the machine by hand after 7 seconds. 
> There is no RTC wakealarm on this machine, so every cycle has to be 
> woken manually. Not a real failure.

Uh, the hardware does support a wakealarm.  You might have disabled it 
in your kernel.

> 
> So this settles the question you raised about nr_cpus=16. You were right 
> that it was never a pass: it showed total_hw_sleep=0 and never reached 
> s0i3. amd_iommu=off is different - Last S0i3 Status is Success, 
> residency is real, and the wake arrives on IRQ 9 (the ACPI SCI).
> 
> That leaves the comparison as, all with 24 CPUs online and no other 
> changes:
> 
>    amd_iommu=off    enters s0i3, resumes normally, 2.07s hardware sleep, 
> wake on IRQ 9
>    IOMMU enabled    never wakes, forced power off required
> 
> and from the earlier round, still with the IOMMU enabled and verified 
> applied:
> 
>    intremap=off             no wake
>    iommu=pt                 no wake
>    amd_iommu_intr=legacy    no wake
> 
> Combined with the pm_test results from the previous mail - freezer, 
> devices and platform all pass with the IOMMU enabled - the software 
> suspend path is clean and the failure is confined to entering or exiting 
> hardware s0i3, but only when the IOMMU is enabled and more than 16 CPUs 
> are up.
> 
> attached is the full  amd-s2idle report

Can you please share your kernel log from this run as well?  It seems 
that your distro dmesg tool didn't pick it up in the tool run.

And can I please see dmesg from a run with amd_iommu=on too.

 >  🚦 DMI data was not setup

What is up with the missing data here?

Does your BIOS offer anything to control D3 behavior for the storage?

And this other point I mentioned: another useful data point will be 
whether this can reproduce on 7.3-rc4 with IOMMU enabled to rule out a 
backport issue.

  reply	other threads:[~2026-09-23 18:25 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22 13:43 [BUG] s2idle: unrecoverable sleep on ThinkPad P16s Gen 4 AMD, (Strix Point) when more than 16 logical CPUs are online Fourhundred Thecat
2026-09-22 14:47 ` Mario Limonciello
2026-09-23  5:58   ` Fourhundred Thecat
2026-09-23 12:41     ` Mario Limonciello
2026-09-23 13:51       ` Fourhundred Thecat
2026-09-23 14:36         ` Mario Limonciello
2026-09-23 16:12           ` Fourhundred Thecat
2026-09-23 16:15             ` Mario Limonciello
2026-09-23 16:20               ` Mario Limonciello
2026-09-23 16:37                 ` Fourhundred Thecat
2026-09-23 16:41                   ` Mario Limonciello
2026-09-23 16:54                     ` Fourhundred Thecat
2026-09-23 16:59                       ` Mario Limonciello
2026-09-23 18:02                         ` Fourhundred Thecat
2026-09-23 18:11                           ` Mario Limonciello
2026-09-23 18:14                             ` Fourhundred Thecat
2026-09-23 18:25                               ` Mario Limonciello [this message]
2026-09-23 18:39                                 ` Fourhundred Thecat
2026-09-23 18:57                                   ` Mario Limonciello
2026-09-23 19:13                                     ` Fourhundred Thecat
2026-09-23 19:20                                       ` Mario Limonciello
2026-09-23 20:26                                         ` Fourhundred Thecat
2026-09-23 20:48                                           ` Fourhundred Thecat
2026-09-23 21:10                                             ` Mario Limonciello
2026-09-24  5:36                                               ` Fourhundred Thecat
2026-09-25  7:05                                               ` Fourhundred Thecat
2026-09-25 13:30                                                 ` Mario Limonciello
2026-09-26  4:13                                                   ` Fourhundred Thecat
2026-09-26 18:29                                                     ` Mario Limonciello
2026-09-29  5:43                                                       ` Fourhundred Thecat
2026-09-29  5:57                                                         ` Fourhundred Thecat
2026-09-29 13:37                                                           ` Mario Limonciello

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=b29e9341-70cb-4201-99fc-ef307dd10fa5@amd.com \
    --to=mario.limonciello@amd.com \
    --cc=400thecat@ik.me \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rafael@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