Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1686823pxb; Sat, 23 Jan 2021 02:18:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwk5OHpljoKpmgFonhLVF4UYPz7MZgHSiTS1IkM33MkCo358BczMc4EXLdLMkSzOhJecQOX X-Received: by 2002:a17:906:59a:: with SMTP id 26mr1017279ejn.309.1611397119216; Sat, 23 Jan 2021 02:18:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611397119; cv=none; d=google.com; s=arc-20160816; b=TOf0UFj+YILC0I0ofvC3VWD8mv7LwA2ftSbjcA1Lv164DaRF51y2UeC/Hv4Sgpud5Q Qv2gMxO6rxxZIwbu9UFOHfvM+m4bJe6Ei/f/Bea+Tx8tQ9uWIHxSQ8i+MnyH/1WN2P/L ZhPpWYdAS/WXe8/xjkvpq14g18vrlIOPCLnCYm0ZKWneRI1ut3Gd4ouqkZ4iRwjQZf0g AuxgL5XL89Wwr30paqBFu5K/bTwnDN6UugB2UIzPwWChZ6zTgqlBNSW3cCil6IT0bGqA mN82Z+1gDTDAkbmaYYsJH2ElvSCkHJPXgZEhLON5sSMB0aYjxNtH7C3/h693LR0G1iUs JsPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Izj47kXbtKgPCLKSTYUUa1Qo2RyDIFsf3IrPAR31R/U=; b=NAoIdtrnGsl/20WsWEzahVBovogi9qgVFq04hB5MXA/fg4Pq7hbqpZvONmtH0bCg0o +MJZPJZA7OU/2oiciQS9oh99e5Ha7oGKGv5WuRy34rsoyD/7n+LeYjcrm4ku0Uere3Wp MfEVTtBg0RN7q1cirREoc9rf+NIGdTfjZOxjFjzYz8kC9BHeAuj2YyowjUqY4GYZ/zHO gIRNw7uLAZCSeQLOyP9D/bghnZHXsHvUrd5BOYd7VJVU3uH4bcyD1OgVla+aetxoFBtV QtuLsnzWtqDlyj/tolZS+wBZ4zA5JYERZiGbHvuJSDyFxwU0l9Y0CMIo55WaoFM2rHKz iW8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=XnjgXp8S; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si3999544ejq.233.2021.01.23.02.17.44; Sat, 23 Jan 2021 02:18:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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 (test mode) header.i=@wp.pl header.s=1024a header.b=XnjgXp8S; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726829AbhAWKPR (ORCPT + 99 others); Sat, 23 Jan 2021 05:15:17 -0500 Received: from mx3.wp.pl ([212.77.101.9]:56007 "EHLO mx3.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726722AbhAWKPM (ORCPT ); Sat, 23 Jan 2021 05:15:12 -0500 Received: (wp-smtpd smtp.wp.pl 15961 invoked from network); 23 Jan 2021 11:14:19 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1611396859; bh=Izj47kXbtKgPCLKSTYUUa1Qo2RyDIFsf3IrPAR31R/U=; h=From:To:Cc:Subject; b=XnjgXp8SeijAClFNhxUsndJRGNpU55P0i83Iu3D+htF+lg0QF6EcRSSKItmWtkUmp EjqXKMQtRGB7X/BXHjWRYK/vPquEQMan1i3NUEsmxsFjkKy/668qP+AhdYweB0stKs BTuyIGBl3CkxEkuOzbwvx040SZ/00Qx50wzIqf9c= Received: from ip4-46-39-164-203.cust.nbox.cz (HELO localhost) (stf_xl@wp.pl@[46.39.164.203]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 23 Jan 2021 11:14:19 +0100 Date: Sat, 23 Jan 2021 11:14:18 +0100 From: Stanislaw Gruszka To: Mathias Nyman Cc: Greg KH , linux-usb@vger.kernel.org, linux-wireless@vger.kernel.org, Mathias Nyman , Bernhard Subject: Re: [PATCH] usb, xhci, rt2800usb: do not perform Soft Retry Message-ID: <20210123101418.GA16688@wp.pl> References: <20210122104342.12451-1-stf_xl@wp.pl> <20210122132650.GA13029@wp.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-WP-MailID: ab018e1722f58129cd15be8400460f76 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [YfMk] Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Jan 22, 2021 at 05:00:21PM +0200, Mathias Nyman wrote: > >> Or is this due to the specific host controller device hardware? Should > >> this be a xhci quirk for a specific pci device instead? > > Exactly, this should be checked. > Stanislaw, weren't there a few users already that saw this issue? There are 30+ users cc-ed in the bugzilla report. However I think some of them are not affected by issue originally reported by Bernhard. They just saw "WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state" message caused by different problem and added comment to this particular bug report. > Do we know what xHCI controllers they were using? What I can tell issue was reported mostly on ASMedia and AMD controllers. We can ask for exact vendor and device IDs and just add xhci->quirks flag. However I'm not entirely sure that xHCI hardware misbehave is actual root cause. I think equally probable is that connected device do not handle soft retry correctly. In that case disabling Soft Retry per device would be actually "lightest hammer" since other devices connected to the xHCI host could benefit from faster recovery. Is there way to debug/identify which side: host or device hardware misbehave when Soft Retry is performed ? Stanislaw