Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1482480pxf; Fri, 12 Mar 2021 10:28:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJySXTyLlVKYKGI+CQBBv2D8RxgYNRICRAPF7fyATPDfWNOT26T3vRqbx1jI/nNIxoUQsWCV X-Received: by 2002:a17:906:f6ce:: with SMTP id jo14mr10163638ejb.476.1615573732384; Fri, 12 Mar 2021 10:28:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573732; cv=none; d=google.com; s=arc-20160816; b=CmshtPa40LuYLooyjcgNCQXd5guALWodqbZHmqm9tuqXWU0lmMkscvRKhqCug5zZR1 RQoN4J33zZeokqFpPEs1ZyTYP1Lwa7kx3mp36hJJeTnGW800NBmwZYEPzPUhF8H5qCxF KQwGC7+zW/XiO944nVo3qGTCH7185Tx/zjhu54soLzDpEOdTbxvZNHIZEUCbElsYUS3x PiX7/DHXT8eYWISgDSmxjm0MbJeReG0GR7/2QSN00wvgWTAm1DlVAm9z0W0aOVi7eKMi AWrB0W68tv49aZll5hF1L2BefF9IwSqFXqRngjKKWUbb4X4A+0GDkT+LM7IslRXp9HgY g8Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=vHEf0wZ0jz5+lCXJ7lMvh0dC6aHiwnMz1z2L6kOepkQ=; b=sRlNlRIyxtgWWMuo634kfXdbM6T4ErE9EpxamPEx/8hqPnBnqfz+WbIl9JaN1fkOXI bnVw4wT86V7LiU0DNGtYeRDZse3hXu6TdXOv/1Qjujr2B2T2DjKbqd1BrYamSeZxB1yX NyrEvMl6By1SF4iJWQHFfOF3yik+SiPAj16oTP6SAj/ljv4cRy6ATZ8LKxv1zUdnQBQi Wj47E5oICjlzvJBUNnxHtxQtHEu/4/RG4s3NhjQ6Ac5Xl0xfsAkmAmBnrb6iptB6BmZt SZ47Z/A9SBCuVZG5eGQ2rwxfXEhKE2Bu1ml1sb/zLY5F6g8JMWsAM/aVLwZe5L8esab6 czjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BQmtGDId; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si4541936ejz.565.2021.03.12.10.28.29; Fri, 12 Mar 2021 10:28:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BQmtGDId; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232554AbhCLS1e (ORCPT + 99 others); Fri, 12 Mar 2021 13:27:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233430AbhCLS1I (ORCPT ); Fri, 12 Mar 2021 13:27:08 -0500 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9780FC061574; Fri, 12 Mar 2021 10:27:08 -0800 (PST) Received: by mail-io1-xd2a.google.com with SMTP id k2so26768120ioh.5; Fri, 12 Mar 2021 10:27:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=vHEf0wZ0jz5+lCXJ7lMvh0dC6aHiwnMz1z2L6kOepkQ=; b=BQmtGDIdoNLOcCSF5FHxHKUSEclAV8bg79BaU7SknyTVqbUwUjVYxHh0HzRtZ0t1Cw /2SYLjcaIDrBCCqLD/yFx6vI5S2ib95l6z6lSSORG2oJCmQRfSYJ0vU5C8LcNnr+nSen xgYYkVNFuGpWmdMSc3VQmhTrmxUlrYkrnAqS7C2o+01pYSYvRiEZ4vMSOKRoKzx/ZECw 6eaWRATpOclsCRMIjgsv3oxmS8gzbN1sTNNqwjhUrGCWPT929L0KRuUlVlT+b4uiTOqW kuYnI0MZLCjmoGeXVQ++WA7YGQDT98uzjEqts5YsuaNKNqIBRDOCQ9U2/1qj3P6IFe4m LNJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=vHEf0wZ0jz5+lCXJ7lMvh0dC6aHiwnMz1z2L6kOepkQ=; b=Nivb+HimAdjcnLyVXttk3JHjIOmJdJwSI5ViYm+I41PcXjxYRsbGpuSzZzYIpQ8eoX atEYANamIpR+GdG65JIZ9XbKsKY4awOrcECDB9FbXj0f7DXxW8SjjuN6NmhNqx2WEd2r yxrJcCxNQEfMnQ4ArCblDqcH22doNgJ9NNIQFdNhzx3krZpeclh53X6XzjHHb4l22d+n 77EXaZKoQXwoV5mWnzRJk3Nso7Sf0panLFOZE0VYuTWgaz66SHJlCIASewZoBTC4QTzz 5IvhgtIKe72rs1PobTqs0bs5cNCn5KoOtNtoaJhvKIUWqOigK3vsmX/tIGFpEA3x4o7G HIoA== X-Gm-Message-State: AOAM530GzRCUy9hr6Aln5OI8FTMrDasmjdAci61xXZEw1iKfclko0q6T pw1/7P9XV+r6YBgdLQrgRXHrv3q8n9gnRvc06YE= X-Received: by 2002:a02:9a0a:: with SMTP id b10mr553035jal.132.1615573627927; Fri, 12 Mar 2021 10:27:07 -0800 (PST) MIME-Version: 1.0 References: <20210306165808.GD74411@rowland.harvard.edu> <20210307154645.GA103559@rowland.harvard.edu> <20210307170702.GB104554@rowland.harvard.edu> <20210312180523.GB302347@rowland.harvard.edu> In-Reply-To: <20210312180523.GB302347@rowland.harvard.edu> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 12 Mar 2021 19:26:31 +0100 Message-ID: Subject: Re: [xhci] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd To: Alan Stern Cc: Mathias Nyman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 7:05 PM Alan Stern wrote: > > On Fri, Mar 12, 2021 at 06:41:58PM +0100, Sedat Dilek wrote: > > OK, now for the records: > > > > [ /etc/modprobe.d/usb-storage.conf ] > > > > # Add quirks for USB Mass Storage devices > > # > > # Link: https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html > > # > > # Option #1: Use Kernel command line parameter > > # [1] Usage: usb-storage.quirks= > > # [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 > > # > > # Option #2: Set quirk via sysfs > > # DEBUG: echo '174c:55aa:t' > /sys/module/usb_storage/parameters/quirks > > # > > # Option #3: Pass options via /etc/modprobe.d/usb-storage.conf (this file here) > > # XXX: Do NOT forget to run `update-initramfs` command! > > options usb-storage quirks=174c:55aa:t > > - EOF - > > > > With generating a new /boot/initrd.img via `update-initramfs` this > > looks good to me: > > > > root# LC_ALL=C dmesg -T | egrep -i 'quirks|reset|SCSI ioctl error' > > [Fri Mar 12 18:25:56 2021] xhci_hcd 0000:03:00.0: hcc params > > 0x0200f180 hci version 0x96 quirks 0x0000000000080000 > > [Fri Mar 12 18:25:57 2021] usb-storage 4-1:1.0: Quirks match for vid > > 174c pid 55aa: 2400000 > > [Fri Mar 12 18:25:57 2021] SCSI ioctl error, cmd A1, prog ata_id > > [Fri Mar 12 18:25:57 2021] SCSI ioctl error, cmd A1, prog ata_id > > [Fri Mar 12 18:25:58 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:25:58 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:25:58 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:25:59 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:25:59 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:25:59 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:25:59 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:00 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:00 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:00 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:00 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:00 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:01 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:01 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:01 2021] SCSI ioctl error, cmd A1, prog ata_id > > [Fri Mar 12 18:26:01 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:01 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:01 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:02 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:02 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:02 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:02 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:03 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:03 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:03 2021] usb 4-1: reset SuperSpeed Gen 1 USB device > > number 2 using xhci_hcd > > [Fri Mar 12 18:26:24 2021] SCSI ioctl error, cmd A1, prog ata_id > > [Fri Mar 12 18:26:24 2021] SCSI ioctl error, cmd A1, prog ata_id > > [Fri Mar 12 18:26:29 2021] SCSI ioctl error, cmd 85, prog smartd > > [Fri Mar 12 18:26:30 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:30 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:30 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:30 2021] SCSI ioctl error, cmd A1, prog ata_id > > [Fri Mar 12 18:26:30 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:30 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:30 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:30 2021] SCSI ioctl error, cmd 85, prog smartd > > [Fri Mar 12 18:26:30 2021] SCSI ioctl error, cmd 85, prog smartd > > [Fri Mar 12 18:26:30 2021] SCSI ioctl error, cmd 85, prog smartd > > [Fri Mar 12 18:26:31 2021] SCSI ioctl error, cmd 85, prog smartd > > [Fri Mar 12 18:26:31 2021] SCSI ioctl error, cmd 85, prog smartd > > [Fri Mar 12 18:26:31 2021] SCSI ioctl error, cmd 85, prog smartd > > [Fri Mar 12 18:26:31 2021] SCSI ioctl error, cmd 85, prog smartd > > [Fri Mar 12 18:26:31 2021] SCSI ioctl error, cmd 85, prog smartd > > [Fri Mar 12 18:26:31 2021] SCSI ioctl error, cmd 85, prog smartd > > [Fri Mar 12 18:26:39 2021] SCSI ioctl error, cmd A1, prog ata_id > > [Fri Mar 12 18:26:39 2021] SCSI ioctl error, cmd A1, prog ata_id > > [Fri Mar 12 18:26:40 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:40 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:40 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:40 2021] SCSI ioctl error, cmd A1, prog ata_id > > [Fri Mar 12 18:26:40 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:40 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:40 2021] SCSI ioctl error, cmd 85, prog hdparm > > [Fri Mar 12 18:26:43 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:43 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:44 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:44 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:44 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:44 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:44 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:44 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:44 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:44 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:49 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:49 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:49 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:49 2021] SCSI ioctl error, cmd 85, prog udisksd > > [Fri Mar 12 18:26:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:26:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:26:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:26:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:26:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:26:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:26:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:26:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:26:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:26:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:28:09 2021] SCSI ioctl error, cmd 85, prog smartctl > > [Fri Mar 12 18:28:09 2021] SCSI ioctl error, cmd 85, prog smartctl > > [Fri Mar 12 18:28:10 2021] SCSI ioctl error, cmd 85, prog smartctl > > [Fri Mar 12 18:28:11 2021] SCSI ioctl error, cmd 85, prog smartctl > > [Fri Mar 12 18:36:49 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:36:49 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:36:49 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:36:49 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:36:49 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:36:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:36:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:36:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:36:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > [Fri Mar 12 18:36:50 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > Although it's not conclusive, this log seems to indicate that ata_id > is the only program causing resets. Have you tried preventing the > ata_id program from running (for example, by renaming it)? > This is /lib/udev/ata_id from Debian's udev package. > > Your diff now should say; s/SCSI ioctl error/SCSI ioctl info'. > > No, it shouldn't. The log message itself is an info, but the event it > reports is an error. > OK. Some of these SCSI ioctl errors are not causing a xhci-reset. > > Alan, so "t" flags should be added as a quirks to linux-kernel sources... > > > > t = NO_ATA_1X (don't allow ATA(12) and ATA(16) commands, uas only); > > > > ...for my ASMedia USB-3.0 controller? > > That's not at all clear. This is a very common and popular device, > and nobody else has reported these problems. It could be that > something is odd about your particular drive or computer, not these > drives in general. > So, the external USB-3.0 HDD is now in "UAS only" mode/status. Cannot judge if things got better or not. - Sedat -