Bug 211097 - Resume from suspend sometimes makes some programs freeze for 30s
Summary: Resume from suspend sometimes makes some programs freeze for 30s
Status: RESOLVED OBSOLETE
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: Default virtual assignee for Drivers/USB
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-08 20:52 UTC by Anthony Vital
Modified: 2021-07-14 17:21 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.10
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg (127.08 KB, text/plain)
2021-01-08 20:52 UTC, Anthony Vital
Details
lsusb (31.40 KB, text/plain)
2021-01-08 20:53 UTC, Anthony Vital
Details

Description Anthony Vital 2021-01-08 20:52:47 UTC
Created attachment 294577 [details]
dmesg

Sometimes (it seems random but let's say about 50% of the time), when my system resumes from suspend, some programs are frozen for about 30s, then become usable again after that. 
When I say "some programs", I actually mean 2 programs in particular: plasmashell and lsusb. When they are frozen, I can use pretty much any other program in the meantime, firefox, dolphin, kwin, etc... without any visible problem.


What I noticed is that after a freeze, dmesg always ouputs the following messages several times:
[43629.789713] usb usb3-port4: Cannot enable. Maybe the USB cable is bad?
[43633.849690] usb usb3-port4: Cannot enable. Maybe the USB cable is bad?
[43633.849786] usb usb3-port4: unable to enumerate USB device
And when I check lsusb on that bus it say: 
 Hub Port Status:
   Port 1: 0000.02a0 5Gbps power Rx.Detect
   Port 2: 0000.02a0 5Gbps power Rx.Detect
   Port 3: 0000.02b0 5Gbps power Rx.Detect RESET
   Port 4: 0000.02b0 5Gbps power Rx.Detect RESET
I don't know what RESET is exactly (a state I assume), but when I resume and the issue doesn't happen, I get this ouput instead:
 Hub Port Status:
   Port 1: 0000.02a0 5Gbps power Rx.Detect
   Port 2: 0000.02a0 5Gbps power Rx.Detect
   Port 3: 0000.02b0 5Gbps power Rx.Detect
   Port 4: 0000.02b0 5Gbps power Rx.Detect


Additional info:
The bug can happen wether something is plugged in the usb ports or not. (Besides the webcam and the touchscreen, always plugged internally)
The bug was introduced in kernel 5.9.0. I've been able to reproduce with every kernel release (from the archlinux repositories) after that. I can't reproduce with an older kernel.
I'm not sure if this this is actually usb related, but given what I've written above, I tend to think so. But feel free to reassign to another component if needed.
Comment 1 Anthony Vital 2021-01-08 20:53:28 UTC
Created attachment 294579 [details]
lsusb
Comment 2 Anthony Vital 2021-07-14 17:21:07 UTC
I haven't been able to reproduce this for a few weeks, I assume this has been fixed in one of the recent releases. Closing.

Note You need to log in before you can comment on or make changes to this bug.