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] [thread-next>] [day] [month] [year] [list]
Message-ID: <7ec5ba1d-1de7-409d-882c-2efab4922ed4@molgen.mpg.de>
Date: Sat, 5 Apr 2025 09:36:03 +0200
From: Paul Menzel <pmenzel@...gen.mpg.de>
To: Michał Pecio <michal.pecio@...il.com>
Cc: Mathias Nyman <mathias.nyman@...ux.intel.com>,
 Mathias Nyman <mathias.nyman@...el.com>,
 Greg Kroah-Hartman <gregkh@...uxfoundation.org>, linux-usb@...r.kernel.org,
 LKML <linux-kernel@...r.kernel.org>
Subject: Re: xhci: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep
 state.

Dear Michał,


Thank you for looking into this.

Am 05.04.25 um 08:43 schrieb Michał Pecio:

> On Thu, 3 Apr 2025 20:02:05 +0200, Paul Menzel wrote:
>> Just a heads-up, that connecting an LMP USB-C mini Dock [1] to the
>> Intel Kaby Lake Dell XPS 13 9360 with
>>
>>       00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21)
> 
> This is not the USB bus generating that noise.

You are right. It is probably:

     39:00.0 USB controller [0c03]: Intel Corporation DSL6340 USB 3.1 
Controller [Alpine Ridge] [8086:15b5]

Please find the full output of `lspci -nn` attached.

> And the problem appears to be that some USB device gets reset
> periodically, probably /dev/sda, whatever it is. This reset loop is
> also visible in your new log today.
I guess it’s the SD/eMMC card slot, which I do not use though.

> The warning appears to be connected to that, and the suspend problem
> may also be if some mutex stays locked for more than 20s as a result.
> 
> Could you check:
> 1. what exact USB device is getting reset?

How do I found out? (Excuse my ignorance, I do not even knew the warning 
is related to resets.)

> 2. is it reproducible on master? (seems so)

Yes.

> 3. is it reproducible on 6.14, 6.13, ...

As written, from my logs it happened sporadically in the past, but since 
at least commit a2cc6ff5ec8f it happens almost always. I didn’t see it 
with commit 08733088b566, and after that I didn’t use any USB-C adapters 
for three days.


Kind regards,

Paul


PS: Hints on how to try to reproduce this in QEMU would be welcome. 
(Passing the controller and device to the VM.)


>> [   74.898485] usb 4-1.4: reset SuperSpeed USB device number 5 using xhci_hcd
>> [   74.916241] sd 0:0:0:0: [sda] Media removed, stopped polling
>> [   74.916634] sd 0:0:0:0: [sda] Attached SCSI removable disk
>> [   98.803081] PM: suspend entry (deep)
>> [   98.813999] Filesystems sync: 0.010 seconds
>> [   98.819226] Freezing user space processes
>> [  105.534176] xhci_hcd 0000:39:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
>> [  105.606437] usb 4-1.4: reset SuperSpeed USB device number 5 using xhci_hcd
>> [  118.822270] Freezing user space processes failed after 20.003 seconds (2 tasks refusing to freeze, wq_busy=0):
>> [  118.822281] task:systemd-journal state:D stack:0     pid:474 tgid:474   ppid:1      task_flags:0x400100 flags:0x00000006
>> [  118.822285] Call Trace:
>> [  118.822287]  <TASK>
>> [  118.822291]  __schedule+0x537/0xbb0
>> [  118.822297]  schedule+0x27/0xd0
>> [  118.822300]  schedule_preempt_disabled+0x15/0x20
>> [  118.822302]  __mutex_lock.constprop.0+0x4b4/0x890
>> [  118.822306]  uevent_show+0x99/0x150
>> [  118.822309]  dev_attr_show+0x19/0x40
>> [  118.822312]  sysfs_kf_seq_show+0xcd/0x110
>> [  118.822315]  seq_read_iter+0x116/0x400
>> [  118.822318]  vfs_read+0x299/0x360
>> [  118.822321]  ksys_read+0x6b/0xe0
>> [  118.822323]  do_syscall_64+0x82/0x9b0
>> [  118.822327]  ? arch_exit_to_user_mode_prepare.isra.0+0x16/0x90
>> [  118.822331]  ? syscall_exit_to_user_mode+0x37/0x1a0
>> [  118.822333]  ? do_syscall_64+0x8e/0x9b0
>> [  118.822336]  ? __memcg_slab_free_hook+0xf9/0x140
>> [  118.822339]  ? __x64_sys_close+0x3d/0x80
>> [  118.822341]  ? kmem_cache_free+0x236/0x460
>> [  118.822344]  ? arch_exit_to_user_mode_prepare.isra.0+0x16/0x90
>> [  118.822346]  ? syscall_exit_to_user_mode+0x37/0x1a0
>> [  118.822348]  ? do_syscall_64+0x8e/0x9b0Dez 21 10:22:08 abreu

