Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752310AbdLKDPp (ORCPT ); Sun, 10 Dec 2017 22:15:45 -0500 Received: from mail-db5eur01on0050.outbound.protection.outlook.com ([104.47.2.50]:21072 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752048AbdLKDPm (ORCPT ); Sun, 10 Dec 2017 22:15:42 -0500 From: Yinbo Zhu To: Felipe Balbi , Greg Kroah-Hartman CC: Mathias Nyman , "open list:DESIGNWARE USB3 DRD IP DRIVER" , "open list:DESIGNWARE USB3 DRD IP DRIVER" , open list , Xiaobo Xie , Jerry Huang , Ran Wang Subject: RE: [PATCH v2] usb: host: Implement workaround for Erratum A-009611 Thread-Topic: [PATCH v2] usb: host: Implement workaround for Erratum A-009611 Thread-Index: AQHTcAyGjgXsnJgVWUy1+tsNjEwqHqM5PHCAgAAGbYCABCxycA== Date: Mon, 11 Dec 2017 03:15:37 +0000 Message-ID: References: <20171208094942.46748-1-yinbo.zhu@nxp.com> <20171208094942.46748-2-yinbo.zhu@nxp.com> <20171208102111.GA16245@kroah.com> <87vahhpkhw.fsf@linux.intel.com> In-Reply-To: <87vahhpkhw.fsf@linux.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yinbo.zhu@nxp.com; x-originating-ip: [192.158.241.86] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB1501;6:SPTG98PFDeGJ9nbe+wpE50udQi1ebrAf33gxieAJvG7AZtE/hI45X52+Bi5SDaYSBWpjc1ZhI5VWesJx4HuERtbajqD5498TSay/rkcecj4JJ3zkjYelWmPSiZILT63EGoyU8+ihzic2oHnOXlyNnJ6b2fuo3hTr5hB9MXK6MjmLZ+2Qi8jZWziD4kmUcBqBDgbHvQhZGDX0r5okjytmFjvzZ0qaOUHsSw70DD/iPMQIg4SXILI0fExU4rXKyuoRGXzINSqyXHCgPUpftWORkaSjLgrXpQJ4/FA2ZkiCJfKvJPqTBwncBYMh96ZNQKaEvXN94J/uHgzNb41a3rr0siOnKTBIQ75GLc0yq59tJ7c=;5:pcJj5wCe/rmj3p8vE4B1ukLVNyfmNNRezZhYWpUo2Fw296OsYp92WGHLofew4Oj7aY0nP1xcc8YIJTFdURbTUg0SjFPtKfrpY92vHuMNtE9mLgmpfhev+ly5PPuqAJK35b+QSRQrqAq05MuWRfcfafJY+vP4cPwqpuRP9j+lEz0=;24:PBkewd/5yVhHHvx36aTS0VCCsPjBt+xw2uqVK1N+3Dnk38QwJl99rkNo9TZwxvnzicV+0lDtA1ruiOccUdNTKZdpPn1C6mo8lKoqxprxhlU=;7:XtYvaG4OlnXvBjkvLRSfkFaP66C5O3Ut+8fbovJLtwrorfoDranvtj6mC6JGmAis4Rr+NGFzDc67rH9Sioo/XnpU44GCEaPDPlJzW2uamlBr4Hq3v//D5sxXe/QC2NzxFrDXGOH0KSLXnxt19PSYVIff/6qJvTbsMolEE9S3REBpaNpGo7+rjJasQ1kj2gRHPTA6V0dnXhbXqktc7lXmf8ufY3IfyDxmhKEk6tTMXGtgXwu0GFbIy1uqV1IuZmYZ x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10009020)(366004)(376002)(39860400002)(346002)(199004)(189003)(50944005)(13464003)(24454002)(25786009)(102836003)(99286004)(53546010)(3280700002)(97736004)(575784001)(81156014)(305945005)(55016002)(8676002)(81166006)(3846002)(86362001)(2950100002)(2900100001)(4326008)(2906002)(105586002)(68736007)(9686003)(3660700001)(6116002)(478600001)(53936002)(6506006)(229853002)(106356001)(5250100002)(33656002)(5660300001)(6436002)(74316002)(6246003)(93886005)(316002)(54906003)(66066001)(110136005)(7696005)(14454004)(8936002)(59450400001)(7736002)(76176011);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB1501;H:VI1PR04MB1262.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 35af9e3e-655c-4210-7a79-08d540457370 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307);SRVR:VI1PR04MB1501; x-ms-traffictypediagnostic: VI1PR04MB1501: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(185117386973197)(84791874153150)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231022)(3002001)(6055026)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123564025)(20161123560025)(6072148)(201708071742011);SRVR:VI1PR04MB1501;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:VI1PR04MB1501; x-forefront-prvs: 0518EEFB48 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35af9e3e-655c-4210-7a79-08d540457370 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2017 03:15:37.5059 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1501 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id vBB3Fo0P022229 Content-Length: 3490 Lines: 81 -----Original Message----- From: Felipe Balbi [mailto:felipe.balbi@linux.intel.com] Sent: Friday, December 08, 2017 6:44 PM To: Greg Kroah-Hartman ; Yinbo Zhu Cc: Mathias Nyman ; open list:DESIGNWARE USB3 DRD IP DRIVER ; open list:DESIGNWARE USB3 DRD IP DRIVER ; open list ; Xiaobo Xie ; Jerry Huang ; Ran Wang Subject: Re: [PATCH v2] usb: host: Implement workaround for Erratum A-009611 >Hi, >Greg Kroah-Hartman writes: > On Fri, Dec 08, 2017 at 05:49:41PM +0800, yinbo.zhu@nxp.com wrote: >> From: "yinbo.zhu" >> >> Description: This is a occasional problem where the software > > No need for a "Description:" word. That's just assumed here, right? I will remove "Description:" thanks. >> issues an End Transfer command while a USB transfer is in progress, >> resulting in the TxFIFO being flushed when the lower layer is >> waiting for data,causing the super speed (SS) transmit to get blocked. >> If the End Transfer command is issued on an IN endpoint to flush out >> the pending transfers when the same IN endpoint is doing transfers on >> the USB, then depending upon the timing of the End Transfer (and the >> resulting internal FIFO flush),the lower layer (U3PTL/U3MAC) could >> get stuck waiting for data indefinitely. This blocks the transmission >> path on the SS, and no DP/ACK/ERDY/DEVNOTIF packets can be sent from >> the device. >> Impact: If this issue happens and the transmission gets blocked, then >> the USB host aborts and resets/re-enumerates the device. >> This unblocks the transmitt engine and the device functions normally. >> >> Workaround: Software must wait for all existing TRBs to complete >> before issuing End transfer command. >> >> Configs Affected: >> LS1088-48A-R1.0, LS2081A-R1.1, LS2088-48A-R1.0, LS2088-48A-R1.1, >> LX2160-2120-2080A-R1. > > What are these Configs? That doesn't seem to match up with anything > that is in the kernel tree that I can see. These configs is soc information, I don't enable it on these platform dts. Although the erratum issue can't be reproduced. >> >> Signed-off-by: yinbo.zhu >> --- >> drivers/usb/dwc3/core.c | 3 +++ >> drivers/usb/dwc3/core.h | 3 +++ >> drivers/usb/dwc3/host.c | 3 +++ >> drivers/usb/host/xhci-plat.c | 4 ++++ >> drivers/usb/host/xhci.c | 24 ++++++++++++++++++------ >> drivers/usb/host/xhci.h | 1 + >> 6 files changed, 32 insertions(+), 6 deletions(-) >> >> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index >> 5cb3f6795b0b..071e7cea8cbb 100644 >> --- a/drivers/usb/dwc3/core.c >> +++ b/drivers/usb/dwc3/core.c >> @@ -1106,6 +1106,9 @@ static void dwc3_get_properties(struct dwc3 >> *dwc) >> >> dwc->quirk_reverse_in_out = device_property_read_bool(dev, >> "snps,quirk_reverse_in_out"); >This was generated on vendor tree. This quirk doesn't exist in dwc3. Also, >update your tree and review MAINTAINERS file. It has been almost 2 years since I left TI :-) >-- >Balbi Hi Balbi, The quirk that I had add it in dwc3. Your meaning is that I can't use quirk to enable or disable the erratum, isn't it? The tree is git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git, I had updated it. Thanks. Yinbo