adb repeatably crashes xhci

Bug #1988634 reported by JamesRichardson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
android-platform-system-core (Ubuntu)
New
Undecided
Unassigned
android-platform-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Using "adb" - the android debugger - causes a repeatable USB crash. Its usually about 5 minutes after starting the "adb" server process.

The result is that all USB devices become disconnected (mouse / keyboard etc)

It is possible to recover the USB system by logging in over network and running the following

```
for port in $(lspci | grep USB | cut -d' ' -f1); do
    echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
    sleep 5;
    echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
    sleep 5;
done
```

The following messages are visible in dmesg

```
[ 1085.204580] xhci_hcd 0000:04:00.0: ERROR unknown event type 15
[ 1090.107297] xhci_hcd 0000:04:00.0: xHCI host not responding to stop endpoint command.
[ 1090.107307] xhci_hcd 0000:04:00.0: USBSTS: 0x00000000
[ 1090.107329] xhci_hcd 0000:04:00.0: xHCI host controller not responding, assume dead
[ 1090.107364] xhci_hcd 0000:04:00.0: HC died; cleaning up
[ 1090.107414] usb 3-2: USB disconnect, device number 2
[ 1090.107421] usb 3-2.1: USB disconnect, device number 3
[ 1090.107623] usb 4-2: USB disconnect, device number 2
[ 1090.107629] usb 4-2.4: USB disconnect, device number 3
[ 1090.347554] usb 3-2.2: USB disconnect, device number 4
[ 1090.395581] usb 3-2.4: USB disconnect, device number 5
[ 1090.395584] usb 3-2.4.1: USB disconnect, device number 13
[ 1090.395986] usb 3-2.4.2: USB disconnect, device number 7
[ 1090.487742] usb 3-2.4.3: USB disconnect, device number 8

```

Here is lsusb -t -v

```
/: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        ID 0bda:0411 Realtek Semiconductor Corp. Hub
        |__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
            ID 0bda:0411 Realtek Semiconductor Corp. Hub
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
        |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046d:c31c Logitech, Inc. Keyboard K120
        |__ Port 1: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046d:c31c Logitech, Inc. Keyboard K120
        |__ Port 2: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
            ID 046d:082d Logitech, Inc. HD Pro Webcam C920
        |__ Port 2: Dev 4, If 3, Class=Audio, Driver=snd-usb-audio, 480M
            ID 046d:082d Logitech, Inc. HD Pro Webcam C920
        |__ Port 2: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
            ID 046d:082d Logitech, Inc. HD Pro Webcam C920
        |__ Port 2: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 480M
            ID 046d:082d Logitech, Inc. HD Pro Webcam C920
        |__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
            ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
            |__ Port 2: Dev 7, If 2, Class=Human Interface Device, Driver=usbhid, 12M
                ID 046d:c52b Logitech, Inc. Unifying Receiver
            |__ Port 2: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 12M
                ID 046d:c52b Logitech, Inc. Unifying Receiver
            |__ Port 2: Dev 7, If 1, Class=Human Interface Device, Driver=usbhid, 12M
                ID 046d:c52b Logitech, Inc. Unifying Receiver
            |__ Port 3: Dev 8, If 3, Class=Human Interface Device, Driver=usbhid, 12M
                ID 0b0e:0305 GN Netcom Jabra EVOLVE Link MS
            |__ Port 3: Dev 8, If 1, Class=Audio, Driver=snd-usb-audio, 12M
                ID 0b0e:0305 GN Netcom Jabra EVOLVE Link MS
            |__ Port 3: Dev 8, If 2, Class=Audio, Driver=snd-usb-audio, 12M
                ID 0b0e:0305 GN Netcom Jabra EVOLVE Link MS
            |__ Port 3: Dev 8, If 0, Class=Audio, Driver=snd-usb-audio, 12M
                ID 0b0e:0305 GN Netcom Jabra EVOLVE Link MS
            |__ Port 1: Dev 9, If 4, Class=Vendor Specific Class, Driver=usbfs, 480M
                ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy A5 (MTP)
            |__ Port 1: Dev 9, If 2, Class=CDC Data, Driver=cdc_acm, 480M
                ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy A5 (MTP)
            |__ Port 1: Dev 9, If 0, Class=Imaging, Driver=usbfs, 480M
                ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy A5 (MTP)
            |__ Port 1: Dev 9, If 3, Class=Vendor Specific Class, Driver=, 480M
                ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy A5 (MTP)
            |__ Port 1: Dev 9, If 1, Class=Communications, Driver=cdc_acm, 480M
                ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy A5 (MTP)
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 7: Dev 2, If 0, Class=Vendor Specific Class, Driver=btusb, 12M
        ID 0b05:180a ASUSTek Computer, Inc. Broadcom BCM20702 Single-Chip Bluetooth 4.0 + LE
    |__ Port 7: Dev 2, If 1, Class=Vendor Specific Class, Driver=btusb, 12M
        ID 0b05:180a ASUSTek Computer, Inc. Broadcom BCM20702 Single-Chip Bluetooth 4.0 + LE
    |__ Port 7: Dev 2, If 2, Class=Vendor Specific Class, Driver=btusb, 12M
        ID 0b05:180a ASUSTek Computer, Inc. Broadcom BCM20702 Single-Chip Bluetooth 4.0 + LE
    |__ Port 7: Dev 2, If 3, Class=Application Specific Interface, Driver=, 12M
        ID 0b05:180a ASUSTek Computer, Inc. Broadcom BCM20702 Single-Chip Bluetooth 4.0 + LE
    |__ Port 13: Dev 3, If 0, Class=Vendor Specific Class, Driver=cp210x, 12M
        ID 1b1c:1c00 Corsair Controller for Corsair Link
```

This happens repeatably, and only with adb.

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1988634/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Paul White (paulw2u)
affects: ubuntu → android-platform-system-core (Ubuntu)
Revision history for this message
JamesRichardson (james-time4tea) wrote :

I saw this was filed against android... I dont know what package it should be filed against, but surely this is a kernel or driver problem. User programs should not be able to crash a device, surely.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.