Re: [Consulting about: xHCI host dies on device unplug]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5.1.2024 3.44, Zhangzhansheng wrote:
Ladislav Michl/Mathias Nyman:

I am so sorry to trouble you.

Recenttly, I have encountered one problem which is similar to the site :https://lore.kernel.org/linux-usb/Y6L6R0J1AUan63TN@lenoch/#t described.

The problem is :

I unplug one usb3.0 u disk(Manufacturer: aigo, Product: U330), which causing usb3.0 host controller halted,then  all the usb devices connected to the usb3.0 host controller disconnected. However this problem occurred in a lower percentage.

The kernel log of my problem is as follow:
[17746.149774] 2:usb 2-1: device descriptor read/8, error -110
[17746.250191] 2:usb 2-1: reset SuperSpeed USB device number 17 using xhci_hcd
[17746.263159] 2:usb 2-1: device descriptor read/8, error -71
[17746.363202] 2:xhci_hcd 0000:02:00.0: Cannot set link state.
[17746.363238] 2:usb usb2-port1: cannot disable (err = -32)
[17746.718537] 0:usb 2-1: reset SuperSpeed USB device number 17 using xhci_hcd
[17751.730166] 0:usb 2-1: device descriptor read/8, error -110
[17751.831200] 0:usb 2-1: reset SuperSpeed USB device number 17 using xhci_hcd
[17761.849191] 2:xhci_hcd 0000:02:00.0: xHCI host not responding to stop endpoint command.
[17761.849221] 2:xhci_hcd 0000:02:00.0: Assuming host is dying, halting host.
[17761.850354] 2:xhci_hcd 0000:02:00.0: HC died; cleaning up
[17761.850394] 2:usb 2-1: device descriptor read/8, error -110
[17761.951297] 0:usb usb1-port1: couldn't allocate usb_device
[17761.951327] 0:usb 1-4: USB disconnect, device number 2
[17761.951722] 0:usb 2-1: USB disconnect, device number 17


So, could you tell me what is the ultimate solution of you raising on the site "https://lore.kernel.org/linux-usb/Y6L6R0J1AUan63TN@lenoch/#t";.

This looks a bit different. In the case behind the link the host controller automatically
turned off immediately after the last usb device was disconnected.
Any command the driver issued ti the host after that would time out.

In your case it looks like there are other connected usb devices to this host (1-4).
driver is also trying to re-enumerate usb 2-1 but failing, as disconnect isn't completely
visible to driver. I assume 2-1 Is this the disconnected device?

full dmesg of issue with usb core and xhci dynamic debug could help:

mount -t debugfs none /sys/kernel/debug
echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control
echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control

Also details about xHCI host vendor, kernel version, and lsusb -t output would help.

Could you also get rid of that legal footer in your mail. I don't want to
worry about any possible legal issues for just responding to this.

Thanks
Mathias




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux