Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1450145pxf; Fri, 12 Mar 2021 09:44:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAvyj4gjsDwuWVTWtu8HCjmuj5aw4+4JdSjhp72OTQCuLGAMsMmd9p6mRAfN08iL18ESfR X-Received: by 2002:a05:6402:384:: with SMTP id o4mr15671686edv.244.1615571073858; Fri, 12 Mar 2021 09:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615571073; cv=none; d=google.com; s=arc-20160816; b=N17p5RsTrHwNcat1yGurAiqEVmS1w0WZfqmiAiBdAph2Uta85kBGCA/4NuwWPibuBs 2Arb6aGIGKtyc32lB0Yedr/wbzhRCPDygQhzk/6wNCK409oBxwImdQE/AsSy2L49gJ23 5lMdeZFODTEENEshK8RIXwL61jA/HYBkuOmAGDMnUd4U/k8zRLf0idYbeCxDu86vwBdG O5mgokkyjgSO75ZT/7B0LxKr6j8clwWHwlrKZtlXgLPeOGbUP4fJI3ibZ3CrUfzgc8og P/oHsYo8NM2TnAE2K+yZ0AuD33oJFZTt+6+3yHHgF8iqZRH+M8S72wXuZt2rJj9GN7Ul wB1w== 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=2BpBKC6amLfVKktHpaa9KFseSm9F+CF9ejShdCoo9Lk=; b=jK4vcuwC/Uk9Ja5ors/Uwud2VVamqkgjFSaTP8kLWsRpy7/WzdKNazEDy08QoB1Xrm +uMjwR9GdZqo7NRB/N6ZnJCd75HCkwinKV1VtNPPyJsJpestnQjJJkfDYKcSAxPXbct/ 81lUUo7v872M3jbKII0H+RZTUDIqcqCRSLFKmEw84hgmrzJ5ORcrZ0fcvq8ukjNGwB9t s1a845w0sRsNz2CaTsFOFtF0t6RPVBDklHgvj1eKADYdI/Up2COeyAxXx0Q9l+A8An1+ fWvs0d7NU1BWzg50vTUgoqC34hStHVKH2ITGydo8zJtEhCz79pcacT6woxzKvOY34MZY WXow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RNVUMyfR; 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 ga16si4624892ejb.361.2021.03.12.09.44.10; Fri, 12 Mar 2021 09:44:33 -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=RNVUMyfR; 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 S232105AbhCLRms (ORCPT + 99 others); Fri, 12 Mar 2021 12:42:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232217AbhCLRmh (ORCPT ); Fri, 12 Mar 2021 12:42:37 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 185DBC061574; Fri, 12 Mar 2021 09:42:37 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id g27so26607688iox.2; Fri, 12 Mar 2021 09:42:37 -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=2BpBKC6amLfVKktHpaa9KFseSm9F+CF9ejShdCoo9Lk=; b=RNVUMyfRaM22EyZhJqGc2FjFtG24jh/dlA99EZpkj2QIeuA5wmzDD7Uw3tQHvweJ0h diyu8oUY5Kxnug0/6dSK/dBW9aAqoxs5T/Ri5mqc7dpcNZP07p3HVWWzVDh++7pwG2gz NAnFoOmKAwCpZaplKrfWdlHenxNMulCdehrhf11wymFTYW0aRAennY2Jtyq8SZVAu8iR Lj98au0NlnvFvS9i2pU2QMvpcOctjcLAzLRJD1+nzr6m/8sZTOyKcHgXvHx7n4wLS4oe 00ELcuZeYxwp5QIstQLMzE42/C+wL1+F2jJU8krQkEsysRceflowC+0Pbf90/f1WCL0k xkaA== 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=2BpBKC6amLfVKktHpaa9KFseSm9F+CF9ejShdCoo9Lk=; b=aqFKw54p4bfXzskJ8RnLXj4Yv7V8VsFAUFakQs60+nlB5Gjnu+T2nwAPUF6CHljraN 8GoI5kLZrssrA5cKXTd5HKr6o+HOJQtgtYi36c+xm2xTUacEhV6wh4fawpQqPyNHrYIn lI6YPL+RzeZa+0U+SP2MmYfWnnOUYpVoHWaP8XQIsbwXvW1jDB1HO+eYZH0pLsG1gED1 cQf20icQOsJGSPQwxGhZ/EJAmQnUROdrotPTsBLmQx0x2SK9aThkvAxWIZ2pJBmfOSnj U9fvTIbuV4DfWu/xFC6QPzLcHOi5QswjSsqs09FduSxXwILbuO4+j1Gzrd8C7cEWoXQD WJtQ== X-Gm-Message-State: AOAM533YsEleVCWPundQeMBQuGHXd3ORvO6GiIyI8i6HNB6YMZgemKQc nLcWGcAOMB1fnXIurViAqBdZsO5p3qSEAW3q4hP9uTrAK8eC+g== X-Received: by 2002:a5d:9d13:: with SMTP id j19mr302189ioj.110.1615570956506; Fri, 12 Mar 2021 09:42:36 -0800 (PST) MIME-Version: 1.0 References: <20210305194745.GF48113@rowland.harvard.edu> <20210306165808.GD74411@rowland.harvard.edu> <20210307154645.GA103559@rowland.harvard.edu> <20210307170702.GB104554@rowland.harvard.edu> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 12 Mar 2021 18:41:58 +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 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 Your diff now should say; s/SCSI ioctl error/SCSI ioctl info'. 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? - Sedat -