Thread (16 messages) 16 messages, 2 authors, 2021-03-06

Re: [xhci] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd

From: Sedat Dilek <hidden>
Date: 2021-03-06 06:44:27
Also in: lkml

Possibly related (same subject, not in this thread)

On Fri, Mar 5, 2021 at 8:54 PM Sedat Dilek [off-list ref] wrote:
On Fri, Mar 5, 2021 at 8:47 PM Alan Stern [off-list ref] wrote:
quoted
On Fri, Mar 05, 2021 at 08:41:40PM +0100, Sedat Dilek wrote:
quoted
On Fri, Mar 5, 2021 at 8:30 PM Alan Stern [off-list ref] wrote:
quoted
quoted
Okay, that indicates the ATA commands are being sent not by the kernel
but by some program.  I'm not sure how you can easily find out which
program; probably the best thing to do is turn them off one by one until
you find the one responsible.
I can hardly imagine which user-space tools other than powertop can
interfere here.
Any ideas?
No.  Especially since I have no idea what programs are running on your
computer.
Are we talking about things like gvfs - udisks - fuse etc.?
All running via systemd here.

Here I am using KDE/Plasma as DE.
Unsure if this runs apps in the background.

AFAICS I have not seen xhci-resets with Debian-Kernel 5.10.19-1.
No, with Debian-Kernel 5.10.19-1 there are no xhci-resets:

root# cat /proc/version
Linux version 5.10.0-4-amd64 (debian-kernel@lists.debian.org) (gcc-10
(Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian)
2.35.2) #1 SMP Debian 5.10.19-1 (2021-03-02)

root# LC_ALL=C dmesg -T | grep xhci | grep reset
[ empty ]

But I see there is already a quirk enabled and matches my ASmedia USB
3.0 controller (as I have *no* usb-storage-quirks enabled):

root# LC_ALL=C dmesg -T | grep -i quirks | egrep '174c|55aa'
[Sat Mar  6 06:52:41 2021] usb-storage 4-1:1.0: Quirks match for vid
174c pid 55aa: 400000

For the sake of completeness my latest /etc/modules-load.d/usb-storage.conf:

# Add quirks for USB Mass Storage devices
#
# Link: https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html
#
# usb-storage quirks kernel-parameters and options explained:
# [1] Usage: usb-storage.quirks=<VID:PID:Flags>
# [2] VendorID (VID) and ProductID (PID):
#     ASMedia M1042 USB-3.0 controller: VID: 174c PID: 55aa
# [3] Flags:
#     t = NO_ATA_1X  (don't allow ATA(12) and ATA(16) commands, uas only);
#     u = IGNORE_UAS (don't bind to the uas driver);
# [4] Example: usb-storage.quirks=174c:55aa:t
#
# DEBUG: echo '174c:55aa:t' > /sys/module/usb_storage/parameters/quirks
#
# XXX: Commented - xhci-resets NOT caused by the Linux-kernel (check user-space)
#options usb-storage quirks=174c:55aa:t
- EOF -

Thanks Alan for all the hints and tips in the topic "usb-storage and
quirks" and your patience.

- Sedat -
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help