xhci-hcd.4.auto: Port resume timed out, leads to modem disappearing and not recovering
Librem 5 with PureOS, kernel version 6.0.0-1-librem5.
Yesterday evening it happened that the modem disappeared, it did not recover until I rebooted in the morning.
The journalctl
for the time when the modem disappeared looks as follows:
nov 27 21:17:52 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 27 21:18:03 pureos kernel: xhci-hcd xhci-hcd.4.auto: xHCI host not responding to stop endpoint command
nov 27 21:18:03 pureos kernel: xhci-hcd xhci-hcd.4.auto: xHCI host controller not responding, assume dead
nov 27 21:18:03 pureos kernel: xhci-hcd xhci-hcd.4.auto: HC died; cleaning up
nov 27 21:18:03 pureos kernel: usb 1-1: USB disconnect, device number 2
nov 27 21:18:03 pureos kernel: usb 1-1.1: USB disconnect, device number 3
nov 27 21:18:03 pureos usbguard-daemon[686]: Ignoring unknown UEvent action: sysfs_devpath=/devices/platform/soc@0/38200000.usb/xhci-hcd.4.auto/usb1 action=offline
nov 27 21:18:03 pureos kernel: usb 1-1.2: USB disconnect, device number 26
nov 27 21:18:03 pureos kernel: option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
nov 27 21:18:03 pureos kernel: option 1-1.2:1.0: device disconnected
[...]
So it starts with "Port resume timed out".
Checking the log from earlier shows that it has happened many times before:
purism@pureos:~$ sudo journalctl | grep "resume timed out"
sep 21 11:59:05 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
sep 27 13:56:25 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
okt 04 15:26:17 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
okt 23 22:15:58 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 04 08:02:15 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 09 15:27:31 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 10 15:17:27 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 10 22:27:47 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 11 09:51:34 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 11 17:11:04 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 12 13:25:30 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 14 09:08:59 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 14 16:02:50 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 18 03:54:53 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 18 05:35:09 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 18 19:45:27 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 24 14:23:43 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 24 20:20:14 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 26 04:10:07 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
nov 27 21:17:52 pureos kernel: xhci-hcd xhci-hcd.4.auto: Port resume timed out, port 1-1: 0xfe3
Having looked closer at a few of those earlier times it seems the modem did not recover also in the other cases.
The "xHCI host controller not responding, assume dead" message sounds like the kernel has given up hope about it. But everything works again after reboot.
If there is a timeout value like the number of seconds allowed for resume or similar, could it be that the timeout is just too short, that the resume could succeed if given a more generous timeout value?