Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp644944pxb; Sat, 6 Mar 2021 11:36:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+UvMreFCaYhRY+gyAzlGTCy0rD2GiMDWjXs5a/cNe1UY6rl6d8XHRzsYttyuZ8C4M7o/m X-Received: by 2002:a17:906:b004:: with SMTP id v4mr8229807ejy.340.1615059416294; Sat, 06 Mar 2021 11:36:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615059416; cv=none; d=google.com; s=arc-20160816; b=zGvdkIUxOpv3ljikLvi1DZUYa9eMCHV25IG6HOcluiYwmB4ZOnT9Qi8nhy+YKL5yxU Ms/Cs1rTQrmMWj/SwQiQwSzg1JgNV6donkTfMlTAqzqS2Z1o3JdyRZiacUB0e5A2PQYw Qel9Ir6QuWHQFvHErBMeocxt4K1pAdXT6YwgX4TARRZSYxFhc0L8lbsF9EW5qsP+W0ir CL8ObuRuUGd3EmgUGiP98SAylfIR7I7RrMalYo3MOEAPUq9oPu6ZlI2v64XnhX49UmUR cALIQnhAb9dYlv9J30TypM0IhsbcwMR3g1ZhA3NGOEaZwgYCENeDKatjRj8b6XigxNAz z97g== 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=2lh9+dUR8kVgvf+4hcHiRqiDmfQ8HmE46F/fM16hxVQ=; b=IXSA/MnW4CjhBtV9/0E6nyIQjVKYyfY4uDZIvLwpdcNZAmW86tbmmxhJ3CGfeoEusR uzTZy+xVn5ySiG2h1qmaeiQuio0oW6v0z4Onj/TwzsP1ujn846KfbcOaneZfM/3PqZ5i fehk/IbIkGqC6SrLDNXKurBSlPP66n5D/Ihq7KfIh/TnFCDVd3HZuTzGrXn4N7EMcNis OX+BJgPG69gF64kmnRrNIBH61CYfqBRqJF2b8guzopUUUVc9iwkUhIdypnljFmawvuU2 TVlzF4QRMBBPia5wN/6mPZIvcRblNqiA9/lcjPcI7zPnhfObkrZYg5+y+LGOLAYgbfd5 CYig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="bav/D0rc"; 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 fi16si3761181ejb.239.2021.03.06.11.36.34; Sat, 06 Mar 2021 11:36:56 -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="bav/D0rc"; 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 S231268AbhCFTbG (ORCPT + 99 others); Sat, 6 Mar 2021 14:31:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231417AbhCFTbE (ORCPT ); Sat, 6 Mar 2021 14:31:04 -0500 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D967C06174A; Sat, 6 Mar 2021 11:31:04 -0800 (PST) Received: by mail-il1-x12a.google.com with SMTP id e2so5263444ilu.0; Sat, 06 Mar 2021 11:31:04 -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=2lh9+dUR8kVgvf+4hcHiRqiDmfQ8HmE46F/fM16hxVQ=; b=bav/D0rcQqutO1YZNXtcpUEzITsezhHmyAfADOF+++WKuQxQVBA34z8fcIhihZmlD6 rXtm2gxPinRBx2kAQed40SzlUic/YDWn31hhStdl6q15wOODx+BwTAgNlfvGsLXDpMPR TodaalRuO6R0nQ0RQvCySe/9fDEXEg/GrOuAPW11Zq0eRRHn472n1+1dXiBkt8kC8Qws b7X7tNmOhioEXDlS7RBFGISeD7Qz9VANwz/2CNcdbvnPrChkxqAaeoswiDjqmuHldpAm FLCLhcsY0YN98AB6FQ3y4MA/IiB7sUkmvDmAwJdS+fU6+kFOJtAsQ2LUP0gIhfREa5RS KHMw== 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=2lh9+dUR8kVgvf+4hcHiRqiDmfQ8HmE46F/fM16hxVQ=; b=g1qzbMrnk6pTQi0VBLWsnq1y5YmbqgtkZzMC7flpMVOyrmNqMVmLz/PpV8DCG5t9pu iYHLl+FOakgV0y3JVC+c3d/KfDnztCtrG8W9pdhnLXZJFN5+8kGIMrZN4C4UmAjFK123 DluVVdyfpkiureyPNXXw6XhzqezP8hjaNCaDc1ygr14Izz0ctB87qZqA+rzrK9slY6uw UWb29RoUNzdD5ADCmlMzDKOBavDInvQW8qpClUqJB2XAO/G5NMH7TlUvqSRA7Zjnndki /GjXaR76SNuWma9cpPdBJdZB2+Z+feCqI2to+SvKF8ZBjdzWNNi0hVzdp9WOGZ3xsf7V qr+A== X-Gm-Message-State: AOAM533gGXHbtSBrlwfJCWo/n+4pR9IuBLGHicaMwVhXT/uQHfuxNNyh d38tDeaMDMm/IvfBR0rMK6quZ6VkfnsyWtnz1cAL47ypUHI= X-Received: by 2002:a05:6e02:13a6:: with SMTP id h6mr14773241ilo.10.1615059063453; Sat, 06 Mar 2021 11:31:03 -0800 (PST) MIME-Version: 1.0 References: <20210301155321.GA1490228@rowland.harvard.edu> <20210305160728.GE38200@rowland.harvard.edu> <20210305193003.GE48113@rowland.harvard.edu> <20210305194745.GF48113@rowland.harvard.edu> <20210306165808.GD74411@rowland.harvard.edu> In-Reply-To: <20210306165808.GD74411@rowland.harvard.edu> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Sat, 6 Mar 2021 20:30:27 +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 Sat, Mar 6, 2021 at 5:58 PM Alan Stern wrote: > > 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? > The kernel is the only change. > > 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. > OK, will look into it. > > 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. > This is with Linux v5.12-rc2 - not v5.11.y. I look if I can apply the patch. - Sedat - > > > --- 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; > >