Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2284718pxb; Fri, 5 Mar 2021 11:39:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlGIM71sWrLYE53gNwG9R1+xJv4D9DZScY+mFYeMq/vO5Vrxvb6feMAhkhfrIP+pBgQGT9 X-Received: by 2002:a17:906:9501:: with SMTP id u1mr3927581ejx.324.1614973165615; Fri, 05 Mar 2021 11:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614973165; cv=none; d=google.com; s=arc-20160816; b=cWH4WHet+Paqbmr+dJ2+f2ZnJ91RL4/IiRZfVI/vYmc0VuPqLhVLfUl1JhRKY4S08r 5ySm07MuAmlgHmlHMoRSn4JKoY2lbmSveVuVxeUGlZNCcPVnXMOYvHb9ZeOvSFJDou84 //of0He4XxHsH9gDmp5fpF2inUwAg4vO6dyXFSQ+7/ftHqAMKrA2Mrv6TCaP8qfvKjLa J/szwUdeW5+9gl0VR4UIXh/efQ6q+lH1kVaUa91oRlM/OFLuCXRI0igu18qeRwngIdtF l+XjlmZsaM/zefGiKVokL9CLA/3MfVRGj4pMx9+wsU6DJdH28t0XaK94XqrVBqHBu/kP C8rA== 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=uSeN0qARe+XbbdeZaAL1eJ+yCD+ekoKA0Dc7Yo6zN5w=; b=0Wr7+hPHXBy1DterhZ6H0b/F+rXCJYAROGV+Urp8YhMQTFmXJAt3x1dMV9QkZryBBO dttRMxwfh9s7xowJPSeqoMRxfAewqPDm1gexQGtDEA4iahS21H0oWG3a/Lpaw3o5/AjB qSAaCo744Iz29JTKPBZKKxeHH9/kMBMQ9ekkuusNFeuURShHseLkMnbQ3HHHVUOG9gFF 91j0/e4FOnwi5nlut2W2D5zTlOEIsZKvMnRzNYhCnOnIPqNepQpY8d5/zVhvztzAJyVa tk3Fh7jqLANI6F76k33uGTU8duHLOcJkIFkik2zGPTWNwfrYYnEGSm7LTK3YyGXMPD5G Ddbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M41o+BmI; 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 m20si1965936edv.175.2021.03.05.11.39.02; Fri, 05 Mar 2021 11:39:25 -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=M41o+BmI; 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 S229730AbhCETiE (ORCPT + 99 others); Fri, 5 Mar 2021 14:38:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbhCETiD (ORCPT ); Fri, 5 Mar 2021 14:38:03 -0500 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3510BC06175F; Fri, 5 Mar 2021 11:38:03 -0800 (PST) Received: by mail-io1-xd31.google.com with SMTP id f20so3203381ioo.10; Fri, 05 Mar 2021 11:38:03 -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=uSeN0qARe+XbbdeZaAL1eJ+yCD+ekoKA0Dc7Yo6zN5w=; b=M41o+BmIaooe+W4rMoeQ+HaqRyWpUSThR3xvCrxRlD/OAp4DIPkq4qPN0i3+pYSJ2v PpdXFXHL/gd1rfq/BcqH7AD50kypqwN/ENgPGu9AzAn5c3DNmHw8ypkgwNcnt/2WC0LR 0dGV74V3LV+dzyAkc00mNgpq4MtIEFkZLAbrj4CIlOlH6LKHoZa9WMNnq8CMxA6OkhGt oGz6OhDfXP8XtcgdnM79r18sp+torko5CANFfdgX6VkrfthIK9xunGve487tuOfqlvrq jORQ7yPLhF7gwrQH06mdZhUrKL4yh0MudV9l/bm8UBI8PI0OiuzNuLwnrLmr7ZxM+wN0 2TPg== 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=uSeN0qARe+XbbdeZaAL1eJ+yCD+ekoKA0Dc7Yo6zN5w=; b=CWFp8n4etLSXzyLVJTXdqb4Ja7XqyMQULL2faWlmwD7uDrO5kyUoSQmquKFQy/kPE4 6jqwrev/vwwcEzQ5VtucFkeg5C7RNl+7cOV+rWf0MN5Lo1NC+FAxGIbXUpKmfk73XFTS Rf+Yt0tM564MlDITRBoF6aFkeU7543wfweDBpuLchOGn6KjMKkOar2Tu18JXq1IISzyA CD39tUW8CZbS5rOzVWfdiG9aeh26II8TT4NE1J3UdK8Ckl+L29WsW3LEODkc4lpfhSGl M5RDTuoXFUNvj8hud9iwhE7EJOUhkRG5+ng5BVhSvZberj+kWHOh9l+1lEkRuAC9PLCv L7hg== X-Gm-Message-State: AOAM530ffBCyaKeIrF/LO0krWvnlBluMR/7ajyyOs+L9P6K+epHq8WBT 9AUhCWVlFB1fcTfjUSlOEOpa5ZmxKPL/YG3LMxOE79g4ktBXqg== X-Received: by 2002:a6b:c401:: with SMTP id y1mr9642378ioa.110.1614973082624; Fri, 05 Mar 2021 11:38:02 -0800 (PST) MIME-Version: 1.0 References: <20210301155321.GA1490228@rowland.harvard.edu> <20210305160728.GE38200@rowland.harvard.edu> <20210305192529.GD48113@rowland.harvard.edu> In-Reply-To: <20210305192529.GD48113@rowland.harvard.edu> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 5 Mar 2021 20:37:26 +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:25 PM Alan Stern wrote: > > On Fri, Mar 05, 2021 at 08:05:49PM +0100, Sedat Dilek wrote: > > On Fri, Mar 5, 2021 at 5:07 PM Alan Stern wrote: > > > > Don't worry about trying to decode the output. To me it looks like the > > > drive crashes and needs to be reset at times when the computer sends it > > > an ATA command. (Not all ATA commands, but some.) You can prevent this > > > by setting the following module parameter for the usb-storage driver: > > > > > > quirks=174c:55aa:t > > > > > > where the two numbers are the Vendor and Product IDs for the external > > > drive, and the 't' is a quirks flag saying not to use any ATA commands. > > > If this module parameter fixes the problem, we can add a permanent quirk > > > setting to the kernel. > > > > > > > Thanks Alan. > > > > I did: > > > > [ /etc/modules-load.d/usb-storage.conf ] > > > > # Add quirks for ATA commands for usb-storage devices connected to > > ASMedia M1042 USB-3.0 controller > > options usb-storage quirks=174c:55aa:t > > - EOF - > > > > It is: > > > > /lib/modules/5.12.0-rc1-11-amd64-clang13-cfi/kernel/drivers/usb/storage/usb-storage.ko > > > > But: > > > > root# lsmod | grep usb | grep storage > > usb_storage 90112 2 uas > > scsi_mod 307200 6 sd_mod,usb_storage,uas,libata,sg,sr_mod > > usbcore 385024 14 > > usbserial,xhci_hcd,ehci_pci,usbnet,usbhid,usb_storage,usb_wwan,uvcvideo,ehci_hcd,btusb,xhci_pci,cdc_ether,uas,option > > I don't understand. What is the point of this listing? > I was confused about lsmod and modinfo output: usb-storage.ko (kernel-module name) VS. usb_storage (modinfo: name: usb_storage) > > I have not rebooted yet. > > Depending on how your system is set up, the new usb-storage.conf file > might need to be copied into the initramfs image. > That seems not to be needed. > However, you don't need to reload the driver module or reboot. To make > the new quirk take effect, all you have to do is write 174c:55aa:t to > /sys/module/usb_storage/parameters/quirks. > OK, keep this for next USB(mon) testings before doing a reboot. > > Interferences with PowerTop? > > Maybe. It's entirely possible that PowerTop or some other program is > issuing the troublesome ATA commands. > > > These xhci-resets happen every 10mins in a sequence of 4. > > > > I have here a powertop.service (systemd) with passing --auto-tune option. > > That was not a problem with previous Linux-kernels >= v5.12-rc1, so. > > > > Alan, what do you think? > > Try turning the service off and see if that makes any difference. > NO, it is not powertop.service causing the xhci-resets. - Sedat -