USB ports periodically lose function and later regain it

You’ll need a PS2 keyboard though if you use this fix, and possibly a PS2 mouse if a mouse is required to navigate your BIOS settings.

I do not have access to either of those, and my BIOS doesn’t have those options as was established earlier

try to constantly read from this device with dd to /dev/null

I wonder if this has something to do with low-speed devices like mice.

How would I accomplish this?

1 Like

Did you try these other commands in the article Vlad linked https://askubuntu.com/questions/1140925/how-can-i-disable-usb-autosuspend-on-ubuntu-18-04 ?

There are couple other suggestions regarding autosuspend in there.

The other lead I have is with IPMI remote management - If there are any remote management, IPMI or BMC options in the BIOS turn them off.

Another idea - can you disable c states (cpu power management) in the BIOS?

And have we discussed setting ‘power profiles’ or ‘tuned’ yet?

Heres a script to disable c-state (dont just run it! - for info for others at this point) A Systemd Service to disable CPU C-States at runtime. A hack whilst I tune voltages for stability. · GitHub - linked from What are CPU "C-states" and how to disable them if needed? · GitHub

Did you try these other commands in the article Vlad linked(…)?

I missed that article, thanks! I have since tried the solutions proposed in it. Mysteriously a few of these files already existed with those exact contents? They did not solve my issue.

The other lead I have is with IPMI remote management - If there are any remote management, IPMI or BMC options in the BIOS turn them off.

Another idea - can you disable c states (cpu power management) in the BIOS?

I checked my BIOS again, and sadly, there aren’t any options even slightly similar to what you described here

1 Like

umount the filesystem first mounted at /run/media/<user>/<volumename>

sudo dd if=/dev/sdX of=/dev/null bs=32k status=progress
replace X with the appropriate device. The command will read the complete disk
You can also choose to read from a partition instead if there is one e.g. /dev/sdX1

check journalctl -k for usb errors

you could loop this a few times, you can also interrupt dd with CTRL + c any time.

Just remember ‘dd’ disk duplicator, also stand for disk destroyer. It is one of the few Linux command you do not want to get wrong !!!

https://www.baeldung.com/linux/dd-command

I have not followed the recent advice yet, but I think it might be something about mice specifically, yes

When I fiddle with the wire of the mouse, specifically press down on it, the power comes back, and if I apply weight to keep it in that position, it works indefinitely, probably at the cost of spamming journalctl and also the integrity of the wire… I’m confident it isn’t a hardware problem because another wired mouse I tried didn’t work either, when it is known to work on a different computer without issues

EDIT: Specifically pressing down at where the wire meets the USB plug that goes into the port

EDIT 2: Okay so this workaround of messing with the cable no longer works

Ryzen 7 5700U is Zen 2.

When I had a X470 board and a 2700X, the chipset-connected USB ports on AMD’s USB controller were flaky. My board had a separate ASMedia USB controller with 2 ports that I used for high-speed stuff (HDDs or a VR sensor and HMD).

I found no solution to that except to avoid the AMD USB ports and get a PCI-E controller along with the ASMedia ports (disabling C-states and all power-saving didn’t help).


Although if the instability only came recently, maybe a BIOS update changed something (I witnessed different USB-C power delivery from a BIOS update on that ASUS X470 board), or a USB device or driver changed? (maybe new wifi card that puts BT on USB)

maybe with USB2 devices. Find an old slow USB2 only flash / hdd to read from.

USB1 and 2 devices use only the front 4 pins. USB3 has added 5 additional smaller pins, which are located further back behind the USB2 pins.

This indicates a mechanical issue though. Applying pressure on a cable should not make any difference. Did you appy pressure near the plug?
Inspect the ports and the mouse plug for discoloration. Try cleaning the metal contact surfaces with a small pencil eraser and/or cotton swap dipped in isopropyl alcohol.

You could also try bending the pins on the mouse plug slightly so that they protrude a little more and provide better contact.

have you checked journalctl if this indeed the case?

Sometimes bending the wire into a position that will probably damage it works, sometimes it doesn’t. Right now it stopped working but it might start working again later; I’m too afraid of breaking more things and making them worse to try touching hardware I could not replace myself :frowning:

I can confirm though, journalctl is being filled with messages like this:

 $ journalctl --since "1 minute ago" | grep usb
