Skip to content

FW Desktop: rear usb-A dead after suspend when iGPU = 96GB, kernel version < 7.2 #163

Open

Description

@davidhubbard

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 up

Create 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.
  1. Acer 4-port hub https://www.amazon.com/gp/aw/d/B0CPSTG4N3
  2. Lenovo usb keyboard
  3. 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.
  1. Nothing

For Desktop only

  1. usb-c to usb-c expansion card (with nothing attached)
  2. 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:

  1. systemctl suspend
  2. Wait 20 minutes
  3. Tap power button to resume
  4. 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
  1. 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

  1. ancoron commented on Jan 19, 2026

    @ancoron

    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:

    /usr/lib/systemd/system-sleep/framework-desktop-quirks.sh
    
    #!/usr/bin/env bash
    
    time_check="$(date --iso-8601=seconds -d '-30 seconds')"
    
    quirks_enabled="$(sed -n -E 's/^QUIRKS_ENABLED\s*=\s*(true|false).*/\1/p' /etc/default/framework-quirks 2>/dev/null)"
    [ -n "${quirks_enabled}" ] || quirks_enabled="true"
    
    log() {
      printf "[FrameworkDesktop] %s: %s\n" "$1" "$2"
    }
    
    if [ "${quirks_enabled}" != "true" ]; then
      log "config" "quirks disabled"
      exit 0
    fi
    
    device_path="$(sed -n -E 's/^DEVICE_PATH\s*=\s*(.+)/\1/p' /etc/default/framework-quirks 2>/dev/null)"
    [ -n "${device_path}" ] || device_path="auto"
    
    
    suspend() {
      log "suspend" "no action"
    }
    
    resume() {
      sleep 2
      local xhci_dead=""
      if [ "${device_path}" = "auto" ]; then
        xhci_dead="$(journalctl --output cat --no-pager -b -k --since "${time_check}" --grep 'xHCI host controller not responding' -n 1 | sed -n -E 's/^.*xhci_hcd\s+([0-9]{4}:[0-9a-f]{2}:[0-9a-f]{2}\.[0-9]):\s+xHCI host controller not responding.*$/\1/p')"
        [ -z "${xhci_dead}" ] || device_path="${xhci_dead}"
      else
        xhci_dead="$(journalctl --output cat --no-pager -b -k --since "${time_check}" --grep "${device_path}" -n 5 | grep -F 'xHCI host controller not responding')"
      fi
    
      if [ -n "${xhci_dead}" ]; then
        log "resume" "rebind xHCI (device: ${device_path})"
        echo -n "${device_path}" > /sys/bus/pci/drivers/xhci_hcd/unbind
        sleep 2
        echo -n "${device_path}" > /sys/bus/pci/drivers/xhci_hcd/bind
      else
        log "resume" "xHCI rebind not needed (device: ${device_path})"
      fi
    }
    
    case "$1" in
      pre)
        suspend "$2"
        ;;
      post)
        resume "$2"
        ;;
    esac

    Which will then print out lines like these:

    2026-01-08T07:34:57+01:00 purgatori systemd-sleep[92866]: [FrameworkDesktop] resume: xHCI rebind not needed (device: auto)
    2026-01-08T21:28:03+01:00 purgatori systemd-sleep[134000]: [FrameworkDesktop] resume: xHCI rebind not needed (device: auto)
    2026-01-10T10:33:03+01:00 purgatori systemd-sleep[202408]: [FrameworkDesktop] resume: xHCI rebind not needed (device: auto)
    2026-01-10T19:46:18+01:00 purgatori systemd-sleep[229446]: [FrameworkDesktop] resume: xHCI rebind not needed (device: auto)
    2026-01-11T22:17:04+01:00 purgatori systemd-sleep[45554]: [FrameworkDesktop] resume: rebind xHCI (device: 0000:c3:00.4)
    2026-01-12T08:02:17+01:00 purgatori systemd-sleep[46369]: [FrameworkDesktop] resume: rebind xHCI (device: 0000:c3:00.4)
    2026-01-13T07:18:00+01:00 purgatori systemd-sleep[6868]: [FrameworkDesktop] resume: rebind xHCI (device: 0000:c3:00.4)
    2026-01-13T22:53:35+01:00 purgatori systemd-sleep[7865]: [FrameworkDesktop] resume: rebind xHCI (device: 0000:c3:00.4)
    2026-01-14T07:47:37+01:00 purgatori systemd-sleep[13253]: [FrameworkDesktop] resume: xHCI rebind not needed (device: auto)
    2026-01-14T19:43:28+01:00 purgatori systemd-sleep[39515]: [FrameworkDesktop] resume: rebind xHCI (device: 0000:c3:00.4)
    2026-01-15T09:00:10+01:00 purgatori systemd-sleep[62882]: [FrameworkDesktop] resume: rebind xHCI (device: 0000:c3:00.4)
    2026-01-17T10:23:50+01:00 purgatori systemd-sleep[1829533]: [FrameworkDesktop] resume: rebind xHCI (device: 0000:c3:00.4)
    2026-01-17T16:52:40+01:00 purgatori systemd-sleep[1852076]: [FrameworkDesktop] resume: xHCI rebind not needed (device: auto)
    2026-01-18T10:50:22+01:00 purgatori systemd-sleep[1885684]: [FrameworkDesktop] resume: xHCI rebind not needed (device: auto)
    2026-01-19T07:31:42+01:00 purgatori systemd-sleep[1922059]: [FrameworkDesktop] resume: rebind xHCI (device: 0000:c3:00.4)
    

    The affected device is always:

    c3:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Strix Halo USB 3.1 xHCI [1022:1587] (prog-if 30 [XHCI])
            Subsystem: Framework Computer Inc. Device [f111:000a]
            Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
            Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
            Latency: 0, Cache Line Size: 64 bytes
            Interrupt: pin D routed to IRQ 25
            Region 0: Memory at 90000000 (64-bit, non-prefetchable) [size=1M]
            Capabilities: [48] Vendor Specific Information: Len=08 <?>
            Capabilities: [50] Power Management version 3
                    Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                    Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
            Capabilities: [64] Express (v2) Endpoint, IntMsgNum 0
                    DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
                            ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0W TEE-IO-
                    DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
                            RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
                            MaxPayload 128 bytes, MaxReadReq 512 bytes
                    DevSta: CorrErr- NonFatalErr+ FatalErr- UnsupReq+ AuxPwr- TransPend-
                    LnkCap: Port #0, Speed 16GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us
                            ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                    LnkCtl: ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk+
                            ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- FltModeDis-
                    LnkSta: Speed 16GT/s, Width x16
                            TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                    DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR-
                             10BitTagComp+ 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix+, MaxEETLPPrefixes 1
                             EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                             FRS- TPHComp- ExtTPHComp-
                             AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                    DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                             AtomicOpsCtl: ReqEn-
                             IDOReq- IDOCompl- LTR- EmergencyPowerReductionReq-
                             10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
                    LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete- EqualizationPhase1-
                             EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
                             Retimer- 2Retimers- CrosslinkRes: unsupported, FltMode-
            Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
                    Address: 0000000000000000  Data: 0000
            Capabilities: [c0] MSI-X: Enable+ Count=1 Masked-
                    Vector table: BAR=0 offset=000fe000
                    PBA: BAR=0 offset=000ff000
            Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
            Capabilities: [2a0 v1] Access Control Services
                    ACSCap: SrcValid- TransBlk- ReqRedir- CmpltRedir- UpstreamFwd- EgressCtrl- DirectTrans-
                    ACSCtl: SrcValid- TransBlk- ReqRedir- CmpltRedir- UpstreamFwd- EgressCtrl- DirectTrans-
            Kernel driver in use: xhci_hcd
            Kernel modules: xhci_pci
    
  2. davidhubbard commented on Jan 19, 2026

    @davidhubbard
    Author

    @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-version

    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.

    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:

  3. ancoron commented on Jan 19, 2026

    @ancoron

    Device Information

    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)

    Concretely:

    Name Value
    CPU: AMD RYZEN AI MAX+ 395 w/ Radeon 8060S
    System Version: A6
    SKU: FRAMDACP06
    Mainboard SKU: FRANMFCP06

    BIOS VERSION

    $ sudo dmidecode --string bios-version
    
    03.04

    DIY Edition information

    Memory: 128 GiB (8x 16 GiB) Micron Technology (part number: MT62F4G32D8DV-023 WT)
    Storage:

    • Seagate FireCuda 530 2TB (system)
    • WD Black SN850X 4TB (data)

    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: Dell UltraSharp U4924DW (acting as a hub; also connected via DisplayPort):
      • Logitech, Inc. G510 Gaming Keyboard (PCI-ID: 046d:c22d)
      • Evoluent Evoluent VerticalMouse D (PCI-ID: 1a7c:0197)
      • Logitech, Inc. C922 Pro Stream Webcam (PCI-ID: 046d:085c)
    • Port the Peripheral was connected to: at least both USB3.2 Gen2x1 ports affected
    • Device or expansion card attached to the Adjacent port to the port that is having the issue: not tried

    Operating System (please complete the following information):

    • OS/Distribution: Arch Linux
    • Version: rolling
    • Linux Kernel Version: Linux purgatori 6.18.5-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sun, 11 Jan 2026 17:10:37 +0000 x86_64 GNU/Linux
  4. davidhubbard commented on Jan 19, 2026

    @davidhubbard
    Author

    @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?

  5. ancoron commented on Jan 19, 2026

    @ancoron

    @davidhubbard I've never done such a downgrade. Can I also do that with fwupdmgr?

  6. davidhubbard commented on Jan 19, 2026

    @davidhubbard
    Author

    Yeah it should be as simple as:

    $ fwupdmgr downgrade
    0.      Cancel
    1.      f8571b257837e7537ea0508dc9793e90f594fdb2 (System Firmware)
    2.      5bc922b7bd1adb5b6f99592611404036bd9f42d0 (UEFI CA)
    3.      362301da643102b9f38477387e2193e57abaa590 (UEFI dbx)
    Choose device [0-3]:
    

    You would select 1 (System Firmware)

    This is what I got on mine, of course you will see 0.0.3.4 here:

    ╔══════════════════════════════════════════════════════════════════════════════╗
    ║ Downgrade System Firmware from 0.0.3.3 to 0.0.3.2?                           ║
    ╠══════════════════════════════════════════════════════════════════════════════╣
    ║ This stable release fixes the following issues:                              ║
    ║                                                                              ║
    ║ • Fixed EC power led still breathing after resuming from suspend.            ║
    ║ • Serial Console Redirection will not turn off anymore by itself.            ║
    ║                                                                              ║
    ║ Desktop (AMD Ryzen AI Max 300 Series) must remain plugged into a power       ║
    ║ source for the duration of the update to avoid damage.                       ║
    ╚══════════════════════════════════════════════════════════════════════════════╝
    Perform operation? [Y|n]: n
    Request canceled
    
  7. SebbeM commented on Jan 19, 2026

    @SebbeM

    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

  8. ancoron commented on Jan 20, 2026

    @ancoron

    @davidhubbard Just downgraded to 3.0.3 and the first sleep after boot (mine were not slow with 3.0.4 / not faster now):

    ...
    2026-01-20T08:01:57+01:00 purgatori kernel: amdgpu 0000:c3:00.0: amdgpu: ring mes_kiq_3.1.0 uses VM inv eng 13 on hub 0
    2026-01-20T08:01:57+01:00 purgatori kernel: amdgpu 0000:c3:00.0: amdgpu: ring vpe uses VM inv eng 7 on hub 8
    2026-01-20T08:01:57+01:00 purgatori kernel: xhci_hcd 0000:c3:00.4: xHCI host not responding to stop endpoint command
    2026-01-20T08:01:57+01:00 purgatori kernel: xhci_hcd 0000:c3:00.4: xHCI host controller not responding, assume dead
    2026-01-20T08:01:57+01:00 purgatori kernel: xhci_hcd 0000:c3:00.4: HC died; cleaning up
    2026-01-20T08:01:57+01:00 purgatori kernel: usb 1-1: PM: dpm_run_callback(): usb_dev_resume returns -22
    2026-01-20T08:01:57+01:00 purgatori kernel: usb 1-1: PM: failed to resume async: error -22
    2026-01-20T08:01:57+01:00 purgatori kernel: usb 2-1: PM: dpm_run_callback(): usb_dev_resume returns -22
    2026-01-20T08:01:57+01:00 purgatori kernel: usb 2-1: PM: failed to resume async: error -22
    2026-01-20T08:01:57+01:00 purgatori kernel: OOM killer enabled.
    2026-01-20T08:01:57+01:00 purgatori kernel: Restarting tasks: Starting
    ...
    

    So at least on my box, it is not a BIOS regression.

  9. n-peugnet commented on Jan 22, 2026

    @n-peugnet

    So at least on my box, it is not a BIOS regression.

    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.

  10. davidhubbard commented on Jan 22, 2026

    @davidhubbard
    Author

    @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. :)

  11. ancoron commented on Jan 23, 2026

    @ancoron

    OK, just tested with my Arch LTS kernel (6.12.66-1-lts), and:

    2026-01-23T08:20:48+01:00 purgatori kernel: xhci_hcd 0000:c3:00.4: xHCI host not responding to stop endpoint command
    2026-01-23T08:20:48+01:00 purgatori kernel: xhci_hcd 0000:c3:00.4: xHCI host controller not responding, assume dead
    2026-01-23T08:20:48+01:00 purgatori kernel: xhci_hcd 0000:c3:00.4: HC died; cleaning up
    2026-01-23T08:20:48+01:00 purgatori kernel: usb 2-1: PM: dpm_run_callback(): usb_dev_resume returns -22
    2026-01-23T08:20:48+01:00 purgatori kernel: usb 1-1: PM: dpm_run_callback(): usb_dev_resume returns -22
    2026-01-23T08:20:48+01:00 purgatori kernel: usb 2-1: PM: failed to resume async: error -22
    2026-01-23T08:20:48+01:00 purgatori kernel: usb 1-1: PM: failed to resume async: error -22
    

    So it's not a regression in the Linux kernel for me (unless the regression that leads to this was backported that far).

  12. davidhubbard commented on Jan 23, 2026

    @davidhubbard
    Author

    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.

  13. davidhubbard commented on Jan 24, 2026

    @davidhubbard
    Author

    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).

    Downgrading to Kernel 6.17.7, linux-firmware-amdgpu 20251111 makes ROCm and PyTorch work again.

    As a bisect help, 6.17.7 works, but 6.17.9 was broken.

    Related: kyuz0/amd-strix-halo-toolboxes#45

  14. hvhaugwitz commented on Jan 26, 2026

    @hvhaugwitz

    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. The unbind/bind workaround also works for me.

    There was a similar issue with kernel 6.16 reported by Arch Linux Users (https://bbs.archlinux.org/viewtopic.php?id=307641) and fixed in 6.16.5 via https://lore.kernel.org/linux-usb/20250819125844.2042452-3-mathias.nyman@linux.intel.com/.

  15. uioped1 commented on Feb 4, 2026

    @uioped1

    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

    • Date generated: 2026-02-04 14:47:29

    Hardware Information:

    • Hardware Model: Framework Desktop AMD Ryzen AI Max 300 Series
    • Memory: 128.0 GiB
    • Processor: AMD RYZEN AI MAX+ 395 w/ Radeon™ 8060S × 32
    • Graphics: Radeon™ 8060S Graphics
    • Disk Capacity: 1.0 TB

    Software Information:

    • Firmware Version: 03.04
    • OS Name: Fedora Linux 43.20260129.0 (Silverblue)
    • OS Build: (null)
    • OS Type: 64-bit
    • GNOME Version: 49
    • Windowing System: Wayland
    • Kernel Version: Linux 6.18.7-200.fc43.x86_64
      `
  16. 35 remaining items

  17. uioped1 commented on May 28, 2026

    @uioped1

    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:

    • We could try to capture some sort of trace of what's happening during attempted resume. This probably would require building a custom module, if I understand what that means. I'd be willing to do that, but I don't know how. I'm sure this would be helpful in figuring out where the actual problem lies.
    • We could try to get more attention on the hardware from the framework team.

    Anything else?
    In terms of priority, this is something like a medium annoyance for me.

  18. davidhubbard commented on May 29, 2026

    @davidhubbard
    Author

    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:

    I think all we got is just more evidence that it's a PCI or x86 architecture problem, not USB. I would mail linux-pci, or at least reassign the bug to drivers/PCI (but not sure if this subsystem pays attention to bugzilla).

    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.

  19. jistr commented on May 29, 2026

    @jistr

    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.

  20. francisdb commented on May 29, 2026

    @francisdb

    Any commands I can run and paste the output from to help out? How do I filter out the related events in my journal?

  21. jistr commented on May 29, 2026

    @jistr
    sudo journalctl | grep 'assume dead'
    
  22. francisdb commented on May 29, 2026

    @francisdb

    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)

  23. davidhubbard commented on Jul 9, 2026

    @davidhubbard
    Author

    @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

  24. francisdb commented on Jul 12, 2026

    @francisdb

    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

    Linux mrframework 7.1.3-d3cold #1 SMP PREEMPT_DYNAMIC Sat Jul 11 22:05:49 CEST 2026 x86_64 GNU/Linux
    Linux version 7.1.3-d3cold (francisdb@mrframework) (gcc (GCC) 16.1.1 20260515 (Red Hat 16.1.1-2), GNU ld version 2.46-3.fc44) #1 SMP PREEMPT_DYNAMIC Sat Jul 11 22:05:49 CEST 2026
    

    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
    @@ -80,9 +80,8 @@
      */
     #define PCIE_RESET_READY_POLL_MS 60000 /* msec */
     
    -static void pci_dev_d3_sleep(struct pci_dev *dev)
    +static void pci_dev_d3_sleep(unsigned int delay_ms)
     {
    -	unsigned int delay_ms = max(dev->d3hot_delay, pci_pm_d3hot_delay);
     	unsigned int upper;
     
     	if (delay_ms) {
    @@ -93,6 +92,11 @@
     	}
     }
     
    +static void pci_dev_d3hot_sleep(struct pci_dev *dev)
    +{
    +	pci_dev_d3_sleep(max(dev->d3hot_delay, pci_pm_d3hot_delay));
    +}
    +
     bool pci_reset_supported(struct pci_dev *dev)
     {
     	return dev->reset_methods[0] != 0;
    @@ -1331,6 +1335,16 @@
     	need_restore = (state == PCI_D3hot || dev->current_state >= PCI_D3hot) &&
     			!(pmcsr & PCI_PM_CTRL_NO_SOFT_RESET);
     
    +	/*
    +	 * A device returning from D3cold has already been powered back on by
    +	 * platform_pci_set_power_state() above, so PCI_PM_CTRL now reads back
    +	 * as D0 and the transition delays below are skipped.  PCI PM 1.2 still
    +	 * requires a minimum recovery time on the D3 to D0 transition, so apply
    +	 * the device's D3cold recovery delay here before it is accessed.
    +	 */
    +	if (dev->current_state == PCI_D3cold)
    +		pci_dev_d3_sleep(dev->d3cold_delay);
    +
     	if (state == PCI_D0)
     		goto end;
     
    @@ -1342,7 +1356,7 @@
     
     	/* Mandatory transition delays; see PCI PM 1.2. */
     	if (state == PCI_D3hot)
    -		pci_dev_d3_sleep(dev);
    +		pci_dev_d3hot_sleep(dev);
     	else if (state == PCI_D2)
     		udelay(PCI_PM_D2_DELAY);
     
    @@ -1503,7 +1517,7 @@
     
     	/* Mandatory power management transition delays; see PCI PM 1.2. */
     	if (state == PCI_D3hot)
    -		pci_dev_d3_sleep(dev);
    +		pci_dev_d3hot_sleep(dev);
     	else if (state == PCI_D2)
     		udelay(PCI_PM_D2_DELAY);
     
    @@ -4479,12 +4493,12 @@
     	csr &= ~PCI_PM_CTRL_STATE_MASK;
     	csr |= PCI_D3hot;
     	pci_write_config_word(dev, dev->pm_cap + PCI_PM_CTRL, csr);
    -	pci_dev_d3_sleep(dev);
    +	pci_dev_d3hot_sleep(dev);
     
     	csr &= ~PCI_PM_CTRL_STATE_MASK;
     	csr |= PCI_D0;
     	pci_write_config_word(dev, dev->pm_cap + PCI_PM_CTRL, csr);
    -	pci_dev_d3_sleep(dev);
    +	pci_dev_d3hot_sleep(dev);
     
     	ret = pci_dev_wait(dev, "PM D3hot->D0", PCIE_RESET_READY_POLL_MS);
     	pci_dev_reset_iommu_done(dev);

    Kernel log of the failing resume (2026-07-12 08:39)

    jul 12 08:39:41 mrframework kernel: Freezing user space processes
    jul 12 08:39:41 mrframework kernel: Freezing user space processes completed (elapsed 0.001 seconds)
    jul 12 08:39:41 mrframework kernel: Freezing remaining freezable tasks
    jul 12 08:39:41 mrframework kernel: Freezing remaining freezable tasks completed (elapsed 0.000 seconds)
    jul 12 08:39:41 mrframework kernel: PM: suspend devices took 0.275 seconds
    jul 12 08:39:41 mrframework kernel: ACPI: EC: interrupt blocked
    jul 12 08:39:41 mrframework kernel: ACPI: EC: interrupt unblocked
    jul 12 08:39:41 mrframework kernel: xhci_hcd 0000:c2:00.4: Port resume timed out, port 1-1: 0x400e03
    jul 12 08:39:41 mrframework kernel: xhci_hcd 0000:c2:00.4: xHCI host not responding to stop endpoint command
    jul 12 08:39:41 mrframework kernel: xhci_hcd 0000:c2:00.4: xHCI host controller not responding, assume dead
    jul 12 08:39:41 mrframework kernel: xhci_hcd 0000:c2:00.4: HC died; cleaning up
    jul 12 08:39:41 mrframework kernel: usb 2-1: PM: dpm_run_callback(): usb_dev_resume returns -22
    jul 12 08:39:41 mrframework kernel: usb 2-1: PM: failed to resume async: error -22
    jul 12 08:39:41 mrframework kernel: PM: resume devices took 11.102 seconds
    jul 12 08:39:41 mrframework kernel: usb 1-1: USB disconnect, device number 2
    jul 12 08:39:41 mrframework kernel: usb 1-1.1: USB disconnect, device number 3
    jul 12 08:39:41 mrframework kernel: usb 2-1: USB disconnect, device number 2
    jul 12 08:39:41 mrframework kernel: PM: suspend exit
    

    Controller state after failure

    c2:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Strix Halo USB 3.1 xHCI [1022:1587] (prog-if 30 [XHCI])
    	Subsystem: Framework Computer Inc. Device [f111:000a]
    	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    	Latency: 0, Cache Line Size: 64 bytes
    	Interrupts: pin E disabled, MSI(X) routed to IRQ 40
    	IOMMU group: 22
    	Region 0: Memory at 90000000 (64-bit, non-prefetchable) [size=1M]
    	Capabilities: <access denied>
    	Kernel driver in use: xhci_hcd
    	Kernel modules: xhci_pci
    
    

    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:

    echo 1 > /sys/bus/pci/devices/0000:c2:00.4/remove
    echo 1 > /sys/bus/pci/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.

  25. francisdb commented on Jul 13, 2026

    @francisdb

    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.

  26. francisdb commented on Jul 15, 2026

    @francisdb

    The remaining hang on sleep issue we encountered seems to be #116

  27. francisdb commented on Aug 5, 2026

    @francisdb

    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_64

    I suppose this issue can be closed?

  28. davidhubbard commented on Aug 5, 2026

    @davidhubbard
    Author

    @francisdb Thanks for detailed updates!

    Before closing this, I'd like to do a couple things:

    1. Since Framework never officially acknowledged this issue or commented at all, I guess I'd like to thank everyone who gave full system reports and made this conversation what it was. I enjoyed working on this!
    2. I'd like to track a handful of major distros and post what kernel in each includes the fix. Fedora and upstream are usually the fastest to update. Also I'd like to include a brief explanation for what the root cause ended up being. I'd like to update the top comment and post a final update at the bottom. This makes the issue look clean.

    Anything I missed?

  29. ancoron commented on Aug 17, 2026

    @ancoron

    Also confirming the fix landed on Arch (current kernel: 7.1.8-arch1-3).

  30. blerrgh commented on Aug 18, 2026

    @blerrgh

    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

  31. changed the title [-]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[/+] on Aug 25, 2026
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