Received: by 10.223.185.116 with SMTP id b49csp5737040wrg; Wed, 7 Mar 2018 17:39:06 -0800 (PST) X-Google-Smtp-Source: AG47ELu+a9Jq1wOru3yjOzvlM0krlHWD6rJSTmsyGMWuO2+/LbyOPuUzrR7dIh7I95E3LM+V4Mhm X-Received: by 10.98.35.68 with SMTP id j65mr24380441pfj.5.1520473146561; Wed, 07 Mar 2018 17:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520473146; cv=none; d=google.com; s=arc-20160816; b=t2JW+BGqoBJfL0tK+XDHgoOtHRcEOyHflLolc3GXW5TeGw4Nf3B6iJq28+HALynH1r 2g6Vz7ebhkHz9DtYfKC2CVkMbcRlnyFuBuwKIhtGVT9mionnnqQ5fwiom9vUgZhbSUL3 WBnqCTRi9tRJ+Yn89TWAachcAtJ2cAAXvMfz4YVIKybvrQK+JSJ/nwo38avAFn4ntL/E VyqRjJYtSOGAiHM9r2FJsweW+Kbpt86O32J7f3jWh/ynH7falVMA+zV59khWQ+gaw6pz GMvkB8ZPo3lEzf3NaOthMzK7784uZCLL+wcUkdwuzO2IgTYTbXYN8kNpqhG5P0hB8yjS tNwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=a3Vqy9QuuXQ0c1v0Z9WCJvp/dOfCQeNMX3PYmpe3m7E=; b=uXjJ0o+uJ/adFOrCR+SXvx3bjpcQbNGRnuq8Dd3Y6ExuoWOWSx+nnS2jtnmi1PyL/J bQ1KF8yz5I2X1c3g804hzmKCxSuO15mI4hgLBldR8IP2jq2BaCZ4rDpb8qHLdqL6HD5U au+Ye2X1l8tKeW9O9LfrXP14834pF2GbCwOLQK3jn1eZPQB5JpaGXsSBdVpXpUd+bsMw pwOx5g4Ui6R78MrGU02cFKwbhu60d9c59AnpqGKcAGHCrI3v5qCMtAxUEbKHhlWf4bQE ZXfOJLsRG1M25VC/0v7rNUbjWg/kzi/EnTKtyZSkN71Ol+TXiil5f5NeAckepeq63puU 8p1Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5-v6si13724285plv.94.2018.03.07.17.38.51; Wed, 07 Mar 2018 17:39:06 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934613AbeCHBht (ORCPT + 99 others); Wed, 7 Mar 2018 20:37:49 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:40524 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933351AbeCHBhr (ORCPT ); Wed, 7 Mar 2018 20:37:47 -0500 Received: by mail-oi0-f65.google.com with SMTP id c12so3222480oic.7; Wed, 07 Mar 2018 17:37:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=a3Vqy9QuuXQ0c1v0Z9WCJvp/dOfCQeNMX3PYmpe3m7E=; b=JB26HMwQi9MoldnFxS7xcBkySC5AMhKIZCdhEChNcN4GLLAZH9ETZajEGVsAyDfj/K 3Wu8CkMMSykzVUNGHjApSUq8PUIFQ8JkVzD7NzAiwppbjAkcVRLRjRd7VYooffb4y94t 7M3f9klTvXiJa/8SNihGfmUd2BskHdydLouZbENg7L6bTuRPYAnPwlQxdquBLpnAFobd HtA6HX0sFD8AVWuegMWC1kbgMYc+y6lK1kv/NXzgr7C90/xbpOQyhc7RjO9h9qjL2mcb VRrsq0xU6hNZ+HMl7hiffbq5vSEaPrdOfjgxPXmjsL1sROx7S/VnSVqEuP/4ZKihOhZM rPvg== X-Gm-Message-State: AElRT7G91PbvO+0WAf1e5f4pMa94MkKPiSKoaC+V0+gGu6EvJKuQ9098 Nd18SJPQfzr625pRBa0f7g== X-Received: by 10.202.225.214 with SMTP id y205mr14642647oig.37.1520473066830; Wed, 07 Mar 2018 17:37:46 -0800 (PST) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id w15sm3257989oie.58.2018.03.07.17.37.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Mar 2018 17:37:45 -0800 (PST) Date: Wed, 7 Mar 2018 19:37:45 -0600 From: Rob Herring To: Ran Wang Cc: Felipe Balbi , Shawn Guo , Greg Kroah-Hartman , Mark Rutland , Russell King , Catalin Marinas , Will Deacon , Li Yang , devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/3] USB3/DWC3: Add property "snps, incr-burst-type-adjustment" for INCR burst type Message-ID: <20180308013745.xaqiwoyaytu56rfq@rob-hp-laptop> References: <20180306085911.5930-1-ran.wang_1@nxp.com> <20180306085911.5930-2-ran.wang_1@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180306085911.5930-2-ran.wang_1@nxp.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 06, 2018 at 04:59:10PM +0800, Ran Wang wrote: > Property "snps,incr-burst-type-adjustment = , ..." for USB3.0 DWC3. > When only one value means INCRx mode with fix burst type. > When more than one value, means undefined length burst mode, USB controller > can use the length less than or equal to the largest enabled burst length. > > While enabling undefined length INCR burst type and INCR16 burst type, > get better write performance on NXP Layerscape platforms: > around 3% improvement (from 364MB/s to 375MB/s). > > Signed-off-by: Changming Huang > Signed-off-by: Ran Wang > --- > Changes in v5: > - add support for ls1021a, ls1012a, ls1046a, ls1088a, ls1021a > - update ls208xa support according to code base change > Changes in v4: > - change definition for this property. > Changes in v3: > - add new property for INCR burst in usb node. > > Documentation/devicetree/bindings/usb/dwc3.txt | 6 ++++++ > arch/arm/boot/dts/ls1021a.dtsi | 1 + > arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 1 + > arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 +++ > arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 +++ > arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 2 ++ > arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 2 ++ > 7 files changed, 18 insertions(+), 0 deletions(-) > > diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt > index 44e8bab..d1779b2 100644 > --- a/Documentation/devicetree/bindings/usb/dwc3.txt > +++ b/Documentation/devicetree/bindings/usb/dwc3.txt > @@ -59,6 +59,11 @@ 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. > + When just one value, which means INCRX burst mode. When more than one > + value, which means undefined length INCR burst type enabled. > + The values can be 1, 4, 8, 16, 32, 64, 128 and 256. I don't understand the multiple values for undefined length burst. Why do you need burst length if length is undefined? Looking at the driver, it looks like you only care about the largest value. Rob