lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <785ddb6f-dca2-466d-c4bb-a6723a51e3e8@linux.intel.com>
Date: Mon, 26 Feb 2024 19:21:06 +0200
From: Mathias Nyman <mathias.nyman@...ux.intel.com>
To: Heikki Krogerus <heikki.krogerus@...ux.intel.com>,
 Paul Menzel <pmenzel@...gen.mpg.de>
Cc: Greg KH <gregkh@...uxfoundation.org>, linux-usb@...r.kernel.org,
 netdev@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
 Mike Jones <mike@...nes.io>
Subject: Re: xhci_hcd: `Timeout while waiting for setup device command`, 37 s
 until Ethernet connection is established

On 26.2.2024 11.09, Heikki Krogerus wrote:
> +Mathias
> 
> On Sat, Feb 24, 2024 at 08:45:43PM +0100, Paul Menzel wrote:
>> Dear Linux folks,
>>
>>
>> I suspended a Dell XPS 13 9360 with no devices attached into ACPI S3. Then
>> connecting an LMP USB-C mini Dock (P/N 15954) [1] with an Ethernet cable
>> attached to the left USB-C port and resumed the system from ACPI S3. It took
>> 37 seconds, until the link was established.
>>
>> ```
>> [    0.000000] Linux version 6.8.0-rc5+

...

>> [135636.985555] hub 4-1.1:1.0: hub_suspend
>> [135636.985997] usb 4-1.1: usb auto-suspend, wakeup 1
>> [135637.005910] usb 4-1.1: usb auto-resume
>> [135637.071744] usb 4-1.1: Waited 0ms for CONNECT
>> [135637.071751] usb 4-1.1: finish resume
>> [135637.072442] hub 4-1.1:1.0: hub_resume
>> [135637.100903] usb 4-1.1-port3: link state change
>> [135637.101072] usb 4-1.1-port3: do warm reset, port only
>> [135637.160024] usb 4-1.1-port3: not warm reset yet, waiting 50ms
>> [135642.359752] xhci_hcd 0000:39:00.0: Timeout while waiting for setup
>> device command
>> [135642.359904] usb 4-1.1: kworker/1:0 timed out on ep0in len=0/4
>> [135642.360403] usb 4-1.1-port3: not warm reset yet, waiting 200ms
>> [135642.567550] usb 4-1.4: device not accepting address 4, error -62
>> [135642.567787] usb 4-1.1-port3: not warm reset yet, waiting 200ms
>> [135642.587834] usb 3-1.1-port3: not reset yet, waiting 10ms
>> [135642.608022] usb 3-1.1-port3: not reset yet, waiting 10ms
>> [135642.627960] usb 3-1.1-port3: not reset yet, waiting 200ms
>> [135642.779575] usb 4-1.1-port3: not warm reset yet, waiting 200ms
>> [135642.836010] usb 3-1.1-port3: not reset yet, waiting 200ms
>> [135642.987924] usb 4-1.1-port3: not warm reset yet, waiting 200ms
>> [135642.989649] usb 4-1.1-port3: not enabled, trying warm reset again...
>> [135643.044090] usb 3-1.1-port3: not reset yet, waiting 200ms
>> [135643.253218] usb 3-1.1-port3: not reset yet, waiting 200ms
>> [135643.254188] hub 3-1.1:1.0: state 7 ports 4 chg 0000 evt 0008
>> [135643.254573] usb 3-1.1-port3: status 0100, change 0001, 12 Mb/s
>> [135643.254782] usb 3-1.1-port3: indicator auto status 0
>> [135643.255501] hub 4-1.1:1.0: state 7 ports 4 chg 0000 evt 0008
>> [135643.256309] usb 4-1.1-port3: status 0203, change 0001, 5.0 Gb/s
>> [135643.272060] usb 4-1-port4: not reset yet, waiting 10ms
>> [135643.292703] usb 4-1-port4: not reset yet, waiting 10ms
>> [135643.311459] usb 4-1-port4: not reset yet, waiting 200ms
>> [135643.395529] usb 3-1.1-port3: debounce total 100ms stable 100ms status
>> 0x100
>> [135643.395546] hub 3-1.1:1.0: hub_suspend
>> [135643.395900] usb 3-1.1: usb auto-suspend, wakeup 1
>> [135643.399598] usb 4-1.1-port3: debounce total 100ms stable 100ms status
>> 0x203
>> [135648.759590] xhci_hcd 0000:39:00.0: Timeout while waiting for setup
>> device command
>> [135654.135471] xhci_hcd 0000:39:00.0: Timeout while waiting for setup
>> device command
>> [135654.343365] usb 4-1.4: device not accepting address 5, error -62
>> [135654.343741] usb 4-1-port4: attempt power cycle
>> [135654.423462] usb 4-1.1.3: new SuperSpeed USB device number 6 using
>> xhci_hcd
>> [135654.443569] usb 4-1.1.3: USB quirks for this device: 400
>> [135654.443996] usb 4-1.1.3: skipped 1 descriptor after endpoint
>> [135654.444015] usb 4-1.1.3: skipped 1 descriptor after endpoint
>> [135654.444026] usb 4-1.1.3: skipped 1 descriptor after endpoint
>> [135654.444146] usb 4-1.1.3: skipped 3 descriptors after interface
>> [135654.444157] usb 4-1.1.3: skipped 1 descriptor after endpoint
>> [135654.444166] usb 4-1.1.3: skipped 1 descriptor after endpoint
>> [135654.444174] usb 4-1.1.3: skipped 1 descriptor after endpoint
>> [135654.444231] usb 4-1.1.3: default language 0x0409
>> [135654.444459] usb 4-1.1.3: udev 6, busnum 4, minor = 389
>> [135654.444472] usb 4-1.1.3: New USB device found, idVendor=0bda,
>> idProduct=8153, bcdDevice=30.00
>> [135654.444485] usb 4-1.1.3: New USB device strings: Mfr=1, Product=2,
>> SerialNumber=6
>> [135654.444495] usb 4-1.1.3: Product: USB 10/100/1000 LAN
>> [135654.444503] usb 4-1.1.3: Manufacturer: Realtek
>> [135654.444510] usb 4-1.1.3: SerialNumber: 000001
>> [135654.444978] r8152-cfgselector 4-1.1.3: usb_probe_device
>> [135654.447545] r8152-cfgselector 4-1.1.3: adding 4-1.1.3:1.0 (config #1,
>> interface 0)
>> [135654.447741] r8152 4-1.1.3:1.0: usb_probe_interface
>> [135654.447753] r8152 4-1.1.3:1.0: usb_probe_interface - got id
>> [135654.527864] r8152-cfgselector 4-1.1.3: reset SuperSpeed USB device
>> number 6 using xhci_hcd
>> [135654.547443] r8152-cfgselector 4-1.1.3: USB quirks for this device: 400
>> [135654.570025] r8152 4-1.1.3:1.0: load rtl8153a-4 v2 02/07/20 successfully
>> [135654.601390] r8152 4-1.1.3:1.0 eth0: v1.12.13
>> [135654.602115] hub 4-1.1:1.0: state 7 ports 4 chg 0000 evt 0008
>> [135660.535346] xhci_hcd 0000:39:00.0: Timeout while waiting for setup
>> device command
>> [135665.911069] xhci_hcd 0000:39:00.0: Timeout while waiting for setup
>> device command
>> [135666.118792] usb 4-1.4: device not accepting address 7, error -62
>> [135666.138995] usb 4-1-port4: not reset yet, waiting 10ms
>> [135666.158967] usb 4-1-port4: not reset yet, waiting 10ms
>> [135666.178919] usb 4-1-port4: not reset yet, waiting 200ms
>> [135666.387360] usb 4-1-port4: not reset yet, waiting 200ms
>> [135666.595345] usb 4-1-port4: not reset yet, waiting 200ms
>> [135666.803419] usb 4-1-port4: not reset yet, waiting 200ms
>> [135666.804994] hub 4-1:1.0: state 7 ports 4 chg 0000 evt 0010
>> [135666.861597] r8152 4-1.1.3:1.0 enx00e04ceabb21: renamed from eth0
>> [135666.922339] r8152 4-1.1.3:1.0 enx00e04ceabb21: carrier on

...

>> The last part continues until unplugging device, but this might be a
>> separate issue, as the Ethernet connection was functional.
>>
>> So from
>>
>>      [135654.601390] r8152 4-1.1.3:1.0 eth0: v1.12.13
>>
>> to
>>
>>      [135666.861597] r8152 4-1.1.3:1.0 enx00e04ceabb21: renamed from eth0
>>
>> it took 12 seconds.
>>
>> Is that a problem with the laptop or the adapter? And can it be fixed
>> somehow?

Your dock has a couple usb hubs, the network adapter is behind the second one.

Looks like several of the usb devices have issues enumerating, hub enumerates one
device at a time so enumeration issue on a hub will block enumerating other
devices on that same hub.

In addition to other devices failing it looks like this network adapter
behind 4-1.1-port3 takes a long time to reset as well.

Are there any other usb devices connected to this hub that can be removed?
Does that improve the situation?

Does dock work normally if its connected to a fully running system, (S0)

Also, those extra hub_suspend and hub_resume entries looks suspicious

Thanks
Mathias


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