Oct 06 13:31:51 akira-fedora-aspire5 kernel: usb 1-2: device descriptor read/64, error -71
Oct 06 13:31:51 akira-fedora-aspire5 kernel: usb 1-2: device descriptor read/64, error -71
Oct 06 13:31:51 akira-fedora-aspire5 kernel: usb 1-2: new low-speed USB device number 7 using xhci_hcd
Oct 06 13:31:52 akira-fedora-aspire5 kernel: usb 1-2: New USB device found, idVendor=046d, idProduct=c077, bcdDevice=72.00
Oct 06 13:31:52 akira-fedora-aspire5 kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 06 13:31:52 akira-fedora-aspire5 kernel: usb 1-2: Product: USB Optical Mouse
Oct 06 13:31:52 akira-fedora-aspire5 kernel: usb 1-2: Manufacturer: Logitech
Oct 06 13:31:52 akira-fedora-aspire5 kernel: input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0/0003:046D:C077.001C/input/input44
Oct 06 13:31:52 akira-fedora-aspire5 kernel: hid-generic 0003:046D:C077.001C: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:05:00.3-2/input0
Oct 06 13:31:52 akira-fedora-aspire5 mtp-probe[53484]: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2"
Oct 06 13:31:52 akira-fedora-aspire5 /usr/libexec/gdm-x-session[2273]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0/0003:046D:C077.001C/input/input44/event5"
Oct 06 13:31:52 akira-fedora-aspire5 mtp-probe[53489]: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2"
Oct 06 13:31:54 akira-fedora-aspire5 kernel: usb 1-2: USB disconnect, device number 7
Oct 06 13:32:04 akira-fedora-aspire5 kernel: usb 1-2: new low-speed USB device number 8 using xhci_hcd
Oct 06 13:32:05 akira-fedora-aspire5 kernel: usb 1-2: New USB device found, idVendor=046d, idProduct=c077, bcdDevice=72.00
Oct 06 13:32:05 akira-fedora-aspire5 kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 06 13:32:05 akira-fedora-aspire5 kernel: usb 1-2: Product: USB Optical Mouse
Oct 06 13:32:05 akira-fedora-aspire5 kernel: usb 1-2: Manufacturer: Logitech
Oct 06 13:32:05 akira-fedora-aspire5 kernel: input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0/0003:046D:C077.001D/input/input45
Oct 06 13:32:05 akira-fedora-aspire5 kernel: hid-generic 0003:046D:C077.001D: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:05:00.3-2/input0
Oct 06 13:32:05 akira-fedora-aspire5 mtp-probe[53565]: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2"
Oct 06 13:32:05 akira-fedora-aspire5 /usr/libexec/gdm-x-session[2273]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0/0003:046D:C077.001D/input/input45/event5"
Oct 06 13:32:05 akira-fedora-aspire5 mtp-probe[53570]: checking bus 1, device 8: "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2"
Oct 06 13:32:05 akira-fedora-aspire5 kernel: usb 1-2: USB disconnect, device number 8
Oct 06 13:32:10 akira-fedora-aspire5 kernel: usb 1-2: new low-speed USB device number 9 using xhci_hcd
Oct 06 13:32:11 akira-fedora-aspire5 kernel: usb 1-2: New USB device found, idVendor=046d, idProduct=c077, bcdDevice=72.00
Oct 06 13:32:11 akira-fedora-aspire5 kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 06 13:32:11 akira-fedora-aspire5 kernel: usb 1-2: Product: USB Optical Mouse
Oct 06 13:32:11 akira-fedora-aspire5 kernel: usb 1-2: Manufacturer: Logitech
Oct 06 13:32:11 akira-fedora-aspire5 kernel: input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0/0003:046D:C077.001E/input/input46
Oct 06 13:32:11 akira-fedora-aspire5 kernel: hid-generic 0003:046D:C077.001E: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:05:00.3-2/input0
Oct 06 13:32:11 akira-fedora-aspire5 mtp-probe[53585]: checking bus 1, device 9: "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2"
Oct 06 13:32:11 akira-fedora-aspire5 /usr/libexec/gdm-x-session[2273]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2/1-2:1.0/0003:046D:C077.001E/input/input46/event5"
Oct 06 13:32:11 akira-fedora-aspire5 mtp-probe[53590]: checking bus 1, device 9: "/sys/devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb1/1-2"
Oct 06 13:32:11 akira-fedora-aspire5 kernel: usb 1-2: USB disconnect, device number 9
Oct 06 13:32:21 akira-fedora-aspire5 kernel: usb 1-2: new low-speed USB device number 10 using xhci_hcd
Oct 06 13:32:21 akira-fedora-aspire5 kernel: usb 1-2: device descriptor read/64, error -71
Oct 06 13:32:21 akira-fedora-aspire5 kernel: usb 1-2: device descriptor read/64, error -71
Oct 06 13:32:22 akira-fedora-aspire5 kernel: usb 1-2: new low-speed USB device number 11 using xhci_hcd
Oct 06 13:32:22 akira-fedora-aspire5 kernel: usb 1-2: device descriptor read/64, error -71
Oct 06 13:32:22 akira-fedora-aspire5 kernel: usb 1-2: device descriptor read/64, error -71
Oct 06 13:32:22 akira-fedora-aspire5 kernel: usb usb1-port2: attempt power cycle
Oct 06 13:32:22 akira-fedora-aspire5 kernel: usb 1-2: new low-speed USB device number 12 using xhci_hcd
Oct 06 13:32:22 akira-fedora-aspire5 kernel: usb 1-2: Device not responding to setup address.
Oct 06 13:32:23 akira-fedora-aspire5 kernel: usb 1-2: Device not responding to setup address.
Oct 06 13:32:23 akira-fedora-aspire5 kernel: usb 1-2: device not accepting address 12, error -71
Oct 06 13:32:23 akira-fedora-aspire5 kernel: usb 1-2: new low-speed USB device number 13 using xhci_hcd
Oct 06 13:32:23 akira-fedora-aspire5 kernel: usb 1-2: Device not responding to setup address.
Oct 06 13:32:23 akira-fedora-aspire5 kernel: usb 1-2: Device not responding to setup address.
Oct 06 13:32:23 akira-fedora-aspire5 kernel: usb 1-2: device not accepting address 13, error -71
(...)

