syslog flooded with these USB messages, but device doesn't exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-signed-hwe (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
For a while now (several kernels back starting with 4.15, IIRC) syslog and dmesg have been flooded with these and similar messages:
[914961.613273] usb 3-3: Failed to suspend device, error -71
[914961.613483] usb 3-3: Failed to suspend device, error -71
[914964.741387] usb 3-3: Failed to suspend device, error -71
[914964.741706] usb 3-3: Failed to suspend device, error -71
[914968.189402] usb 3-3: Failed to suspend device, error -71
[914968.189715] usb 3-3: Failed to suspend device, error -71
There's nothing on usb 3-3, just a port:
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
So I tried disabling autosuspend:
root@galactica:~# cat /sys/bus/
0
root@galactica:~# echo 1 > /sys/bus/
root@galactica:~# cat /sys/bus/
1
but I still get the "Failed to suspend messages" flooding syslog
According to the kernel documentation, I should be able to set power/control to on to disable autosuspend:
https:/
power/control
This file contains one of two words: on or auto. You can write those words to the file to change the device’s setting.
on means that the device should be resumed and autosuspend is not allowed. (Of course, system suspends are still allowed.)
auto is the normal state in which the kernel is allowed to autosuspend and autoresume the device.
(In kernels up to 2.6.32, you could also specify suspend, meaning that the device should remain suspended and autoresume was not allowed. This setting is no longer supported.)
power/autosuspe
This file contains an integer value, which is the number of milliseconds the device should remain idle before the kernel will autosuspend it (the idle-delay time). The default is 2000. 0 means to autosuspend as soon as the device becomes idle, and negative values mean never to autosuspend. You can write a number to the file to change the autosuspend idle-delay time.
Writing -1 to power/autosuspe
So I tried both of these suggestions:
root@galactica:~# cat /sys/bus/
on
root@galactica:~# cat /sys/bus/
-1
but the Failed to Suspend messages persist.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.0.0-31-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
CurrentDesktop: Unity:Unity7:ubuntu
Date: Mon Oct 28 11:10:15 2019
InstallationDate: Installed on 2016-02-11 (1354 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160210)
SourcePackage: linux-signed-hwe
UpgradeStatus: No upgrade log present (probably fresh install)
Note, this was a problem on the 4.15 GA kernel as well. It's entirely reasonable that this is something on that USB controller going bad, however, none of the options I can find to disable that port work either.