Repository navigation
Description
Solution found!
The issue is described below. Here is the solution:
Mario Limoncello at AMD posted the solution in the kernel bugzilla and on the linux kernel mailing list:
Some AMD APU multi-function devices expose an integrated USB xHCI controller. In some circumstances (such as larger VRAM), the PM core can resume can fail when the xHCI controller is resuming in parallel
with the GPU/display function.On affected systems, the xHCI controller can complete pci_pm_resume and start resuming USB devices while the GPU is still in its much longer resume path. This race condition leads to USB device resume
failures followed by:xhci_hcd ...: xHCI host not responding to stop endpoint command xhci_hcd ...: HC died; cleaning upCreate a device link from any xHCI controller sharing the same PCIe root port as the APU display function. The link uses DL_FLAG_STATELESS and DL_FLAG_PM_RUNTIME to ensure the GPU completes its resume before the xHCI controller begins resuming USB devices.
This device link is done specifically in amdgpu so that if the platform firmware has been modified such that this issue doesn't happen the version can be detected and the workaround skipped.
Please scroll to the bottom. The last issue comments list linux kernel versions which include this fix.
(Obsolete) Device Information
Framework Desktop AI Ryzen Max 300
- BIOS version 03.03 cannot reproduce
- BIOS versoin 03.04 @ancoron reports the issue
@SebbeM reports: Framework Laptop 13 AMD Ryzen AI 300, BIOS version 03.05
System Model or SKU
Please select one of the following
- Framework Laptop 12 (13th Gen Intel® Core™)
- Framework Laptop 13 (11th Gen Intel® Core™)
- Framework Laptop 13 (12th Gen Intel® Core™)
- Framework Laptop 13 (13th Gen Intel® Core™)
- Framework Laptop 13 (AMD Ryzen™ 7040 Series)
- Framework Laptop 13 (AMD Ryzen™ AI 300 Series)
- Framework Laptop 13 (Intel® Core™ Ultra Series 1)
- Framework Laptop 16 (AMD Ryzen™ 7040 Series)
- Framework Laptop 16 (AMD Ryzen™ AI 300 Series)
- Framework Desktop (AMD Ryzen™ AI 300 PRO Series)
BIOS VERSION
Please provide the bios version.
$ sudo dmidecode --string bios-version
03.03
(@ancoron reports 03.04, @SebbeM reports 03.05)
DIY Edition information
If you are experiencing an issue on a DIY system, Please also fill out the memory and storage devices you are using.
Memory: 128GB edition
Storage: WD_BLACK SN7100 500GB
Port/Peripheral information
If you are experiencing an issue with a peripheral or an expansion card/port please fill out the following information:
- Peripheral vendor and name.
- Acer 4-port hub https://www.amazon.com/gp/aw/d/B0CPSTG4N3
- Lenovo usb keyboard
- Lenovo usb mouse
- Port the Peripheral was connected to. Desktop - both of the rear usb-A ports are affected
- Device or expansion card attached to the Adjacent port to the port that is having the issue.
- Nothing
For Desktop only
- usb-c to usb-c expansion card (with nothing attached)
- usb-c to usb-c expansion card (with nothing attached)
(Obsolete) Describe the bug
xhci controller does not resume successfully.
This results in the keyboard and mouse being unusable.
Steps To Reproduce
Steps to reproduce the behavior:
- systemctl suspend
- Wait 20 minutes
- Tap power button to resume
- Attempt to log in with password, keyboard is unresponsive (@SebbeM reports this impacts his fingerprint sensor)
The kernel logs have:
kernel: xhci_hcd 0000:c2:00.4: xHCI host not responding to stop endpoint command
kernel: xhci_hcd 0000:c2:00.4: xHCI host controller not responding, assume dead
kernel: xhci_hcd 0000:c2:00.4: HC died; cleaning up
kernel: usb 2-1: PM: dpm_run_callback(): usb_dev_resume returns -22
kernel: usb 1-1: PM: dpm_run_callback(): usb_dev_resume returns -22
kernel: usb 2-1: PM: failed to resume async: error -22
kernel: usb 1-1: PM: failed to resume async: error -22
Expected behavior
xhci controller works after suspend
Fingerprint sensor works after suspend
Operating System (please complete the following information):
- OS/Distribution: Ubuntu 24.04.3
- Version: 24.04.3
- Linux Kernel Version: Linux 6.17.0-8-generic # 8-Ubuntu Fri Nov 14 21:44:46 UTC 2025 / also tried 6.18.7-061807-generic via mainline ppa
- Note that I have installed the mt7925 patch via dkms, from: https://community.frame.work/t/kernel-panic-from-wifi-mediatek-mt7925-nullptr-dereference/79301
Additional context
I checked, this is not related to #116
This appears to be a separate issue only affecting only the rear usb-A ports. It may also be that a Framework Laptop 13 is affected (link).
I don't know if it affects my system yet. I am reporting this before I've run into the bug myself.
Activity
ancoron commentedon Jan 19, 2026
For anyone coming across this issue, I've created a script that tries to detect this issue at resume and then rebinds the xHCI controller that is affected. This script currently only works for a single PCI device as I've not come across the case of any other device failing to resume:
Which will then print out lines like these:
The affected device is always:
davidhubbard commentedon Jan 19, 2026
@ancoron it would be really helpful to collect your system information. Perhaps in the diff between yours and mine, a clue would surface.
System Model or SKU
BIOS VERSION
Please provide the bios version.
$ sudo dmidecode --string bios-versionDIY Edition information
If you are experiencing an issue on a DIY system, Please also fill out the memory and storage devices you are using.
Port/Peripheral information
If you are experiencing an issue with a peripheral or an expansion card/port please fill out the following information:
Peripheral vendor and name.
Port the Peripheral was connected to. Desktop - both of the rear usb-A ports are affected
Device or expansion card attached to the Adjacent port to the port that is having the issue.
Operating System (please complete the following information):
OS/Distribution:
Version:
Linux Kernel Version:
ancoron commentedon Jan 19, 2026
Device Information
System Model or SKU
Please select one of the following
Concretely:
BIOS VERSION
DIY Edition information
Memory: 128 GiB (8x 16 GiB) Micron Technology (part number: MT62F4G32D8DV-023 WT)
Storage:
Port/Peripheral information
If you are experiencing an issue with a peripheral or an expansion card/port please fill out the following information:
Operating System (please complete the following information):
Linux purgatori 6.18.5-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sun, 11 Jan 2026 17:10:37 +0000 x86_64 GNU/Linuxdavidhubbard commentedon Jan 19, 2026
@ancoron I don't get the suspend issue on BIOS 03.03.
I saw 03.04 suffered from long delays on boot. Would it be reasonable for you to downgrade to 03.03 and retest?
ancoron commentedon Jan 19, 2026
@davidhubbard I've never done such a downgrade. Can I also do that with fwupdmgr?
davidhubbard commentedon Jan 19, 2026
Yeah it should be as simple as:
You would select 1 (System Firmware)
This is what I got on mine, of course you will see 0.0.3.4 here:
SebbeM commentedon Jan 19, 2026
I had this problem on my Laptop 13 but currently not bothered by it thanks to the script above. For me, the only device I have noticed being affected is the fingerprint reader, connected to an internal USB 2.0 port. System information provided below.
System Model or SKU
Framework Laptop 13 (AMD Ryzen™ AI 300 Series)
BIOS VERSION
03.05
DIY Edition information
Kingston 32GB DDR5 5600MHz Impact SODIMM
Samsung SSD 970 EVO Plus 500GB
Port/Peripheral information
Peripheral vendor and name.
Shenzhen Goodix Technology Co.,Ltd. Goodix Fingerprint USB Device
Port the Peripheral was connected to.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Operating System (please complete the following information):
OS/Distribution: Arch
Version: Updated
Linux Kernel Version: 6.18.5
ancoron commentedon Jan 20, 2026
@davidhubbard Just downgraded to 3.0.3 and the first sleep after boot (mine were not slow with 3.0.4 / not faster now):
So at least on my box, it is not a BIOS regression.
n-peugnet commentedon Jan 22, 2026
In my case, Framework Desktop with bios 3.0.3, I only started to have this issue after upgrading the Linux Kernel from 6.17.x to 6.18.4.
See also: https://community.frame.work/t/wake-from-suspend/76109/42?u=nicolasp
But it might be biased as I was not using suspend that much due to the resume sometimes not working at all.
davidhubbard commentedon Jan 22, 2026
@n-peugnet thanks for the brief comment. Please could you post all your system details?
For what it's worth, everyone who has reported the issue here has a 6.18.x kernel. And I don't see the issue on 6.17.x. But please, share your system details. :)
ancoron commentedon Jan 23, 2026
OK, just tested with my Arch LTS kernel (6.12.66-1-lts), and:
So it's not a regression in the Linux kernel for me (unless the regression that leads to this was backported that far).
davidhubbard commentedon Jan 23, 2026
I installed mainline and switched to Linux fwd 6.18.7-061807-generic #202601231045 SMP PREEMPT_DYNAMIC Fri Jan 23 11:25:00 UTC 2026 x86_64 GNU/Linux
Over the next few days I will know if it causes my Framework Desktop to fail after suspend. I did a little testing already and the issue is not present.
It's looking like it is not a regression in the Linux kernel.
davidhubbard commentedon Jan 24, 2026
Ugh. I'll test for a few days, and it looks like the linux 6.17.7 kernel is the "golden version" for Framework Desktop (AMD Strix Halo).
Related: kyuz0/amd-strix-halo-toolboxes#45
hvhaugwitz commentedon Jan 26, 2026
FWIW I experience the same issue (affecting integrated camera) on a ThinkPad T14 Gen 6 AMD device running Debian unstable with kernel
6.18.5. Theunbind/bindworkaround also works for me.There was a similar issue with kernel
6.16reported by Arch Linux Users (https://bbs.archlinux.org/viewtopic.php?id=307641) and fixed in6.16.5via https://lore.kernel.org/linux-usb/20250819125844.2042452-3-mathias.nyman@linux.intel.com/.uioped1 commentedon Feb 4, 2026
Having the same issue with kernel 6.18.7 on fedora silverblue
I am able to wake from suspend using the keyboard even when the xhci controller will then timeout during boot ( I did set the bios to allow
force power-supply ON in standby)system details:
`# System Details Report
Report details
Hardware Information:
Software Information:
`
35 remaining items
uioped1 commentedon May 28, 2026
I wanted to check on this issue, since it feels like it might have fallen into the cracks...
Is anyone aware of it being worked on anywhere? It seems like the kernel people think it's not a kernel issue, but I don't know who it would be handed off to if so.
Ideas:
Anything else?
In terms of priority, this is something like a medium annoyance for me.
davidhubbard commentedon May 29, 2026
In https://bugzilla.kernel.org/show_bug.cgi?id=221073#c41 I'm waiting for Michał Pecio or Mathias Nyman to comment with what is needed. It seems to me that the kernel USB team think it is a kernel issue. So respectfully, I don't think "the kernel people think it's not a kernel issue." But the kernel USB team think it's an issue in the PCI kernel team.
Michał Pecio wrote in https://bugzilla.kernel.org/show_bug.cgi?id=221073#c37:
They made a couple of suggestions for workarounds in the kernel bugzilla that you could test @uioped1, although there isn't yet an agreed upon solution.
jistr commentedon May 29, 2026
The loss of USB ports (either this issue or #158) would happen for me 4-10 times a month and then completely stopped happening. The last entry in system journal for this problem on my system is from the end of March, right before i got a new external sound card. So likely it was the old external sound card that was triggering the problem for my Framework desktop.
That said, the external sound card that crashed Framework USB ports did not crash USB ports of my previous desktop :). So i don't think this can be written off as "get better peripherals" but perhaps it's a hint that some specific USB peripherals (perhaps with unusual or somehow non-standard behavior) may need to be connected in order to trigger this crash.
francisdb commentedon May 29, 2026
Any commands I can run and paste the output from to help out? How do I filter out the related events in my journal?
jistr commentedon May 29, 2026
francisdb commentedon May 29, 2026
38 entries from Nov 12 to May 26
Framework Desktop (AMD Ryzen™ AI 300 PRO Series)
CPU: AMD RYZEN AI MAX+ 395 (32) @ 5.19 GHz
GPU: AMD Radeon 8060S Graphics [Integrated]
Memory: 29.04 GiB / 94.07 GiB (31%)
128GB, 32 assigned to GFX
WD_BLACK SN850X HS 2000GB
HostBiosVersion: 3.05
Fedora Linux 44 (COSMIC) 7.0.9-205.fc44.x86_64
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 003 Device 003: ID 0e8d:0717 MediaTek Inc. Wireless_Device
Bus 003 Device 004: ID 1532:0094 Razer USA, Ltd Orochi V2
Bus 003 Device 005: ID 3434:d030 Keychron Keychron Link
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 002: ID 05e3:0625 Genesys Logic, Inc. USB3.2 Hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
(not using the back USB-A ports any more as anything I plug in there breaks after sleep)
davidhubbard commentedon Jul 9, 2026
@blerrgh @uioped1 @francisdb I applied Mario Limonciello's patch and haven't seen any issues coming out of suspend, doing repeated tests of sleep/wake.
https://lore.kernel.org/linux-pci/20260708152650.536604-1-mario.limonciello@amd.com/T/#mf3d1a208e6144529303e9cb224bb456fabf685b9
If you want to compile a kernel from source, and apply the patch, it would give Mario more data. Because it's a patch in the core pci subsystem, there's no easy DKMS package for this fix.
Anyway, wanted to give a heads up about the progress being made over at https://bugzilla.kernel.org/show_bug.cgi?id=221073
francisdb commentedon Jul 12, 2026
EDIT: below was for the first patch reported, all this is now outdated. I also found out that this is not related to specific usb devices, the controller dies even without anything connected.
Test report: rear USB-A dead after suspend, with D3cold recovery delay patch applied
Hardware: Framework Desktop (AMD Ryzen AI Max 300 Series) FRANMFCP06, BIOS 03.05 (01/21/2026)
Kernel: vanilla 7.1.3 + "PCI: Apply mandatory recovery delay on return from D3cold" (https://lore.kernel.org/linux-pci/20260708152650.536604-1-mario.limonciello@amd.com/)
Result: rear USB-A ports still die on resume. xHCI controller 0000:c2:00.4 ([1022:1587], subsystem f111:000a) does not respond after wake and is marked dead. Failure occurred on the 2nd suspend/resume cycle of this boot.
Suspend duration appears to matter: a 16-second s2idle cycle (23:23:34 -> 23:23:50) resumed fine, while the failure followed a ~9 hour overnight suspend (23:38:56 -> 08:39:41). Further short-cycle testing also did not reproduce the issue; it seems to need a longer suspend.
Notably, after the failure the controller's PCI config space is still fully accessible: lspci reads it fine, power state is D0, memory BAR and bus mastering are enabled (see "Controller state after failure" below). It is the xHCI host itself that is wedged ("Port resume timed out, port 1-1: 0x400e03" followed by "xHCI host not responding to stop endpoint command"), not PCI-level access to the device. This may suggest the failure is not (only) an insufficient D3cold recovery delay on this platform.
Devices connected to this controller at failure time (from this boot's enumeration): the internal Realtek 2-port hub behind the rear USB-A ports (0bda:5424 USB2 at 1-1 / 0bda:0424 USB3 at 2-1) and a Keychron Link receiver at 1-1.1. Additionally, a custom LED matrix panel was plugged into the other rear USB-A port. It is controlled over WiFi and uses the USB port only as a power source (no external supply, never enumerates as a USB device), so it is a pure unnegotiated power load on VBUS. To rule out that power load as a factor, I will repeat the suspend/resume test with the panel unplugged and follow up with the results. Since short cycles do not trigger the issue, that test will use a long (overnight) suspend to be meaningful.Kernel identity
Patch as applied (diff vs pristine 7.1.3)
One hunk needed manual rebasing onto 7.1.3 (upstream context drift in pci_power_up); functionally identical.
Full diff of drivers/pci/pci.c as applied
Kernel log of the failing resume (2026-07-12 08:39)
Controller state after failure
Buses 1 and 2 (the dead controller c2:00.4) show no devices in lsusb -t; devices on the other xHCI controllers re-enumerated normally after resume.
Recovery without reboot
The controller recovers fully with a PCI remove + rescan:
After the rescan the xHCI reprobes cleanly, buses 1/2 are re-registered and the rear-port hubs re-enumerate immediately. No reboot or power cycle needed, which suggests the hardware is healthy and the controller is wedged by something in the resume sequence.
francisdb commentedon Jul 13, 2026
Good news. Mario's new device-link patch (v3 on bugzilla 221073, attachment 310446) fixes the issue on my Framework Desktop.
16 consecutive clean cycles where previously it would fail after 1-5 cycles.
francisdb commentedon Jul 15, 2026
The remaining hang on sleep issue we encountered seems to be #116
francisdb commentedon Aug 5, 2026
The usb fix was applied in the Linux kernel 7.1.6 (and 7.2-rc4)
On fedora I just got the updated kernel installed
vmlinuz-7.1.6-201.fc44.x86_64I suppose this issue can be closed?
davidhubbard commentedon Aug 5, 2026
@francisdb Thanks for detailed updates!
Before closing this, I'd like to do a couple things:
Anything I missed?
ancoron commentedon Aug 17, 2026
Also confirming the fix landed on Arch (current kernel: 7.1.8-arch1-3).
blerrgh commentedon Aug 18, 2026
Can confirm this issue seems resolved for me on Fedora
7.1.6-201.fc44.x86_64.Thanks @davidhubbard and everyone for looking into it!
Might be worth posting an update in some of the framework forum threads as well?
https://community.frame.work/t/framework-desktop-wired-keyboard-and-mouse-dont-return-after-sleep-linux/76414/26
https://community.frame.work/t/workaround-xhci-host-controller-not-responding-at-resume-after-suspend/79119/10
[-]FW Desktop: rear usb-A dead after suspend when iGPU = 96GB[/-][+]FW Desktop: rear usb-A dead after suspend when iGPU = 96GB, kernel version < 7.2[/+]