Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp275002pxb; Fri, 5 Mar 2021 22:54:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcKXKqxRVpQE/lGbmKQhbZd6u6gufISxjOquLWcRIRaM6dOdXnMgAeMAJvnbavIil26N1l X-Received: by 2002:a05:6402:4314:: with SMTP id m20mr12331734edc.5.1615013682062; Fri, 05 Mar 2021 22:54:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615013682; cv=none; d=google.com; s=arc-20160816; b=Zo+u1bzsUrItMyt6alUIlEjUJ3advNz07ol0pXOCFMSuIY2vzLXOMc9e0gFEKNYCHq 4NBkjDnAASpTz4UbirEutxr57Tx5tyrRhCnGzN4RaSj3mqeFfvFhEq9Lm6cLbRGPf76m YpiYrg3bcd0Gw+pZN/0FEQ5fgRzVrwytMHM6qggI1bqLsotGvI/bZywdg2dwMayrS/sv /C+X2HypxNiK9L+hjuuDy0eX58Gprl6lFANMsy+lBRT4BP2FogmfEDIxWe8svZcktD7y 2CICmVJY2bPKlMnygvj/g6wt9pjgXF0KA4gl8xaAcQEQKcjqo3eWIEb95ANY0TWA50lZ tRoA== 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=cR4EbAaWsK1GhD4zwAYNBpo68gZvVfEMYU6ng3H7RUI=; b=qy6bnpjtps0T+CIJj0bCpn5yOaY0s04gerKHcFj1UPQ4UPmoUjcLPnv11fD3gR0ip7 BiWY22BtA4h4WH5DmhLZ9Fqg6DxU9TiVNc+MJo5jGqzdG0gY4CJOsTCchMds0owVfFXV /7GldXyIjan53RIXcrAGKpdy8KuEkyjZ/FT4ErmhG2VdFUm9qEv7fGc81qQ9fxPXjJgl N+KjXXCq/Pq40CFKUZuyorQNru2iSkK4jBx/0zQjS9lU5ax2Tty2Xcdn7SVN+zG5nqsm uXqC39LgMLbczd0nmbZoBFPBGyZo6UfM9fRm1gkKyMlhSoL5X1JmFRL58QAR2y07qFNk 3qqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qAY+V1E8; 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 eb13si3168556edb.8.2021.03.05.22.54.19; Fri, 05 Mar 2021 22:54:42 -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=qAY+V1E8; 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 S229651AbhCFGnJ (ORCPT + 99 others); Sat, 6 Mar 2021 01:43:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbhCFGnI (ORCPT ); Sat, 6 Mar 2021 01:43:08 -0500 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E7ACC06175F; Fri, 5 Mar 2021 22:43:08 -0800 (PST) Received: by mail-io1-xd36.google.com with SMTP id g27so4453780iox.2; Fri, 05 Mar 2021 22:43: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=cR4EbAaWsK1GhD4zwAYNBpo68gZvVfEMYU6ng3H7RUI=; b=qAY+V1E8haZkuzHKPYVNf4y6Nzkt2u01XC6fPWqY44vcuxUYY9iYLQR36ekmHG+nNt T7UOab6Qud0ilumiHfi9T2sRvL5QwbTNj9SW87bv0eQuxoqv68qjTZy4c5ngiFfVTca8 +va6W6G2AsRxG9UkKZTnd19w7sKzQxSLI2II6Xqt+NIF23zxcC2+LZndwJZIJGWzd1L1 BqfCFuGJWMHG9EHLnWIihcDlOkvrG6fM4HcZWvWIqhLbwAvv7pn06QrqYNWAuwIQh7kY PRDKfxgG92mcP0ScUB7mX4hEXHNXdPV5s5mFRz+YafSA7BDuGLHqw5mi0za58E3PAfi5 kS+A== 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=cR4EbAaWsK1GhD4zwAYNBpo68gZvVfEMYU6ng3H7RUI=; b=Pu1NKMDitnfesGr7wRBr5yrhOZsBR03r82EUITb/w25UjhwmkJOQQwNfnUnXR7+JS8 sLb0Pjdtc9dAwBGyHYFhEeHpun9fZj/jvvGMRgS5T2bTG8sF4r7mCvp/DSz8sx59moLp zjMtTQq7tCm2xtBzlgmuUsv/fFv5LYWTTVgO1+bVbJbSfwhPSaT4lMJgpeB8Lt/mJ436 bYZk9FAk1bDm4UA/Ah9sEco+T7aG1yQBsDCUq64kSsOQ1k/0DjCvLacAcnESZvXNGfMy qSqRHZz6sJuBwzClWyzxkN0eNmVtcwmQIJWeFXd7NAMj+SmDDkXH5uAtarN/gJZfBZpD muIQ== X-Gm-Message-State: AOAM530twjlGfDRFR6IYNOxLQNp7qYZJWtB6h7ngMF8P4ZSxfYK1v4/y EDgfLrqnDtrZvCpVi/waLIF7FmyC0khI2OmEw84z20SOiXiqQw== X-Received: by 2002:a05:6638:635:: with SMTP id h21mr13265011jar.97.1615012987132; Fri, 05 Mar 2021 22:43:07 -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> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Sat, 6 Mar 2021 07:42:30 +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 5, 2021 at 8:54 PM Sedat Dilek wrote: > > On Fri, Mar 5, 2021 at 8:47 PM Alan Stern wrote: > > > > On Fri, Mar 05, 2021 at 08:41:40PM +0100, Sedat Dilek wrote: > > > On Fri, Mar 5, 2021 at 8:30 PM Alan Stern wrote: > > > > > > 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= # [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 -