Skip to content

[Laptop 13] AI 300 / BIOS 04.02: xHCI c3:00.0 (webcam, Bluetooth, expansion card) dies on s2idle resume; next suspend hangs and drains the battery #314

Backlog

Description

@arturzielazny

System Model or SKU

Framework Laptop 13 (AMD Ryzen™ AI 300 Series), Ryzen AI 9 HX 370

BIOS Version

04.02 (06/09/2026). fwupd/LVFS reports it as the latest stable. One of the six occurrences below was on 03.05.

DIY Edition Information

Memory: 64 GB total (8 GB VRAM carve-out)
Storage: WD_BLACK SN850X 2 TB

Port/Peripheral Information

The affected controller is xhci_hcd 0000:c3:00.0 (AMD 1022:151f), USB bus 3. On this machine it serves:

  • usb3-port1: HDMI Expansion Card (32ac:0002)
  • usb3-port3: Laptop Webcam Module (2nd Gen) (32ac:001c)
  • usb3-port5: MediaTek MT7925 Bluetooth (0e8d:0717)

Standalone Operation

Full System, Standalone mode NOT enabled (normal usage)

Describe the Bug

Sometimes, when the laptop resumes from s2idle, xHCI controller c3:00.0 fails to restore its state and the kernel marks it dead. The same lines appear every time, including an IOMMU page fault at address 0 just before the timeout:

xhci_hcd 0000:c3:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x001a address=0x0 flags=0x0000]
xhci_hcd 0000:c3:00.0: WARN: xHC restore state timeout
xhci_hcd 0000:c3:00.0: PCI post-resume error -110!
xhci_hcd 0000:c3:00.0: HC died; cleaning up
xhci_hcd 0000:c3:00.0: PM: dpm_run_callback(): pci_pm_resume returns -110
xhci_hcd 0000:c3:00.0: PM: failed to resume async: error -110
usb 3-1: USB disconnect, device number 2

The webcam, Bluetooth and the HDMI Expansion Card then stay gone until a reboot.

Frequency: 6 of 544 resume cycles since February 2026, according to the journal. Most of the failing suspends were long:

Failed resume Suspend length BIOS Kernel
2026-04-21 12 h 28 min 03.05 6.19.10-arch1-1
2026-09-29 0 h 44 min 04.02 7.2.5-3-omarchy
2026-10-12 15 h 36 min 04.02 7.2.5-3-omarchy
2026-10-14 8 h 41 min 04.02 7.2.5-3-omarchy
2026-10-18 10 h 49 min 04.02 7.2.5-3-omarchy
2026-11-25 4 h 35 min 04.02 7.2.15-1-omarchy

What happens next on Linux is worse than losing the devices. The next suspend hangs inside the kernel, so the laptop stays fully on with the lid closed until the battery runs out. This happened after 5 of the 6 failures; the sixth time, I rebooted before suspending again. On 2026-11-25 the battery went from 52% to empty overnight, at about 5.3 W with the lid shut. Because the suspend never completes, suspend-then-hibernate never reaches its hibernate step either.

The chain, from the hung-task reports of 2026-11-25 (kernel 7.2.15):

  1. The USB hub worker, disconnecting the devices of the dead controller, waits forever for a command completion that never arrives:

    INFO: task kworker/12:0:153519 blocked for more than 122 seconds.
    Workqueue: usb_hub_wq hub_event
     wait_for_completion+0x9a/0x1e0
     xhci_configure_endpoint+0x189/0x590
     xhci_check_bandwidth+0x19e/0x420
     usb_hcd_alloc_bandwidth+0x25e/0x480
     usb_disable_device+0x1f6/0x340
     usb_disconnect+0xda/0x2e0
     hub_quiesce+0x66/0x110
     hub_event+0x821/0x1a30
    
  2. The MediaTek Bluetooth reset blocks behind it, while it holds the Bluetooth device's lock:

    INFO: task kworker/u99:1:2226175 blocked for more than 122 seconds.
    Workqueue: hci0 hci_cmd_sync_work [bluetooth]
     __mutex_lock.constprop.0+0x470/0xb60
     usb_unlocked_disable_lpm+0x38/0x210
     usb_unbind_interface+0x248/0x300
     __device_release_driver+0x2db/0x300
     device_release_driver+0x2b/0x40
     btusb_mtk_reset+0x1e8/0x220 [btusb]
     hci_cmd_sync_work+0xee/0x310 [bluetooth]
    INFO: task kworker/u99:1:2226175 is blocked on a mutex likely owned by task kworker/12:0:153519.
    
  3. At the next lid close, the kernel stops after the filesystem sync and never starts freezing tasks:

    22:07:29 PM: suspend entry (s2idle)
    22:07:29 Filesystems sync: 0.028 seconds
    

    Nothing more comes from the kernel. System services kept logging every hour until the battery died at about 03:30. The stall falls between the filesystem sync and the task freeze, which is where the kernel runs drivers' pre-suspend hooks. Most likely Bluetooth's hook is waiting for the lock held in step 2. By then the kernel had stopped printing hung-task reports, so this last step has no trace.

Steps To Reproduce

  1. Framework Laptop 13 (Ryzen AI 9 HX 370), BIOS 04.02, Linux, s2idle (the only sleep mode offered).
  2. Suspend and resume normally with the lid. The failure is rare (about 1 in 90 resumes) and mostly follows long suspends. I haven't found a reliable trigger.
  3. After a resume where the webcam, Bluetooth and HDMI card are gone, close the lid again. The suspend hangs and the laptop stays on.

Expected Behavior

The controller restores on resume, or is reset and re-enumerated, and its devices come back. A failure on one controller shouldn't block later suspends.

Screenshots

N/A

Operating System

Omarchy 4.5 (based on Arch Linux), Hyprland

Linux Kernel Version

7.2.15-1-omarchy at the last failure (earlier ones: 7.2.5-3-omarchy, 6.19.10-arch1-1)

Additional Context

  • The same signature (IO_PAGE_FAULT ... address=0x0, then xHC restore state timeout) has been reported in Framework 13 Ryzen AI 370 - fingerprint reader not working after sleep #102 on the fingerprint reader's controller c1:00.4 (1022:151e), in the comments from 2026-11-02 and 2026-11-19. So it is not specific to one controller or one device: c1:00.4 and c3:00.0 both do it.
  • The 4.03 beta changelog doesn't mention xHCI or resume, so I haven't tried it.
  • The hub worker waiting forever on a dead controller is also a Linux xHCI problem. The resume failure itself looks like a firmware/platform issue, as suggested in Framework 13 Ryzen AI 370 - fingerprint reader not working after sleep #102.
  • I can provide full kernel journals for the affected boots on request.

Activity

  1. arturzielazny commented on Nov 29, 2026

    @arturzielazny
    Author

    Hit this a 7th time on 2026-11-28 (18 h 58 min s2idle sleep, BIOS 04.02, kernel 7.2.15-4-omarchy) — exact same IO_PAGE_FAULT ... address=0x0 → xHC restore state timeout → HC died on 0000:c3:00.0, followed by the same usb_hub_wq (xhci_configure_endpoint) / btusb_mtk_reset deadlock.

    Two new findings from digging into yesterday's logs and the full journal history:

    1. Normal shutdown/reboot also hangs after HC died

    Four minutes after the failed resume, I ran a normal shutdown (systemctl poweroff). Userspace tore down cleanly and unmounted /home, /boot, /tmp, and /var/cache/pacman/pkg within ~8 seconds, after which the machine froze permanently with power still on and required holding the power button to reset.

    Because kworker (usb_hub_wq) is stuck permanently in D state inside usb_disconnect() → xhci_configure_endpoint() holding the USB device lock (and btusb_mtk_reset is blocked behind it), the kernel's device_shutdown() deadlocks trying to take device_lock() during final power-off. So once c3:00.0 dies, neither suspend nor a clean shutdown/reboot can complete without a hard power-button reset.

    2. Strong correlation with s2idle RTC-read bursts (7 of 7 occurrences)

    On the 2026-11-28 resume, the kernel flushed 458 consecutive warnings from during sleep:

    Reading current time from RTC took around 171 ms
    Reading current time from RTC took around 185 ms
    ...
    

    Those internal s2idle wake/re-sleep cycles advanced CLOCK_MONOTONIC by 6 min 52 s while suspended (also tripping bolt.service's 3-minute watchdog timeout immediately on wake).

    Checking all 555 resumes in the journal since February 2026 shows a sharp split:

    • 530 resumes: 0 RTC warnings → 0 c3:00.0 deaths
    • 11 resumes: 1 RTC warning → 0 c3:00.0 deaths
    • 14 resumes: a burst of 29–557 RTC warnings → 7 c3:00.0 deaths (all 7 of 7 occurrences):
    Failed resume Suspend length Kernel RTC warnings during sleep
    2026-04-21 12 h 28 min 6.19.10-arch1-1 557
    2026-09-29 0 h 44 min 7.2.5-3-omarchy 38
    2026-10-12 15 h 36 min 7.2.5-3-omarchy 351
    2026-10-14 8 h 41 min 7.2.5-3-omarchy 210
    2026-10-18 10 h 49 min 7.2.5-3-omarchy 450
    2026-11-25 4 h 35 min 7.2.15-1-omarchy 205
    2026-11-28 18 h 58 min 7.2.15-4-omarchy 458

    (Note: the kernel command line includes rtc_cmos.use_acpi_alarm=1.)

    This looks like a strong clue that repeated spurious s2idle wakeups / EC–RTC activity during sleep are what leave c3:00.0 in the broken state that triggers IO_PAGE_FAULT and xHC restore state timeout on full resume.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions