All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: Zhangzhansheng <zhang.zhansheng@h3c.com>,
	Ladislav Michl <oss-lists@triops.cz>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	Sneeker Yeh <sneeker.yeh@gmail.com>,
	Wangxiaoqing <wangxiaoqing@h3c.com>,
	Xinhaining <xinhaining@h3c.com>
Subject: Re: [Consulting about: xHCI host dies on device unplug]
Date: Fri, 5 Jan 2024 13:07:05 +0200	[thread overview]
Message-ID: <9e8bebd2-e51a-cd24-3522-a781bb0b237e@linux.intel.com> (raw)
In-Reply-To: <7b049561ce33406ab9b5d0cee7fbd497@h3c.com>

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

       reply	other threads:[~2024-01-05 11:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <7b049561ce33406ab9b5d0cee7fbd497@h3c.com>
2024-01-05 11:07 ` Mathias Nyman [this message]
2024-01-22  4:03   ` 答复: [Consulting about: xHCI host dies on device unplug] Zhangzhansheng
2024-01-23 14:49     ` Mathias Nyman
     [not found]       ` <64e4153a5cd54cf9bc3eaaf823ba0a31@h3c.com>
2024-01-24 13:49         ` 答复: " Mathias Nyman
2024-01-24 14:09           ` 答复: " Zhangzhansheng
2024-01-24 14:19             ` Greg KH
2024-01-25  1:02               ` 答复: " Zhangzhansheng
2024-01-25 23:01                 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9e8bebd2-e51a-cd24-3522-a781bb0b237e@linux.intel.com \
    --to=mathias.nyman@linux.intel.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=oss-lists@triops.cz \
    --cc=sneeker.yeh@gmail.com \
    --cc=wangxiaoqing@h3c.com \
    --cc=xinhaining@h3c.com \
    --cc=zhang.zhansheng@h3c.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.