$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen 
Core Processor Host Bridge/DRAM Registers [8086:5904] (rev 02)
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 
620 [8086:5916] (rev 02)
00:04.0 Signal processing controller [1180]: Intel Corporation Xeon 
E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem 
[8086:1903] (rev 02)
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 
3.0 xHCI Controller [8086:9d2f] (rev 21)
00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise 
Point-LP Thermal subsystem [8086:9d31] (rev 21)
00:15.0 Signal processing controller [1180]: Intel Corporation Sunrise 
Point-LP Serial IO I2C Controller #0 [8086:9d60] (rev 21)
00:15.1 Signal processing controller [1180]: Intel Corporation Sunrise 
Point-LP Serial IO I2C Controller #1 [8086:9d61] (rev 21)
00:16.0 Communication controller [0780]: Intel Corporation Sunrise 
Point-LP CSME HECI #1 [8086:9d3a] (rev 21)
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI 
Express Root Port #1 [8086:9d10] (rev f1)
00:1c.4 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI 
Express Root Port #5 [8086:9d14] (rev f1)
00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI 
Express Root Port #6 [8086:9d15] (rev f1)
00:1d.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI 
Express Root Port #9 [8086:9d18] (rev f1)
00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-LP LPC 
Controller [8086:9d58] (rev 21)
00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP PMC 
[8086:9d21] (rev 21)
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio 
[8086:9d71] (rev 21)
00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus 
[8086:9d23] (rev 21)
01:00.0 PCI bridge [0604]: Intel Corporation DSL6340 Thunderbolt 3 
Bridge [Alpine Ridge 2C 2015] [8086:1576]
02:00.0 PCI bridge [0604]: Intel Corporation DSL6340 Thunderbolt 3 
Bridge [Alpine Ridge 2C 2015] [8086:1576]
02:01.0 PCI bridge [0604]: Intel Corporation DSL6340 Thunderbolt 3 
Bridge [Alpine Ridge 2C 2015] [8086:1576]
02:02.0 PCI bridge [0604]: Intel Corporation DSL6340 Thunderbolt 3 
Bridge [Alpine Ridge 2C 2015] [8086:1576]
39:00.0 USB controller [0c03]: Intel Corporation DSL6340 USB 3.1 
Controller [Alpine Ridge] [8086:15b5]
3a:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac 
Wireless Network Adapter [168c:003e] (rev 32)
3b:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A 
PCI Express Card Reader [10ec:525a] (rev 01)
3c:00.0 Non-Volatile memory controller [0108]: SK hynix PC300 NVMe Solid 
State Drive 512GB [1c5c:1284]

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0cf3:e300 Qualcomm Atheros Communications QCA61x4 
Bluetooth 4.0
Bus 001 Device 003: ID 04f3:2234 Elan Microelectronics Corp. Touchscreen
Bus 001 Device 004: ID 0c45:670c Microdia Integrated Webcam HD
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub
Bus 003 Device 003: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub
Bus 003 Device 005: ID 2109:8817 VIA Labs, Inc. USB Billboard Device
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 002: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub
Bus 004 Device 003: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub
Bus 004 Device 004: ID 058f:8468 Alcor Micro Corp. Mass Storage Device
Bus 004 Device 005: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 
Gigabit Ethernet Adapter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