I have had and am now facing this issue with the USB's randomly disonnecting again. I had my system working great for many months without seeing any of this until last week with a possible update and etc. This issue with the USB's has been around since Ryzen and isn't on any specific version CPU and etc of Ryzen.
I am trying out the disabling autosuspend as well as I am now in the process of retracing my steps to prevent the USB disconnects and etc. Here is were I am now. I always follow 'Easy Linux Tips Project' pages and I came across this which is a step I remember following in the past few months (Especially Step 1 'PSU Idle Control').
https://easylinuxtipsproject.blogspot.c ... .html#ID27 Step 1 in their 'Fix system freezing trouble with AMD Ryzen CPU's' doesn't just pertain to CPU's and Freezes as it states. This can also prevent other issue across the system. It's your choice if you wish to do Step II in their guide. but be sure to backup/timeshift prior.
I am now in the waiting stage to see how this pans out as a solution. I will update as soon I see any results.
Update: So far since I posted the above I decided to remove the disable 'autosuspend' and test out the PSU Idle Control on it's own and allow the system to go idle and etc. Since then I haven't seen any usb disconnects after performing the PSU Idle Control changes in the BIOS. My system has been running straight for 9 hours and 21 minutes. I have been working with my system as well as allow it to be idle. I will continue to test this and see if this continues to be true.
Code: Select all
inxi -Fxxx
System:
Host: J-linux-MS-7C02 Kernel: 5.4.0-67-generic x86_64 bits: 64
compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1
dm: LightDM 1.30.0 Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal
Machine:
Type: Desktop Mobo: Micro-Star model: B450 TOMAHAWK (MS-7C02) v: 1.0
serial: <superuser/root required> UEFI: American Megatrends v: 1.E0
date: 06/09/2020
CPU:
Topology: 6-Core model: AMD Ryzen 5 1600 bits: 64 type: MT MCP arch: Zen
rev: 1 L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 76787
Speed: 3259 MHz min/max: 1550/3200 MHz boost: enabled Core speeds (MHz):
1: 2794 2: 3149 3: 3372 4: 3387 5: 2798 6: 3396 7: 3369 8: 3390 9: 2771
10: 3187 11: 2780 12: 3397
Graphics:
Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: XFX Pine driver: amdgpu v: kernel bus ID: 26:00.0
chip ID: 1002:67df
Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati
unloaded: fbdev,modesetting,vesa resolution: 2560x1080~60Hz
OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.35.0
5.4.0-67-generic LLVM 10.0.1)
v: 4.6 Mesa 20.1.5 direct render: Yes
Audio:
Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
vendor: XFX Pine driver: snd_hda_intel v: kernel bus ID: 26:00.1
chip ID: 1002:aaf0
Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus ID: 28:00.3 chip ID: 1022:1457
Sound Server: ALSA v: k5.4.0-67-generic
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus ID: 22:00.0
chip ID: 10ec:8168
IF: enp34s0 state: up speed: 100 Mbps duplex: full mac: 00:d8:61:2e:54:ea
Drives:
Local Storage: total: 4.20 TiB used: 2.06 TiB (49.0%)
ID-1: /dev/sda vendor: Seagate model: ST4000VN008-2DR166 size: 3.64 TiB
speed: 6.0 Gb/s rotation: 5980 rpm serial: ZDH9AV0T rev: SC60 scheme: GPT
ID-2: /dev/sdb vendor: Crucial model: CT120BX500SSD1 size: 111.79 GiB
speed: 6.0 Gb/s serial: 2033E40BAE5F rev: R013 scheme: GPT
ID-3: /dev/sdc vendor: SanDisk model: SDSSDA120G size: 111.79 GiB
speed: 6.0 Gb/s serial: 160873403862 rev: 10RL scheme: GPT
ID-4: /dev/sde vendor: SanDisk model: SDSSDH3 250G size: 232.89 GiB
speed: 6.0 Gb/s serial: 202947801317 rev: 20RL scheme: GPT
Partition:
ID-1: / size: 36.16 GiB used: 15.98 GiB (44.2%) fs: ext4 dev: /dev/sde2
ID-2: /home size: 69.17 GiB used: 31.09 GiB (44.9%) fs: ext4
dev: /dev/sde3
ID-3: swap-1 size: 3.72 GiB used: 4.8 MiB (0.1%) fs: swap dev: /dev/sde4
Sensors:
System Temperatures: cpu: 49.8 C mobo: N/A gpu: amdgpu temp: 42 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 767
Info:
Processes: 327 Uptime: 9h 21m Memory: 15.65 GiB used: 4.02 GiB (25.7%)
Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 8/9
Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
Update: @19hours and 32minutes still running strong.
Code: Select all
Info:
Sensors:
System Temperatures: cpu: 27.0 C mobo: N/A gpu: amdgpu temp: 34 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 756
Info:
Processes: 322 Uptime: 19h 32m Memory: 15.65 GiB used: 3.57 GiB (22.8%)
Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 8/9
Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
lsusb -t Before USB Disconnects
Code: Select all
lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
|__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
|__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 9: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 9: Dev 3, If 1, Class=Human Interface Device, Driver=usbfs, 12M
|__ Port 9: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 9: Dev 3, If 3, Class=Human Interface Device, Driver=usbfs, 12M
dmesg:
Code: Select all
[ 0.418948] VFIO - User Level meta-driver version: 0.3
[ 0.419000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.419002] ehci-pci: EHCI PCI platform driver
[ 0.419009] ehci-platform: EHCI generic platform driver
[ 0.419014] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.419015] ohci-pci: OHCI PCI platform driver
[ 0.419022] ohci-platform: OHCI generic platform driver
[ 0.419026] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.419108] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 0.419112] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 1
[ 0.474416] xhci_hcd 0000:03:00.0: hcc params 0x0200ef81 hci version 0x110 quirks 0x0000000000000410
[ 0.474574] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 0.474575] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.474577] usb usb1: Product: xHCI Host Controller
[ 0.474578] usb usb1: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[ 0.474579] usb usb1: SerialNumber: 0000:03:00.0
[ 0.474676] hub 1-0:1.0: USB hub found
[ 0.474688] hub 1-0:1.0: 10 ports detected
[ 0.475054] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 0.475056] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 2
[ 0.475058] xhci_hcd 0000:03:00.0: Host supports USB 3.1 Enhanced SuperSpeed
[ 0.475105] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 0.475119] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[ 0.475120] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.475121] usb usb2: Product: xHCI Host Controller
[ 0.475122] usb usb2: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[ 0.475122] usb usb2: SerialNumber: 0000:03:00.0
[ 0.475181] hub 2-0:1.0: USB hub found
[ 0.475187] hub 2-0:1.0: 4 ports detected
[ 0.475452] xhci_hcd 0000:27:00.3: xHCI Host Controller
[ 0.475455] xhci_hcd 0000:27:00.3: new USB bus registered, assigned bus number 3
[ 0.475551] xhci_hcd 0000:27:00.3: hcc params 0x0270f665 hci version 0x100 quirks 0x0000000040000410
[ 0.475647] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 0.475648] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.475649] usb usb3: Product: xHCI Host Controller
[ 0.475650] usb usb3: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[ 0.475650] usb usb3: SerialNumber: 0000:27:00.3
[ 0.475707] hub 3-0:1.0: USB hub found
[ 0.475715] hub 3-0:1.0: 4 ports detected
[ 0.475837] xhci_hcd 0000:27:00.3: xHCI Host Controller
[ 0.475839] xhci_hcd 0000:27:00.3: new USB bus registered, assigned bus number 4
[ 0.475841] xhci_hcd 0000:27:00.3: Host supports USB 3.0 SuperSpeed
[ 0.475850] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 0.475864] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[ 0.475864] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.475865] usb usb4: Product: xHCI Host Controller
[ 0.475866] usb usb4: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[ 0.475867] usb usb4: SerialNumber: 0000:27:00.3
[ 0.475919] hub 4-0:1.0: USB hub found
[ 0.475925] hub 4-0:1.0: 4 ports detected
I will now be switching the PSU Idle Control back to default to test this and see if I get USB Disconnects to occur again.
dmesg: With PSU Idle Control to Default Before any usb disconnects occur:
Code: Select all
0.420121] VFIO - User Level meta-driver version: 0.3
[ 0.420179] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.420182] ehci-pci: EHCI PCI platform driver
[ 0.420188] ehci-platform: EHCI generic platform driver
[ 0.420193] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.420194] ohci-pci: OHCI PCI platform driver
[ 0.420200] ohci-platform: OHCI generic platform driver
[ 0.420203] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.420291] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 0.420295] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 1
[ 0.475601] xhci_hcd 0000:03:00.0: hcc params 0x0200ef81 hci version 0x110 quirks 0x0000000000000410
[ 0.475759] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 0.475760] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.475761] usb usb1: Product: xHCI Host Controller
[ 0.475762] usb usb1: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[ 0.475763] usb usb1: SerialNumber: 0000:03:00.0
[ 0.475840] hub 1-0:1.0: USB hub found
[ 0.475852] hub 1-0:1.0: 10 ports detected
[ 0.476211] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 0.476213] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 2
[ 0.476215] xhci_hcd 0000:03:00.0: Host supports USB 3.1 Enhanced SuperSpeed
[ 0.476258] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 0.476272] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[ 0.476273] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.476274] usb usb2: Product: xHCI Host Controller
[ 0.476275] usb usb2: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[ 0.476275] usb usb2: SerialNumber: 0000:03:00.0
[ 0.476358] hub 2-0:1.0: USB hub found
[ 0.476365] hub 2-0:1.0: 4 ports detected
[ 0.476632] xhci_hcd 0000:27:00.3: xHCI Host Controller
[ 0.476635] xhci_hcd 0000:27:00.3: new USB bus registered, assigned bus number 3
[ 0.476727] xhci_hcd 0000:27:00.3: hcc params 0x0270f665 hci version 0x100 quirks 0x0000000040000410
[ 0.476820] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 0.476821] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.476822] usb usb3: Product: xHCI Host Controller
[ 0.476822] usb usb3: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[ 0.476823] usb usb3: SerialNumber: 0000:27:00.3
[ 0.476878] hub 3-0:1.0: USB hub found
[ 0.476883] hub 3-0:1.0: 4 ports detected
[ 0.477017] xhci_hcd 0000:27:00.3: xHCI Host Controller
[ 0.477019] xhci_hcd 0000:27:00.3: new USB bus registered, assigned bus number 4
[ 0.477021] xhci_hcd 0000:27:00.3: Host supports USB 3.0 SuperSpeed
[ 0.477035] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 0.477054] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
[ 0.477055] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.477055] usb usb4: Product: xHCI Host Controller
[ 0.477056] usb usb4: Manufacturer: Linux 5.4.0-67-generic xhci-hcd
[ 0.477057] usb usb4: SerialNumber: 0000:27:00.3
[ 0.477109] hub 4-0:1.0: USB hub found
[ 0.477115] hub 4-0:1.0: 4 ports detected
lsusb -t: With PSU Idle Control to Default Before any usb disconnects occur:
Code: Select all
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
|__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 480M
|__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 8: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 8: Dev 3, If 1, Class=Human Interface Device, Driver=usbfs, 12M
|__ Port 8: Dev 3, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 8: Dev 3, If 3, Class=Human Interface Device, Driver=usbfs, 12M
Update: March 19 @1:00PM
With PSU Idle Control Set to Default I had my first USB Disconnect
I am now testing with PSU Idle Control set to 'Typical Current Idle'. I will have it running for a full 24 hours or until a failure occur's.
Update: March 21 @11:45AM
I haven't had one usb disconnect since I set PSU Idle Control to 'Typical Current Idle'. Although I will still be testing this to make sure. But this is a positive note on my end. Hope it works for others.