Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp570057pxb; Sat, 6 Mar 2021 09:00:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSXxIBtMkor/4fVWr1nZmnuxgSmwcmKWiXsBisVPppZGS0BOnM4jXMGGcL392nXSYvUfJc X-Received: by 2002:a17:906:1848:: with SMTP id w8mr7509975eje.3.1615050005067; Sat, 06 Mar 2021 09:00:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615050005; cv=none; d=google.com; s=arc-20160816; b=CC7YS0FmyA9KwgzVZLJyLssJfiUfA0ebYvoYwiIspLDXkWSeJB6vrP5uk7JR4oNuEi r/65Wa9FRz5HmmZJuET6voT98EcNVIe5exxW6IbgL8XV5nFxGC7OmRpyXiGit927On65 ZAECwKp2rd2/13CcceTF7t0kv8tG6k14WcEDVKFO7AJwUWmJ+S5OtJWoHlj/MSvQjSRa CmNm+7oIYmImQKPRvFzCS3zNXj1ngqke3WzT+fxd6fZNTW8o8Om18RDZz/G7vrPMDlTd suUpIkMOEbSiFNEooXxiLglapNGNvPX21S7AC1oKoJExXS24YN0FHZyki3MHUemYN9p8 B4LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=dqF/yxdcbg7IlIj5r7fhNWJIIJ8EayWNCAh1LIyo1+I=; b=0gI/vVZ+tu0fAL3DKWaVI2GlnsEQEvapU1VaQgyo/5OdnB2kAAannj/eBT4iBbZeXP M2jsWAL1BkobGXynFs6fOxOS/pbM1A4XWlERTEa2de5jcMlF1s+tAivNwT1BZAaJs245 tBTpm1r++ZCUrJBYezr+Ct8NNI1w/yWuzVN4D1ZIPr8Qhuo5ysQy7pNPeoqunWLalft0 5yvNc5VPb+v9J3WEoIxixN1wuv49Nqawm9BT/2EL6PpEeH42oeTCkTRgk4eIFiikHkym SDIaMifk5kDL2PnmHM/SrlVW0SiZ2T2GUkopiP4IlIr9MT+E88qi0GIjYKgNi2J0ZL/R k2nQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si3874093edv.591.2021.03.06.08.59.42; Sat, 06 Mar 2021 09:00:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230213AbhCFQ6q (ORCPT + 99 others); Sat, 6 Mar 2021 11:58:46 -0500 Received: from netrider.rowland.org ([192.131.102.5]:35541 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S229779AbhCFQ6J (ORCPT ); Sat, 6 Mar 2021 11:58:09 -0500 Received: (qmail 75612 invoked by uid 1000); 6 Mar 2021 11:58:08 -0500 Date: Sat, 6 Mar 2021 11:58:08 -0500 From: Alan Stern To: Sedat Dilek Cc: Mathias Nyman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [xhci] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd Message-ID: <20210306165808.GD74411@rowland.harvard.edu> References: <20210301155321.GA1490228@rowland.harvard.edu> <20210305160728.GE38200@rowland.harvard.edu> <20210305193003.GE48113@rowland.harvard.edu> <20210305194745.GF48113@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 06, 2021 at 07:42:30AM +0100, Sedat Dilek wrote: > No, with Debian-Kernel 5.10.19-1 there are no xhci-resets: Is the kernel the only thing that is different? The rest of the operating system and environment is exactly the same? > 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 Yes, this is because that type of device already has a quirk entry built into the kernel. You can find it by searching for "174c" in the kernel source file drivers/usb/storage/unusual_devs.h. > Thanks Alan for all the hints and tips in the topic "usb-storage and > quirks" and your patience. You can try building a 5.11 kernel with the patch below. I don't know whether it will show anything in the dmesg log when one of these resets occurs, but it might. If that doesn't work out, another possibility is to use git bisect to find the commit between 5.10 and 5.11 which caused the problem to start. Alan Stern --- usb-devel.orig/block/scsi_ioctl.c +++ usb-devel/block/scsi_ioctl.c @@ -258,8 +258,11 @@ static int blk_complete_sghdr_rq(struct hdr->host_status = host_byte(req->result); hdr->driver_status = driver_byte(req->result); hdr->info = 0; - if (hdr->masked_status || hdr->host_status || hdr->driver_status) + if (hdr->masked_status || hdr->host_status || hdr->driver_status) { hdr->info |= SG_INFO_CHECK; + printk(KERN_INFO "SCSI ioctl error, cmd %02X, prog %s\n", + req->cmd[0], current->comm); + } hdr->resid = req->resid_len; hdr->sb_len_wr = 0;