I have a USB2 device (it holds a Sierra Wireless EM7565 for LTE internet access) connected to a Pi4. Nothing else is connected to the USB ports on the Pi4. The Pi4 has also has an ethernet cable attached & power supply. That's it.
The problem below started appearing after linux-raspberrypi4-4.19.83, where I've confirmed that it is reproducible in .86 and .88, but haven't yet confirmed if it also occurs in .84 or .85:
$this->bbcode_second_pass_code('', '[ 466.401527] xhci_hcd 0000:01:00.0: xHCI host not responding to stop endpoint command.
[ 466.417572] xhci_hcd 0000:01:00.0: Host halt failed, -110
[ 466.417598] xhci_hcd 0000:01:00.0: xHCI host controller not responding, assume dead
[ 466.417931] xhci_hcd 0000:01:00.0: HC died; cleaning up
[ 466.418382] usb 1-1: USB disconnect, device number 2
[ 466.418411] usb 1-1.4: USB disconnect, device number 3
[ 466.418434] usb 1-1.4.5: USB disconnect, device number 4
[ 466.419019] qcserial ttyUSB0: Qualcomm USB modem converter now disconnected from ttyUSB0
[ 466.419142] qcserial 1-1.4.5:1.0: device disconnected
[ 466.419946] qmi_wwan 1-1.4.5:1.8: Error submitting int urb - -19
[ 466.425191] qcserial ttyUSB1: Qualcomm USB modem converter now disconnected from ttyUSB1
[ 466.425311] qcserial 1-1.4.5:1.2: device disconnected
[ 466.425855] qcserial ttyUSB2: Qualcomm USB modem converter now disconnected from ttyUSB2
[ 466.425946] qcserial 1-1.4.5:1.3: device disconnected
[ 466.426323] qmi_wwan 1-1.4.5:1.8 wwan0: unregister 'qmi_wwan' usb-0000:01:00.0-1.4.5, WWAN/QMI device
')
I've tried the following combinations and the problem is always reproducible after after 4.19.83:
- Plug the USB2 device into a Pi4 USB3 port
- Plug the USB2 device into a Pi4 USB2 port
- Plug the USB2 device into a powered USB2 hub which is then plugged into a Pi4 USB2 port
Any ideas? Workarounds?
I stumbled upon this patch in 5.3:
https://github.com/chewitt/linux/commit ... 978b603935
Which was referenced here, where the person was hitting the XHCI problem with a USB mouse / keyboard ("the problem also occurs without the disk ... At the moment there is just a mouse and a keyboard connected ..."):
https://forum.manjaro.org/t/kernel-xhci ... and/116108
Where this is a summary of the problem for an Amlogic device, so no idea if it might apply to Pi4:
$this->bbcode_second_pass_quote('', 'I')n certain circumstances, the XHCI SuperSpeed instance in park mode
can fail to recover, thus on Amlogic G12A/G12B/SM1 SoCs when there is high
load on the single XHCI SuperSpeed instance, the controller can crash like:
xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command.
xhci-hcd xhci-hcd.0.auto: Host halt failed, -110
xhci-hcd xhci-hcd.0.auto: xHCI host controller not responding, assume dead
xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command.
hub 2-1.1:1.0: hub_ext_port_status failed (err = -22)
xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
usb 2-1.1-port1: cannot reset (err = -22)
Setting the PARKMODE_DISABLE_SS bit in the DWC3_USB3_GUCTL1 mitigates
the issue. The bit is described as :
"When this bit is set to '1' all SS bus instances in park mode are disabled"
https://lore.kernel.org/linux-amlogic/2 ... e.com/T/#t