Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1430506pxb; Sun, 7 Mar 2021 19:01:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnqMMPrWRnNk2MXrJ1k0kbHRDcbjBMy+HbTq3RfBNlRBLi8ToYdPgctmL3H3qcVlr/tCt2 X-Received: by 2002:aa7:d94c:: with SMTP id l12mr19240657eds.311.1615172509455; Sun, 07 Mar 2021 19:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615172509; cv=none; d=google.com; s=arc-20160816; b=OYeEHE01XvPMrqKOMpRKh2ouJ20NcuqJXsB23yo99jchQ4sWg17VGiVF6zR/sLDbYs kFtvOZCEumPOLjg1npIFCn/5YTEp1KoZbT+ir2Z1Et6IKHzrQEIZT04Fe8ra2Dia0A6R Xloo8QgNeR5ln1hwvG680UNOZ3w1zNxnFrosAYvlDnNMquELd9SGpoAxzDUDaiFwY0IZ MLLLPYkDP3mxrOYVcn9FxBTXcR5XxuylvdBXT2BOfCy0X8CmI33x9xQJNFqq+gPqB/it zzQI4HGjDGKHyJ+38XPSHenfXuTZSm1sytjs1tnl+qfZIqLdtqGEMWU+syFcwnlyIvjC bGgQ== 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=xM+QvQLmD4ztAJT89aS1AHt4PkZF/6UhsVso6FurF1w=; b=XrEuen4pefvC/qdPq1hZ3KYyh0nccDeu7hxoXR0papDh5itaezcj+Yizhn8oCR8vYZ Q7RWUV6xYoQgB5bzUC1AknOpVvyY7s/ZgsHVcWwejIlwVumi5eUoUCb9U7ivjqqsN2YK v9ZCHnNXx1/5/wMh5OP463VKdYTfgHIU5dhH+Cql6AD1uwr5l1TjVzp73CuNtgMBinzI OgZN3ROXHeXtyzQ5KFgQ1OJZLkjXazl2yzbF7t5JQXwiBiaepuRc8qosd27D81kNmQYn caenx2oF/+QFmYGp5HSpQxsi/iFAH8PngpVP/hzXHa1Us4s/wPL8DFYfJ4N65/Nyw4Po cjIw== 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 le26si4910816ejc.659.2021.03.07.19.01.14; Sun, 07 Mar 2021 19:01:49 -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 S232555AbhCGRHP (ORCPT + 99 others); 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