You are not logged in.

#1 2020-04-17 13:13:16

JoeAnto
Member
Registered: 2020-04-02
Posts: 14

XHCI -110 Error

XHCI Driver Problem

Hey folks,

I hope you're staying safe in these rough times.

As i have some free time now, i'm using it to solve issues that i kept on a dark shelve for a long time.

One of them is the XHCI High Speed USB3.0 Driver dying and requiring a restart.

Here's some more details:

Hardware Info
Motherboard - Asrock Extreme 4 X79
Processor - Intel Core i7 - 4930k
High Speed USB Controller - Asmedia Controller

Problem Statement

The usual:
USB3.0 Stops working completely, and removing the module with rmmod and re-inserting it again with modprobe does not work. Works again after restart.

Rarely:
The PC Freezes and locks up, requiring a hard reset. Works again after restart.

Symptoms

I suspect that the problem is related to power states, because at first i thought that this issue occurred randomly, then after careful observation, i found out that it usually happens when i eject usb devices from thunar, and does not happen when i unmount instead of ejecting.

Later on, i installed virtualbox for a class i am attending, i have always been a kvm/qemu user and never dealt with usb devices inside VM's but had to do virtualbox for the sake of consistency.

then something interesting happened, if i insert my WIFI dongle in my USB3.0 HUB* while the VM is running, and the VM tries to capture it, i immediately get -110 in dmesg (same thing i am getting when ejecting devices from thunar)

[  +5.235648] xhci_hcd 0000:07:00.0: Abort failed to stop command ring: -110
[  +0.016009] xhci_hcd 0000:07:00.0: Host halt failed, -110
[  +0.000001] xhci_hcd 0000:07:00.0: xHCI host controller not responding, assume dead
[  +0.000012] xhci_hcd 0000:07:00.0: HC died; cleaning up
[  +0.000083] xhci_hcd 0000:07:00.0: Timeout while waiting for setup device command
[  +0.000020] usb 5-2: USB disconnect, device number 2
[  +0.000003] usb 5-2.2: USB disconnect, device number 0
[  +0.000006] usb 6-2: USB disconnect, device number 2
[  +0.000002] usb 6-2.4: USB disconnect, device number 3
[  +0.410516] usb 5-2.2: device not accepting address 4, error -22
[  +0.000208] usb 5-2.4: USB disconnect, device number 3

Then USB3.0 is not available until restart.

If i insert the WIFI dongle before turning on the VM, it's correctly handed over to the VM and works normally inside, BUT turning the VM off while the dongle is still connected results in the PC locking up and freezing while VirtualBox is trying to hand the device over to the host.

It's really bugging me out, because these issues did not seem to happen inside windows when i was daily driving it, so the issue being a hardware one is highly unlikely.

* The hub is unlikely to be the root of the problem because my board has two USB3.0 Ports on it, one has the high speed powered ANKER hub, and the other had an external powered USB3.0 backup hard drive, and the issue happened regardless of what was disconnected, sometimes it happened with the backup hard drive, sometimes with various flash drives connected through the hub.

EDIT

This Kernel bug from dmesg is probably related, it occurred while powering the VM off while the dongle is connected inside and working
Dmesg Output

Last edited by JoeAnto (2020-04-17 13:51:43)

Offline

Board footer

Powered by FluxBB