Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp99764pxb; Tue, 2 Mar 2021 20:44:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNIoM4YzwtxQe32g+eW7dKtntdxwfxcgy5SYgFx6q9gzTIKThYNCmfuOBMWHcrGRdWXuSa X-Received: by 2002:aa7:d547:: with SMTP id u7mr14475853edr.347.1614746679258; Tue, 02 Mar 2021 20:44:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614746679; cv=none; d=google.com; s=arc-20160816; b=g1ey+HJtQ/nkRwQtaTYH/99ShFoJpTIVFsizztzQhymv6MAJANqyO8eoI08qMC7BiJ sRnJHnlhsHhmrmoxM6Og47HPfutCARxaSQbyXBji2GoNYzx81PWL2/VY7bRLBDBkhnAm JigU0Ps+X8ujlGI60RJhwLKscB/kXAMRatrNUuNI6KTSF4zdpUl1/FhaPJop/I0VG9vb wyl6LGXfVUo62B4GWKF6arUP5pSGYZ9JmoCQr3gZcWWx/6o3H70P0ncHjvOQwv3qFs6o +TNIb0jacCoIXr5B+/TvTwdAiPkTfESg/zPswKRLHyPbSsZWqrIGx/VlrpfgY/otH1Xy ikwQ== 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=oiGnO7iqMMwPiY5iZCm70dYRrrme/A+XiQ7ROm8c7UY=; b=QmXaG97tgZWtn+J81Q9FDXlPoXrUqqJaum9w/5ZSmZC6yE/bK7NbmsbvrCPCqtr2ow GxlMB6x04ZvFnGOTnY658dwZ6zOWHsFsRQHJu0yykpU+nLwmiKmPAq3iriOVvxlTQEHd rq/xGd7HRK2k8pjQTQPk7lkjV2lpFn+V8dT4JAy1rQRYLXP7RbBP9LA88hVPotB9f5Xt JVM7bJ++vn/Bbpo3KbbW+2OUz96Q121gb0B9C98rk1NtB5qzMVswKjM1sm/4p8ffsjjY IkRAZaekJovq0ok/7hDpBtAgdnhZAgaVlSP7jluJfeLnEZHV6lk8A0EUrgArMaB6TtAz s1Pg== 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 co24si6301781edb.599.2021.03.02.20.44.17; Tue, 02 Mar 2021 20:44:39 -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 S236969AbhCAPyP (ORCPT + 99 others); Mon, 1 Mar 2021 10:54:15 -0500 Received: from netrider.rowland.org ([192.131.102.5]:55657 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S236976AbhCAPyI (ORCPT ); Mon, 1 Mar 2021 10:54:08 -0500 Received: (qmail 1490473 invoked by uid 1000); 1 Mar 2021 10:53:21 -0500 Date: Mon, 1 Mar 2021 10:53:21 -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: <20210301155321.GA1490228@rowland.harvard.edu> References: 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 Mon, Mar 01, 2021 at 09:54:38AM +0100, Sedat Dilek wrote: > On Wed, Feb 24, 2021 at 6:25 PM Sedat Dilek wrote: > > > > On Wed, Feb 24, 2021 at 2:44 PM Sedat Dilek wrote: > > > > > > Hi Mathias, > > > > > > I am here on Linux-v5.11-10201-gc03c21ba6f4e. > > > > > > I see a lot xhci-resets in my dmesg-log: > > > > > > root# LC_ALL=C dmesg -T | grep 'usb 4-1: reset SuperSpeed Gen 1 USB > > > device number 2 using xhci_hcd' | wc -l > > > 75 > > > > > > This is what I have: > > > > > > root# lsusb -s 004:001 > > > Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub > > > > > > root# lsusb -s 004:002 > > > Bus 004 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA > > > 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, > > > ASM1153E SATA 6Gb/s bridge > > > > > > My external USB 3.0 HDD contains the partition with my Debian-system > > > and is attached to the above xhci bus/device. > > > > > > Can you enlighten what this means? > > > Is this a known issue? > > > Is there a fix around? > > > > > > BTW, in which Git tree is the xhci development happening? > > > Can you point me to it? > > > > > > I am attaching my linux-config and full dmesg-log. > > > > > > Also I have attached outputs of: > > > > > > $ sudo lsusb -vvv -d 1d6b:0003 > > > $ sudo lsusb -vvv -d 174c:55aa > > > > > > If you need further information, please let me know. > > > > > > Thanks. > > > > > > > Looks like that xhci-reset happens here every 10min. > > > > [ To Greg ] > > The problem still remains with Linux v5.12-rc1 (see [1]). > > Yesterday, I ran some disk-health checks with smartctl and gsmartcontrol. > All good. > > For the first time I used badblocks from e2fsprogs Debian package: > > root# LC_ALL=C badblocks -v -p 1 -s /dev/sdc -o > badblocks-v-p-1-s_dev-sdc_$(uname -r).txt > Checking blocks 0 to 976762583 > Checking for bad blocks (read-only test): done > Pass completed, 0 bad blocks found. (0/0/0 errors) > > Good, there is no file-system corruption or badblocks or even a hardware damage. > > Anyway, feedback is much appreciated. > > Thanks. You can use usbmon on bus 4 to record the USB traffic. It may indicate why the resets occur. Alan Stern