Skip to content

[Laptop 16] AI 300, BIOS 04.02: s2idle resume takes ~34 s (SMI 0xE3 from UPWD on NVMe D3cold exit) #305

Open

Description

@Wondertan

System Model or SKU

Framework Laptop 16 (AMD Ryzen™ AI 300 Series)

BIOS Version

04.02 (11/06/2026), board FRANMHCP09, from LVFS testing

DIY Edition Information

Memory: 1x ADATA AD5S560032G (32 GB DDR5-5600 SO-DIMM), second slot empty
Storage: WD_BLACK SN850X 2000GB (fw 620361WD, boot drive, root port 00:02.5); Crucial P310 CT1000P310SSD2 (fw V8CR001, root port 00:02.1)

Port/Peripheral Information

Not peripheral-related. HDMI and USB-C/USB-A Expansion Cards, ANSI keyboard module, Radeon RX 7700S graphics module.

Standalone Operation

Full System, Standalone mode NOT enabled (normal usage)

Describe the Bug

Every resume from s2idle spends ~34 s in resume_noirq before devices come back, so the screen stays dark for ~35 s after opening the lid. Hibernate resume on the same machine takes 2–3 s.

The time goes into two SMIs. When an NVMe root port (00:02.5 / GPP7, 00:02.1 / GPP3) comes back from D3cold, P0NV._ON → PWEN sets WD3C. _PS0 then calls \_SB.PCI0.UPWD, which writes 0xE3 to port 0xB0. Each SMI takes ~16.7 s. ACPI method trace (amd-s2idle test --bios-debug):

74627.335  Begin [\_SB.PCI0.UPWD]
        ... 16.7 s with no AML activity ...
74644.051  AML resumes
PM: noirq resume of devices complete after 34229.736 msecs

During that window, idle CPUs can stall long enough to trip the soft-lockup watchdog once in a while (soft lockup - CPU#0 stuck for 15s! [swapper/0:0]). The system recovers.

Steps To Reproduce

  1. Suspend to idle, e.g. amd-s2idle test --count 3 --duration 60.
  2. Let it wake.
  3. dmesg | grep "noirq resume of devices complete" shows ~34 s, every time (16 of 16 resumes on this machine).

Expected Behavior

s2idle resume completes in about a second. The SMI 0xE3 handler shouldn't block for ~17 s per NVMe port.

Screenshots

No response

Operating System

Arch Linux (Omarchy 4.5)

Linux Kernel Version

Linux 7.3.4 (Arch 7.3.4.arch1-2, plus one unrelated cpuidle patch for hibernate)

Additional Context

The duration is 16.7–16.8 s every time, with two different SSDs (WD and Crucial), which looks like a timeout expiring inside the handler. The PCIe link is already up before UPWD runs (PWEN waits for DL_Active), and both drives respond immediately afterwards. Happy to provide the full amd-s2idle report.

Diagnosis prepared with an AI agent (Claude).

Activity

  1. added
    Laptop 16
    on Nov 18, 2026
  2. changed the title [-][Laptop 16] AI 300, BIOS 04.02: s2idle resume hangs, SMU stops answering ALIB mailbox (NVMe P0NV._ON), CPU stuck in C3 -> hard lockup[/-] [+][Laptop 16] AI 300, BIOS 04.02: s2idle resume takes ~34 s (SMI 0xE3 from UPWD on NVMe D3cold exit)[/+] on Nov 19, 2026
  3. Wondertan commented on Nov 19, 2026

    @Wondertan
    Author

    Data point for the fix. As a local experiment, I patched the kernel to drop the write of 0xE3 to port 0xB0 (the write in \_SB.PCI0.UPWD), so the SMI never fires and the rest of _PS0 / RPCF runs unchanged.

    Three amd-s2idle cycles, 60 s each:

    • noirq resume: 0.70 s every cycle (was ~34 s)
    • hardware sleep reached on every cycle
    • both SSDs fine after wake (1 GiB direct read from each); no NVMe, AER or lockup messages

    lspci -vvv of both NVMe root ports and drives after wake matches a fresh boot (same link speed and width, ASPM L1 enabled), with one exception: Phy16Sta reads EquComplete- EquPhase1- EquPhase2- EquPhase3- on all four functions. After a wake with the SMI it reads EquComplete+. So the 0xE3 handler seems to redo 16 GT/s equalization. Possibly related: these links train at 8 GT/s (16 GT/s capable) even on a fresh boot, so the ~16.7 s may be a timeout waiting for a Gen4 equalization that never happens.

    Not suggesting this as a fix, just narrowing down what the handler waits for.

    Prepared with an AI agent (Claude).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Laptop 16

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions