Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759593AbcLWCwy (ORCPT ); Thu, 22 Dec 2016 21:52:54 -0500 Received: from mail-db5eur01on0086.outbound.protection.outlook.com ([104.47.2.86]:52288 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752549AbcLWCww (ORCPT ); Thu, 22 Dec 2016 21:52:52 -0500 From: Jerry Huang To: Rob Herring CC: "balbi@kernel.org" , "mark.rutland@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "linux@armlinux.org.uk" , "devicetree@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: RE: [PATCH v3 2/3] USB3/DWC3: Add property "snps, incr-burst-type-adjustment" for INCR burst type Thread-Topic: [PATCH v3 2/3] USB3/DWC3: Add property "snps, incr-burst-type-adjustment" for INCR burst type Thread-Index: AQHSXIOMgYNGFUNpOUuDrhLZ7whDaaEU0q7A Date: Fri, 23 Dec 2016 02:52:49 +0000 Message-ID: References: <1482139554-13618-1-git-send-email-jerry.huang@nxp.com> <1482139554-13618-2-git-send-email-jerry.huang@nxp.com> <20161222184514.hfd4g7ifrz5cv627@rob-hp-laptop> In-Reply-To: <20161222184514.hfd4g7ifrz5cv627@rob-hp-laptop> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=jerry.huang@nxp.com; x-originating-ip: [123.151.195.52] x-ms-office365-filtering-correlation-id: d8159867-19a1-4bd5-ee95-08d42adec814 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DB5PR0401MB1813; x-microsoft-exchange-diagnostics: 1;DB5PR0401MB1813;7:QGzdPK7qjKiINamFaJPpI0nLfnaH2kvC6h09aPMx90sCRtJGohjVIipZxG5WSBvp8iWY3IyzD3izBWi+Rw+1lmbF27L9MWG9xSUTJ5prW/SzShSHm4wRKMExrK6ioCgspNqVMAjU21uHRoJIJ2BvzwGn+wFe1u0W6+rhaTkeM75we6/OIGUKxsi7hwNxfQNt157bPxuM0Jas01UmT2MGitmwr0jaB13bPHyrgkNVhlzKK3dzSwdYYo0QLMvOojo9BpY0/A+RgU0xQq4GtgtT+Bg3oArCpn6rmelbApR+ccpCrgDhrjChVBT7z8yAlrW8BtUMUkSwzKrG4AHxUUCEAGHIpyo0rxBSrw+Se0Eanmj9MxcPoVERzziiCy+Uq/XW14SPoBMhnCQO0JwBUiAHYOeaQ1sZGzAJMVilty0nBwTlziH5qncwiCL2r4PI/JhBHM9bfaD8ciQfzTVuddF8Sw== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(9452136761055)(185117386973197)(258649278758335); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123558021)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148)(6047074);SRVR:DB5PR0401MB1813;BCL:0;PCL:0;RULEID:;SRVR:DB5PR0401MB1813; x-forefront-prvs: 016572D96D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(39840400002)(39860400002)(39850400002)(39450400003)(39410400002)(13464003)(24454002)(377454003)(199003)(189002)(3280700002)(2900100001)(8936002)(66066001)(81156014)(122556002)(54356999)(8676002)(101416001)(33656002)(50986999)(9686002)(105586002)(68736007)(76176999)(106116001)(86362001)(305945005)(92566002)(81166006)(7736002)(7416002)(4326007)(2906002)(2950100002)(7696004)(106356001)(229853002)(6916009)(3846002)(77096006)(76576001)(38730400001)(74316002)(97736004)(230783001)(6116002)(6506006)(3660700001)(102836003)(110136003)(5660300001)(25786008)(189998001)(6436002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB5PR0401MB1813;H:DB5PR0401MB1813.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Dec 2016 02:52:49.1211 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR0401MB1813 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 mail.home.local id uBN2r1W4013135 Content-Length: 2894 Lines: 56 Hi, Rob, > -----Original Message----- > From: Rob Herring [mailto:robh@kernel.org] > Sent: Friday, December 23, 2016 2:45 AM > To: Jerry Huang > Cc: balbi@kernel.org; mark.rutland@arm.com; catalin.marinas@arm.com; > will.deacon@arm.com; linux@armlinux.org.uk; devicetree@vger.kernel.org; > linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm- > kernel@lists.infradead.org > Subject: Re: [PATCH v3 2/3] USB3/DWC3: Add property "snps, incr-burst- > type-adjustment" for INCR burst type > > On Mon, Dec 19, 2016 at 05:25:53PM +0800, Changming Huang wrote: > > New property "snps,incr-burst-type-adjustment = , " for USB3.0 > DWC3. > > Field "x": 1/0 - undefined length INCR burst type enable or not; Field > > "y": INCR4/INCR8/INCR16/INCR32/INCR64/INCR128/INCR256 burst type. > > > > While enabling undefined length INCR burst type and INCR16 burst type, > > get better write performance on NXP Layerscape platform: > > around 3% improvement (from 364MB/s to 375MB/s). > > > > Signed-off-by: Changming Huang > > --- > > Changes in v3: > > - add new property for INCR burst in usb node. > > > > Documentation/devicetree/bindings/usb/dwc3.txt | 5 +++++ > > arch/arm/boot/dts/ls1021a.dtsi | 1 + > > arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 +++ > > arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 2 ++ > > 4 files changed, 11 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt > > b/Documentation/devicetree/bindings/usb/dwc3.txt > > index e3e6983..8c405a3 100644 > > --- a/Documentation/devicetree/bindings/usb/dwc3.txt > > +++ b/Documentation/devicetree/bindings/usb/dwc3.txt > > @@ -55,6 +55,10 @@ Optional properties: > > fladj_30mhz_sdbnd signal is invalid or incorrect. > > > > - tx-fifo-resize: determines if the FIFO *has* to be > reallocated. > > + - snps,incr-burst-type-adjustment: Value for INCR burst type of > GSBUSCFG0 > > + register, undefined length INCR burst type enable and INCRx type. > > + First field is for undefined length INCR burst type enable or not. > > + Second field is for largest INCRx type enabled. > > Why do you need the first field? Is the 2nd field used if the 1st is 0? > If not, then just use the presence of the property to enable or not. The first field is one switch. When it is 1, means undefined length INCR burst type enabled, we can use any length less than or equal to the largest-enabled burst length of INCR4/8/16/32/64/128/256. When it is zero, means INCRx burst mode enabled, we can use one fixed burst length of 1/4/8/16/32/64/128/256 byte. So, the 2nd field is used if the 1st is 0, we need to select one largest burst length the USB controller can support. If we don't want to change the value of this register (use the default value), we don't need to add this property to usb node.