If you think its hardware, buy a cheap USB hub, see if it fits your USB port better.

You could cut up small strips of aluminium and build up the contacts - there are 4. Or you could put a dot of solder or flux on…

Ive haf USBs that intermittently connect, and I put a small weight to move the terminal contacts to connect better.

I think I’m seeing the same with Ryzen 9900X and X870 Riptide WiFi mobo.

It happens after few days of computer being on (just sleeping in between) when out of the blue all USB devices are lost and don’t come back automatically. In such cases I ssh into the computer and run a script that resets USB host controllers and devices eventually come back in a minute or so.

Excerpt from dmesg (not sure where exactly problems start)

[59389.323327] OOM killer enabled.
[59389.323328] Restarting tasks: Starting
[59389.325114] Restarting tasks: Done
[59389.325124] efivarfs: resyncing variable state
[59389.326746] efivarfs: finished resyncing variable state
[59389.326851] random: crng reseeded on system resumption
[59389.326858] PM: suspend exit
[59389.352676] r8169 0000:08:00.0 enp8s0: Link is Up - 1Gbps/Full - flow control off
[59389.365968] r8169 0000:08:00.0 enp8s0: Link is Down
[59389.369519] pci_bus 0000:03: Allocating resources
[59389.401313] Realtek Internal NBASE-T PHY r8169-0-800:00: attached PHY driver (mii_bus:phy_addr=r8169-0-800:00, irq=MAC)
[59389.498305] usb 1-12: new high-speed USB device number 46 using xhci_hcd
[59389.559598] r8169 0000:08:00.0 enp8s0: Link is Down
[59389.723947] usb 1-3.2: usbfs: process 118735 (pcscd) did not claim interface 2 before use
[59392.730344] r8169 0000:08:00.0 enp8s0: Link is Up - 1Gbps/Full - flow control off
[59394.760315] usb 1-12: device descriptor read/64, error -110
[59410.057537] usb 1-12: device descriptor read/64, error -110
[59410.345506] usb 1-12: new high-speed USB device number 47 using xhci_hcd
[59415.689835] usb 1-12: device descriptor read/64, error -110
[59431.560941] usb 1-12: device descriptor read/64, error -110
[59431.674089] usb usb1-port12: attempt power cycle
[59432.117611] usb 1-12: new high-speed USB device number 48 using xhci_hcd
[59436.917763] usb 1-12: Device not responding to setup address.
[59441.930864] usb 1-12: Device not responding to setup address.
[59442.138710] usb 1-12: device not accepting address 48, error -71
[59442.318514] usb 1-12: new high-speed USB device number 49 using xhci_hcd
[59447.118982] usb 1-12: Device not responding to setup address.
[59452.130075] usb 1-12: Device not responding to setup address.
[59452.338421] usb 1-12: device not accepting address 49, error -71
[59452.345794] usb usb1-port12: unable to enumerate USB device
[60771.976699] perf: interrupt took too long (2506 > 2500), lowering kernel.perf_event_max_sample_rate to 79000
[78567.345010] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[78567.357547] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[78567.578370] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[78567.585566] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[78567.585631] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[78567.585688] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[78567.585691] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[78567.965441] PM: suspend entry (deep)
[78568.056536] Filesystems sync: 0.091 seconds
[78568.063738] Freezing user space processes
[78568.066246] Freezing user space processes completed (elapsed 0.002 seconds)
[78568.066249] OOM killer disabled.
[78568.066250] Freezing remaining freezable tasks
[78568.067234] Freezing remaining freezable tasks completed (elapsed 0.000 seconds)
[78568.067271] printk: Suspending console(s) (use no_console_suspend to debug)
[78568.078763] queueing ieee80211 work while going to suspend
[78568.103707] r8169 0000:08:00.0 enp8s0: Link is Down
[78569.966748] PM: suspend devices took 1.899 seconds
[78570.098060] ACPI: PM: Preparing to enter system sleep state S3
[78570.605253] ACPI: PM: Saving platform NVS memory
[78570.605666] Disabling non-boot CPUs ...
[78570.608032] smpboot: CPU 23 is now offline
[78570.611928] smpboot: CPU 22 is now offline
[78570.615337] smpboot: CPU 21 is now offline
[78570.618702] smpboot: CPU 20 is now offline
[78570.622010] smpboot: CPU 19 is now offline
[78570.625121] smpboot: CPU 18 is now offline
[78570.628281] smpboot: CPU 17 is now offline
[78570.631927] smpboot: CPU 16 is now offline
[78570.635851] smpboot: CPU 15 is now offline
[78570.639577] smpboot: CPU 14 is now offline
[78570.643351] smpboot: CPU 13 is now offline
[78570.646904] smpboot: CPU 12 is now offline
[78570.649100] Spectre V2 : Update user space SMT mitigation: STIBP off
[78570.651047] smpboot: CPU 11 is now offline
[78570.653907] smpboot: CPU 10 is now offline
[78570.656891] smpboot: CPU 9 is now offline
[78570.659694] smpboot: CPU 8 is now offline
[78570.662345] smpboot: CPU 7 is now offline
[78570.665210] smpboot: CPU 6 is now offline
[78570.668161] smpboot: CPU 5 is now offline
[78570.671337] smpboot: CPU 4 is now offline
[78570.674355] smpboot: CPU 3 is now offline
[78570.677483] smpboot: CPU 2 is now offline
[78570.680653] smpboot: CPU 1 is now offline
[78570.683992] ACPI: PM: Low-level resume complete
[78570.684013] ACPI: PM: Restoring platform NVS memory
[78570.717521] AMD-Vi: Virtual APIC enabled
[78570.734974] AMD-Vi: Virtual APIC enabled
[78570.734983] LVT offset 0 assigned for vector 0x400
[78570.735712] Enabling non-boot CPUs ...
[78570.735751] smpboot: Booting Node 0 Processor 1 APIC 0x2
[78570.736975] CPU1 is up
[78570.736989] smpboot: Booting Node 0 Processor 2 APIC 0x4
[78570.738023] CPU2 is up
[78570.738033] smpboot: Booting Node 0 Processor 3 APIC 0x6
[78570.739062] CPU3 is up
[78570.739076] smpboot: Booting Node 0 Processor 4 APIC 0x8
[78570.740154] CPU4 is up
[78570.740167] smpboot: Booting Node 0 Processor 5 APIC 0xa
[78570.741257] CPU5 is up
[78570.741269] smpboot: Booting Node 0 Processor 6 APIC 0x10
[78570.742831] CPU6 is up
[78570.742848] smpboot: Booting Node 0 Processor 7 APIC 0x12
[78570.743957] CPU7 is up
[78570.743972] smpboot: Booting Node 0 Processor 8 APIC 0x14
[78570.745256] CPU8 is up
[78570.745270] smpboot: Booting Node 0 Processor 9 APIC 0x16
[78570.746492] CPU9 is up
[78570.746505] smpboot: Booting Node 0 Processor 10 APIC 0x18
[78570.747704] CPU10 is up
[78570.747718] smpboot: Booting Node 0 Processor 11 APIC 0x1a
[78570.748919] CPU11 is up
[78570.748935] smpboot: Booting Node 0 Processor 12 APIC 0x1
[78570.749902] Spectre V2 : Update user space SMT mitigation: STIBP always-on
[78570.749909] CPU12 is up
[78570.749935] smpboot: Booting Node 0 Processor 13 APIC 0x3
[78570.750183] Spurious APIC interrupt (vector 0xFF) on CPU#13, should never happen.
[78570.750874] CPU13 is up
[78570.750883] smpboot: Booting Node 0 Processor 14 APIC 0x5
[78570.751123] Spurious APIC interrupt (vector 0xFF) on CPU#14, should never happen.
[78570.751794] CPU14 is up
[78570.751807] smpboot: Booting Node 0 Processor 15 APIC 0x7
[78570.752045] Spurious APIC interrupt (vector 0xFF) on CPU#15, should never happen.
[78570.752741] CPU15 is up
[78570.752754] smpboot: Booting Node 0 Processor 16 APIC 0x9
[78570.753000] Spurious APIC interrupt (vector 0xFF) on CPU#16, should never happen.
[78570.753726] CPU16 is up
[78570.753737] smpboot: Booting Node 0 Processor 17 APIC 0xb
[78570.753983] Spurious APIC interrupt (vector 0xFF) on CPU#17, should never happen.
[78570.754728] CPU17 is up
[78570.754739] smpboot: Booting Node 0 Processor 18 APIC 0x11
[78570.754993] Spurious APIC interrupt (vector 0xFF) on CPU#18, should never happen.
[78570.755697] CPU18 is up
[78570.755711] smpboot: Booting Node 0 Processor 19 APIC 0x13
[78570.755981] Spurious APIC interrupt (vector 0xFF) on CPU#19, should never happen.
[78570.756809] CPU19 is up
[78570.756822] smpboot: Booting Node 0 Processor 20 APIC 0x15
[78570.757092] Spurious APIC interrupt (vector 0xFF) on CPU#20, should never happen.
[78570.757943] CPU20 is up
[78570.757957] smpboot: Booting Node 0 Processor 21 APIC 0x17
[78570.758228] Spurious APIC interrupt (vector 0xFF) on CPU#21, should never happen.
[78570.759103] CPU21 is up
[78570.759115] smpboot: Booting Node 0 Processor 22 APIC 0x19
[78570.759393] Spurious APIC interrupt (vector 0xFF) on CPU#22, should never happen.
[78570.760286] CPU22 is up
[78570.760300] smpboot: Booting Node 0 Processor 23 APIC 0x1b
[78570.760583] Spurious APIC interrupt (vector 0xFF) on CPU#23, should never happen.
[78570.761526] CPU23 is up
[78570.763802] ACPI: PM: Waking up from system sleep state S3
[78571.043490] pcieport 0000:00:02.2: PME: Spurious native interrupt!
[78571.044145] pcieport 0000:00:02.1: PME: Spurious native interrupt!
[78571.044147] pcieport 0000:00:02.1: PME: Spurious native interrupt!
[78571.044795] [drm] PCIE GART of 1024M enabled (table at 0x000000F5FFC00000).
[78571.044812] amdgpu 0000:70:00.0: amdgpu: PSP is resuming...
[78571.053293] nvme nvme0: D3 entry latency set to 10 seconds
[78571.055429] nvme nvme0: 16/0/0 default/read/poll queues
[78571.066478] amdgpu 0000:70:00.0: amdgpu: reserve 0xa00000 from 0xf5fe000000 for PSP TMR
[78571.124488] amdgpu 0000:70:00.0: amdgpu: RAS: optional ras ta ucode is not available
[78571.130387] amdgpu 0000:70:00.0: amdgpu: RAP: optional rap ta ucode is not available
[78571.130388] amdgpu 0000:70:00.0: amdgpu: SECUREDISPLAY: optional securedisplay ta ucode is not available
[78571.130389] amdgpu 0000:70:00.0: amdgpu: SMU is resuming...
[78571.131650] amdgpu 0000:70:00.0: amdgpu: SMU is resumed successfully!
[78571.131767] amdgpu 0000:70:00.0: amdgpu: kiq ring mec 2 pipe 1 q 0
[78571.135140] amdgpu 0000:70:00.0: amdgpu: [drm] DMUB hardware initialized: version=0x05002E00
[78571.204859] r8169 0000:08:00.0 enp8s0: Link is Down
[78571.311586] usb 2-3: reset SuperSpeed USB device number 3 using xhci_hcd
[78571.349925] ata8: SATA link down (SStatus 0 SControl 300)
[78571.350070] ata1: SATA link down (SStatus 0 SControl 300)
[78571.350070] ata3: SATA link down (SStatus 0 SControl 300)
[78571.351036] ata7: SATA link down (SStatus 0 SControl 300)
[78571.351045] ata2: SATA link down (SStatus 0 SControl 300)
[78571.351050] ata4: SATA link down (SStatus 0 SControl 300)
[78571.358065] ata5: SATA link down (SStatus 0 SControl 300)
[78571.358948] ata6: SATA link down (SStatus 0 SControl 300)
[78571.521907] usb 1-10: reset high-speed USB device number 8 using xhci_hcd
[78571.671769] amdgpu 0000:70:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[78571.671773] amdgpu 0000:70:00.0: amdgpu: ring gfx_0.1.0 uses VM inv eng 1 on hub 0
[78571.671774] amdgpu 0000:70:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 4 on hub 0
[78571.671775] amdgpu 0000:70:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 5 on hub 0
[78571.671776] amdgpu 0000:70:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[78571.671776] amdgpu 0000:70:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[78571.671777] amdgpu 0000:70:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[78571.671777] amdgpu 0000:70:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[78571.671777] amdgpu 0000:70:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[78571.671778] amdgpu 0000:70:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[78571.671778] amdgpu 0000:70:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 12 on hub 0
[78571.671779] amdgpu 0000:70:00.0: amdgpu: ring sdma0 uses VM inv eng 13 on hub 0
[78571.671779] amdgpu 0000:70:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
[78571.671780] amdgpu 0000:70:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
[78571.671780] amdgpu 0000:70:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
[78571.671781] amdgpu 0000:70:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 8
[78572.313114] usb 1-3: reset high-speed USB device number 32 using xhci_hcd
[78573.905088] usb 1-3.2: reset full-speed USB device number 33 using xhci_hcd
[78574.249088] usb 1-3.3: reset high-speed USB device number 34 using xhci_hcd
[78574.357838] r8169 0000:08:00.0 enp8s0: Link is Up - 1Gbps/Full - flow control off
[78574.407639] PM: resume devices took 3.363 seconds
[78574.407839] OOM killer enabled.
[78574.407839] Restarting tasks: Starting
[78574.407930] usb 1-1: USB disconnect, device number 45
[78574.409681] Restarting tasks: Done
[78574.409691] efivarfs: resyncing variable state
[78574.411410] efivarfs: finished resyncing variable state
[78574.411533] random: crng reseeded on system resumption
[78574.411541] PM: suspend exit
[78574.458681] pci_bus 0000:03: Allocating resources
[78574.459969] r8169 0000:08:00.0 enp8s0: Link is Down
[78574.493783] Realtek Internal NBASE-T PHY r8169-0-800:00: attached PHY driver (mii_bus:phy_addr=r8169-0-800:00, irq=MAC)
[78574.610769] usb 1-12: new high-speed USB device number 50 using xhci_hcd
[78574.650779] r8169 0000:08:00.0 enp8s0: Link is Down
[78574.808451] usb 1-3.2: usbfs: process 118735 (pcscd) did not claim interface 2 before use
[78577.827087] r8169 0000:08:00.0 enp8s0: Link is Up - 1Gbps/Full - flow control off
[78579.565584] usb 1-10: 3:3: usb_set_interface failed (-110)
[78580.246762] usb 1-12: device descriptor read/64, error -110
[78592.306793] usb 1-10: 3:0: usb_set_interface failed (-110)
[78596.575830] usb 1-12: device descriptor read/64, error -110
[78596.859775] usb 1-12: new high-speed USB device number 51 using xhci_hcd
[78602.205744] usb 1-12: device descriptor read/64, error -110
[78618.077593] usb 1-12: device descriptor read/64, error -110
[78618.189450] usb usb1-port12: attempt power cycle
[78618.634545] usb 1-12: new high-speed USB device number 52 using xhci_hcd
[78623.434074] usb 1-12: Device not responding to setup address.
[78628.445177] usb 1-12: Device not responding to setup address.
[78628.655189] usb 1-12: device not accepting address 52, error -71
[78628.835461] usb 1-12: new high-speed USB device number 53 using xhci_hcd
[78633.635279] usb 1-12: Device not responding to setup address.
[78638.646382] usb 1-12: Device not responding to setup address.
[78638.861374] usb 1-12: device not accepting address 53, error -71
[78638.868256] usb usb1-port12: unable to enumerate USB device
[89497.001316] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[89497.014971] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[89497.269023] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[89497.278978] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[89497.279055] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[89497.279123] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[89497.279127] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[89497.946289] PM: suspend entry (deep)
[89498.162309] Filesystems sync: 0.216 seconds
[89498.169595] Freezing user space processes
[89498.171790] Freezing user space processes completed (elapsed 0.002 seconds)
[89498.171795] OOM killer disabled.
[89498.171795] Freezing remaining freezable tasks
[89498.172736] Freezing remaining freezable tasks completed (elapsed 0.000 seconds)
[89498.172773] printk: Suspending console(s) (use no_console_suspend to debug)
[89498.182727] queueing ieee80211 work while going to suspend
[89498.199672] r8169 0000:08:00.0 enp8s0: Link is Down
[89499.471309] PM: suspend devices took 1.298 seconds
[89499.603784] ACPI: PM: Preparing to enter system sleep state S3
[89500.110982] ACPI: PM: Saving platform NVS memory
[89500.111406] Disabling non-boot CPUs ...
[89500.113763] smpboot: CPU 23 is now offline
[89500.117558] smpboot: CPU 22 is now offline
[89500.121024] smpboot: CPU 21 is now offline
[89500.124228] smpboot: CPU 20 is now offline
[89500.127315] smpboot: CPU 19 is now offline
[89500.130675] smpboot: CPU 18 is now offline
[89500.133693] smpboot: CPU 17 is now offline
[89500.137464] smpboot: CPU 16 is now offline
[89500.141206] smpboot: CPU 15 is now offline
[89500.144687] smpboot: CPU 14 is now offline
[89500.148069] smpboot: CPU 13 is now offline
[89500.151822] smpboot: CPU 12 is now offline
[89500.153629] Spectre V2 : Update user space SMT mitigation: STIBP off
[89500.155427] smpboot: CPU 11 is now offline
[89500.158489] smpboot: CPU 10 is now offline
[89500.161293] smpboot: CPU 9 is now offline
[89500.164090] smpboot: CPU 8 is now offline
[89500.166842] smpboot: CPU 7 is now offline
[89500.169657] smpboot: CPU 6 is now offline
[89500.172208] smpboot: CPU 5 is now offline
[89500.175266] smpboot: CPU 4 is now offline
[89500.178255] smpboot: CPU 3 is now offline
[89500.181086] smpboot: CPU 2 is now offline
[89500.185874] smpboot: CPU 1 is now offline
[89500.188923] ACPI: PM: Low-level resume complete
[89500.188944] ACPI: PM: Restoring platform NVS memory
[89500.220021] AMD-Vi: Virtual APIC enabled
[89500.237476] AMD-Vi: Virtual APIC enabled
[89500.237485] LVT offset 0 assigned for vector 0x400
[89500.238379] Enabling non-boot CPUs ...
[89500.238416] smpboot: Booting Node 0 Processor 1 APIC 0x2
[89500.239674] CPU1 is up
[89500.239689] smpboot: Booting Node 0 Processor 2 APIC 0x4
[89500.240591] CPU2 is up
[89500.240604] smpboot: Booting Node 0 Processor 3 APIC 0x6
[89500.241518] CPU3 is up
[89500.241530] smpboot: Booting Node 0 Processor 4 APIC 0x8
[89500.242498] CPU4 is up
[89500.242512] smpboot: Booting Node 0 Processor 5 APIC 0xa
[89500.243465] CPU5 is up
[89500.243481] smpboot: Booting Node 0 Processor 6 APIC 0x10
[89500.245017] CPU6 is up
[89500.245033] smpboot: Booting Node 0 Processor 7 APIC 0x12
[89500.246275] CPU7 is up
[89500.246289] smpboot: Booting Node 0 Processor 8 APIC 0x14
[89500.247468] CPU8 is up
[89500.247481] smpboot: Booting Node 0 Processor 9 APIC 0x16
[89500.248628] CPU9 is up
[89500.248640] smpboot: Booting Node 0 Processor 10 APIC 0x18
[89500.249796] CPU10 is up
[89500.249809] smpboot: Booting Node 0 Processor 11 APIC 0x1a
[89500.250970] CPU11 is up
[89500.250987] smpboot: Booting Node 0 Processor 12 APIC 0x1
[89500.251942] Spectre V2 : Update user space SMT mitigation: STIBP always-on
[89500.251953] CPU12 is up
[89500.251978] smpboot: Booting Node 0 Processor 13 APIC 0x3
[89500.252216] Spurious APIC interrupt (vector 0xFF) on CPU#13, should never happen.
[89500.252896] CPU13 is up
[89500.252906] smpboot: Booting Node 0 Processor 14 APIC 0x5
[89500.253146] Spurious APIC interrupt (vector 0xFF) on CPU#14, should never happen.
[89500.253809] CPU14 is up
[89500.253820] smpboot: Booting Node 0 Processor 15 APIC 0x7
[89500.254065] Spurious APIC interrupt (vector 0xFF) on CPU#15, should never happen.
[89500.254752] CPU15 is up
[89500.254763] smpboot: Booting Node 0 Processor 16 APIC 0x9
[89500.255010] Spurious APIC interrupt (vector 0xFF) on CPU#16, should never happen.
[89500.255734] CPU16 is up
[89500.255744] smpboot: Booting Node 0 Processor 17 APIC 0xb
[89500.255993] Spurious APIC interrupt (vector 0xFF) on CPU#17, should never happen.
[89500.256750] CPU17 is up
[89500.256761] smpboot: Booting Node 0 Processor 18 APIC 0x11
[89500.257008] Spurious APIC interrupt (vector 0xFF) on CPU#18, should never happen.
[89500.257722] CPU18 is up
[89500.257737] smpboot: Booting Node 0 Processor 19 APIC 0x13
[89500.258007] Spurious APIC interrupt (vector 0xFF) on CPU#19, should never happen.
[89500.258816] CPU19 is up
[89500.258832] smpboot: Booting Node 0 Processor 20 APIC 0x15
[89500.259106] Spurious APIC interrupt (vector 0xFF) on CPU#20, should never happen.
[89500.259957] CPU20 is up
[89500.259971] smpboot: Booting Node 0 Processor 21 APIC 0x17
[89500.260244] Spurious APIC interrupt (vector 0xFF) on CPU#21, should never happen.
[89500.261096] CPU21 is up
[89500.261109] smpboot: Booting Node 0 Processor 22 APIC 0x19
[89500.261382] Spurious APIC interrupt (vector 0xFF) on CPU#22, should never happen.
[89500.262261] CPU22 is up
[89500.262274] smpboot: Booting Node 0 Processor 23 APIC 0x1b
[89500.262556] Spurious APIC interrupt (vector 0xFF) on CPU#23, should never happen.
[89500.263461] CPU23 is up
[89500.265702] ACPI: PM: Waking up from system sleep state S3
[89500.544091] pcieport 0000:00:02.2: PME: Spurious native interrupt!
[89500.545089] pcieport 0000:00:02.1: PME: Spurious native interrupt!
[89500.545094] pcieport 0000:00:02.1: PME: Spurious native interrupt!
[89500.545459] [drm] PCIE GART of 1024M enabled (table at 0x000000F5FFC00000).
[89500.545475] amdgpu 0000:70:00.0: amdgpu: PSP is resuming...
[89500.546987] nvme nvme0: D3 entry latency set to 10 seconds
[89500.548748] nvme nvme0: 16/0/0 default/read/poll queues
[89500.567065] amdgpu 0000:70:00.0: amdgpu: reserve 0xa00000 from 0xf5fe000000 for PSP TMR
[89500.624164] amdgpu 0000:70:00.0: amdgpu: RAS: optional ras ta ucode is not available
[89500.630063] amdgpu 0000:70:00.0: amdgpu: RAP: optional rap ta ucode is not available
[89500.630064] amdgpu 0000:70:00.0: amdgpu: SECUREDISPLAY: optional securedisplay ta ucode is not available
[89500.630065] amdgpu 0000:70:00.0: amdgpu: SMU is resuming...
[89500.631333] amdgpu 0000:70:00.0: amdgpu: SMU is resumed successfully!
[89500.631450] amdgpu 0000:70:00.0: amdgpu: kiq ring mec 2 pipe 1 q 0
[89500.634979] amdgpu 0000:70:00.0: amdgpu: [drm] DMUB hardware initialized: version=0x05002E00
[89500.708932] r8169 0000:08:00.0 enp8s0: Link is Down
[89500.814555] usb 2-3: reset SuperSpeed USB device number 3 using xhci_hcd
[89500.853182] ata7: SATA link down (SStatus 0 SControl 300)
[89500.853190] ata4: SATA link down (SStatus 0 SControl 300)
[89500.853200] ata1: SATA link down (SStatus 0 SControl 300)
[89500.853206] ata6: SATA link down (SStatus 0 SControl 300)
[89500.853217] ata3: SATA link down (SStatus 0 SControl 300)
[89500.853225] ata8: SATA link down (SStatus 0 SControl 300)
[89500.853245] ata5: SATA link down (SStatus 0 SControl 300)
[89500.853422] ata2: SATA link down (SStatus 0 SControl 300)
[89501.024953] usb 1-10: reset high-speed USB device number 8 using xhci_hcd
[89501.171727] amdgpu 0000:70:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[89501.171732] amdgpu 0000:70:00.0: amdgpu: ring gfx_0.1.0 uses VM inv eng 1 on hub 0
[89501.171732] amdgpu 0000:70:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 4 on hub 0
[89501.171733] amdgpu 0000:70:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 5 on hub 0
[89501.171734] amdgpu 0000:70:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[89501.171734] amdgpu 0000:70:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[89501.171735] amdgpu 0000:70:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[89501.171735] amdgpu 0000:70:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[89501.171735] amdgpu 0000:70:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[89501.171736] amdgpu 0000:70:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[89501.171736] amdgpu 0000:70:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 12 on hub 0
[89501.171737] amdgpu 0000:70:00.0: amdgpu: ring sdma0 uses VM inv eng 13 on hub 0
[89501.171737] amdgpu 0000:70:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
[89501.171738] amdgpu 0000:70:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
[89501.171739] amdgpu 0000:70:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
[89501.171739] amdgpu 0000:70:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 8

here is a script that resets USB host controllers (got on internet)

#!/usr/bin/env bash
# Resets all USB host controllers of the system.
# This is useful in case one stopped working
# due to a faulty device having been connected to it.

base="/sys/bus/pci/drivers"
sleep_secs="1"

# This might find a sub-set of these:
# * 'ohci_hcd' - USB 3.0
# * 'ehci-pci' - USB 2.0
# * 'xhci_hcd' - USB 3.0
echo "Looking for USB standards ..."
for usb_std in "$base/"?hci[-_]?c*
do
    echo "* USB standard '$usb_std' ..."
    for dev_path in "$usb_std/"*:*
    do
        dev="$(basename "$dev_path")"
        echo "  - Resetting device '$dev' ..."
        printf '%s' "$dev" | sudo tee "$usb_std/unbind" > /dev/null
        sleep "$sleep_secs"
        printf '%s' "$dev" | sudo tee "$usb_std/bind" > /dev/null
        echo "    done."
    done
    echo "  done."
done
echo "done."

This behaviour is going on for a month or so (hard to say exactly) but it sure didn’t happen before. I also think it is not a hardware issue since reset helps and it didn’t happen before.

Fedora 43/KDE Plasma if that matters.