public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michał Pecio" <michal.pecio@gmail.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: Mathias Nyman <mathias.nyman@intel.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: xhci: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
Date: Sat, 5 Apr 2025 08:43:07 +0200	[thread overview]
Message-ID: <20250405084307.4080edf4@foxbook> (raw)
In-Reply-To: <c279bd85-3069-4841-b1be-20507ac9f2d7@molgen.mpg.de>

Hi,

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. 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.

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?
2. is it reproducible on master? (seems so)
3. is it reproducible on 6.14, 6.13, ...

> [   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

  parent reply	other threads:[~2025-04-05  6:43 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-03 18:02 xhci: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state Paul Menzel
2025-04-04 14:26 ` Mathias Nyman
2025-04-04 14:29   ` Paul Menzel
2025-04-05  5:23   ` Paul Menzel
2025-04-05 22:23     ` Michał Pecio
2025-04-06  2:40       ` Alan Stern
2025-04-06  7:50         ` Michał Pecio
2025-04-06 15:50           ` Michał Pecio
2025-04-06 19:26             ` Alan Stern
2025-04-07  5:49               ` Michał Pecio
2025-04-07 16:11                 ` Alan Stern
2025-04-08 10:18                   ` [PATCH RFC RFT] usb: hcd: Add a usb_device argument to hc_driver.endpoint_reset() Michał Pecio
2025-04-08 13:55                     ` Mathias Nyman
2025-04-09 10:18                       ` Michał Pecio
2025-04-09 14:13                         ` Alan Stern
2025-04-15  8:38                           ` Michał Pecio
2025-04-07  7:15         ` xhci: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state Mathias Nyman
2025-04-05  6:43 ` Michał Pecio [this message]
2025-04-05  7:36   ` Paul Menzel
2025-04-05  9:49     ` Michał Pecio
2025-04-05 14:08       ` Paul Menzel
2025-04-05 18:13         ` Paul Menzel

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=20250405084307.4080edf4@foxbook \
    --to=michal.pecio@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@intel.com \
    --cc=pmenzel@molgen.mpg.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox