From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 563D0C433E6 for ; Sun, 7 Mar 2021 17:07:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1BC0C650FD for ; Sun, 7 Mar 2021 17:07:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232558AbhCGRHP (ORCPT ); Sun, 7 Mar 2021 12:07:15 -0500 Received: from netrider.rowland.org ([192.131.102.5]:48077 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S231395AbhCGRHD (ORCPT ); Sun, 7 Mar 2021 12:07:03 -0500 Received: (qmail 105706 invoked by uid 1000); 7 Mar 2021 12:07:02 -0500 Date: Sun, 7 Mar 2021 12:07:02 -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: <20210307170702.GB104554@rowland.harvard.edu> References: <20210305194745.GF48113@rowland.harvard.edu> <20210306165808.GD74411@rowland.harvard.edu> <20210307154645.GA103559@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 Sun, Mar 07, 2021 at 05:57:39PM +0100, Sedat Dilek wrote: > On Sun, Mar 7, 2021 at 4:46 PM Alan Stern wrote: > > > > On Sat, Mar 06, 2021 at 09:49:00PM +0100, Sedat Dilek wrote: > > > > > For testing purposes, I stopped these systemd services: > > > > > > 1. systemctl stop smartmontools.service > > > > > > 2. systemctl stop udisks2.service > > > > > > Last seen xhci-reset: > > > > > > [Sat Mar 6 21:37:40 2021] SCSI ioctl error, cmd 85, prog pool-udisksd > > > > > > So, that every 10min xhci-reset was caused by pool-udisksd from udisks2.service. > > > > You have found the cause of your problem! Great! > > > > And now, obviously order to fix the problem, you'll have to look into > > the udisks2 service. Maybe you can configure it so that it won't send > > the problem-causing commands. > > > > I tried yesterday to add --debug option to the ExexStart line of > udisks2.service, but did not see anything helpful. > > There exist more user-space than udisks2 causing these xhci-resets. > The cmd#s are also clear: A1 and 85 - whatever they mean. Those are the two prefixes which indicate an ATA command is present. You can find them listed as ATA_12 and ATA_16 in include/scsi/scsi_proto.h. > As said with Linux v5.10.y and Linux v5.11 I have not seen this. Have you tried setting the quirk flag we discussed earlier _and_ turning off udisks2? Maybe also turning off the other services which generate these commands? Perhaps you'll find that when the quirk flag is present, some of those programs _don't_ generate any ATA commands. > What about CCing linux-block and linux-scsi people? Sure, go ahead if you want to. Alan Stern