Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4227872ybp; Mon, 14 Oct 2019 01:05:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoGzNAzZfRBs0ZnxVrOJl96v31sDt4J+GUawOderllXjCErMe/WFIoh2Ce040f7UwDnJDT X-Received: by 2002:a50:d54c:: with SMTP id f12mr26774047edj.116.1571040334570; Mon, 14 Oct 2019 01:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571040334; cv=none; d=google.com; s=arc-20160816; b=gMjfBOWbfzo4rILPmvvybG44RD3qU3YHe+fpDSK0gWFE/lWE4I2B+w09iTdeNJNN+S 0g2mbrEmAbn/KLD1buNUUTpYLQwkUyoHEu8ErW0E2NtgaJYFw1Ly4YmyozeRq5eyQzQW Qz4lFDe1sNwsc0W05VgaBBPzfsqKoORnLp/R6xmJTSejTK8XZDzJqfHvRl6eCIE6IAWm sX2x7KOkqjzf8XfSYGnpfFuf9evBWWzdj2tc5cbiqNYLAPnOUzWo2W1K7h6bhHqrefxO 5paujmel1kmSTixVmIHCNLs4sulbfHg2cgWy8euRpUqmf2kS9JI33Uso7Lz9g65dxmgl mPmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=tyI00C/UK7K4PQy4xFqxp8MbPcwL1mieFcKcaiGuD80=; b=t4o922gNeb42R4+Tz4B4nuj+yy/kPjQjIeU7OgVnzX16i79i/hSAdptlM5Fs4dJRRT IMmCcErxbcZTaOsZgElJPX2zt24Zff/IgjtkDCvOBa3ExWx63lfX7awcfUOAwWJe3X+5 NNJvNC/P4iV9aMVAxlCJPkpvlTF2xwo/ic/fWc6IMZt2XQ96ayxLEf6bssTruj4r1D/F dGiMZD2ghl4qU0kPay1aXcdnw5NeOrSYgCQ0jQjwkh6nIIyQEWxgk2F4w0+D6VsM3phh t15jEyRT8yGcnLVBOdLmKV3CxFEg40c+dcg+5RdjPwo9HWoKi1TZEcZmc0uExmlstGxI hSWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k39si11806352edb.52.2019.10.14.01.05.09; Mon, 14 Oct 2019 01:05:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729918AbfJNIEi (ORCPT + 99 others); Mon, 14 Oct 2019 04:04:38 -0400 Received: from mga12.intel.com ([192.55.52.136]:33045 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfJNIEi (ORCPT ); Mon, 14 Oct 2019 04:04:38 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Oct 2019 01:04:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,295,1566889200"; d="scan'208";a="220032491" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.170]) ([10.237.72.170]) by fmsmga004.fm.intel.com with ESMTP; 14 Oct 2019 01:04:37 -0700 Subject: Re: [PATCH] xhci: Don't use soft retry if slot id > 0 To: Bernhard Gebetsberger Cc: Mathias Nyman , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191013003313.3497-1-bernhard.gebetsberger@gmx.at> From: Mathias Nyman Message-ID: <84476602-7551-b667-9803-55016e477b02@linux.intel.com> Date: Mon, 14 Oct 2019 11:06:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191013003313.3497-1-bernhard.gebetsberger@gmx.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.10.2019 3.33, Bernhard Gebetsberger wrote: > According to the xhci specification(chapter 4.6.8.1) soft retry > shouldn't be used if the slot id is higher than 0. Currently some usb > devices break on some systems because soft retry is being used when > there is a transaction error, without checking the slot id. > That is not correct Specs say that soft retry should not be used if we are dealing with a FS/LS device behind a HS hub, this can be checked from the "TT Hub Slot ID" field in the slot context, which we do. In xhci all devices have a slot id, so this change would prevent soft retry almost completely. Specs 4.6.8.1: "Soft Retry attempts shall not be performed if the device is behind a TT in a HS Hub (i.e. TT Hub Slot ID > ‘0’)." -Mathias