Received: by 10.223.185.116 with SMTP id b49csp6067332wrg; Thu, 8 Mar 2018 01:00:09 -0800 (PST) X-Google-Smtp-Source: AG47ELuLEaVCVj//LtyOWXRzXhCIPVI5WwuIcGyHJ8s0gprzFZ+cdkY5CauzAacOf9NwT3YiEjQ+ X-Received: by 2002:a17:902:3303:: with SMTP id a3-v6mr23198461plc.399.1520499608905; Thu, 08 Mar 2018 01:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520499608; cv=none; d=google.com; s=arc-20160816; b=Z0LAbRPxuIuHZsJZMDgbESMEnjxiocv1OSbWAw0NKlIl4XVT+4W1LYCiIassWd49u+ F4IPZfhf7ufKfmv4XgzsEPvnThUvkRUHw+TBalY1ga/opOqrUSVv0Xfse2a0WXqqHwiL jTKNTocZ01Ww898juV2DJ6wDVT4TNHZ+V6nIZ7eIAusmIMDVB9IC0k+EeqMSoOST9MhR bBd6FPhGQ3Zz+G+coTt4TX/2Xyt5+SJUmw1gfQ7OemV8CjIKj9r9G3w0tWEPoKO+zd+t 3PkrQoS+MPSIDfe4EoJpWFw3EcXro0/FV7FEpCD/5KsHYAhV47NJSj66HtC9ZZ/7obzH Sy1A== 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:dmarc-filter:arc-authentication-results; bh=uBoZa2m32Fw9cVouYx0R1w76CVux7HfA/AC3g3Of7mQ=; b=isT3d5YxUf2hKPabjh2wcoqkXmF9OKyt+shDz4lIgsQUms9KcvO2/QOJ339A9XyJJF 8kHTo76v2DmTwJucnwYIa4zn1gUhQnh2vYoB/btsNZNT+TEGKet6TfMKcJSM5T729ieO m/pCYia/aNhkFNX/h0Fn2NM3L75MkM4KgtYhj0ZSzd8FvrYvJ8pmrWWvP9lAUYRG8fmu uJ/Is9ozCxcqbuYk8cDiGiVpH3CmQNXe2efVd9mPmqHpbTWsp4A3O6ItBFkCV3xWxxoX 3fxUP0apNDKryXxRB8Q71yAdUKhFwRQZtuzi5Zy9xByphniCnJx6YESRzy5Ki7H1LNgb SuHA== 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 p11-v6si11989512plk.785.2018.03.08.00.59.54; Thu, 08 Mar 2018 01:00:08 -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 S1755521AbeCHI67 (ORCPT + 99 others); Thu, 8 Mar 2018 03:58:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:51536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751489AbeCHI65 (ORCPT ); Thu, 8 Mar 2018 03:58:57 -0500 Received: from dragon (unknown [104.237.91.63]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A0B38208FE; Thu, 8 Mar 2018 08:58:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A0B38208FE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=shawnguo@kernel.org Date: Thu, 8 Mar 2018 16:58:14 +0800 From: Shawn Guo To: Ran Wang Cc: Felipe Balbi , Greg Kroah-Hartman , Rob Herring , 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: <20180308085813.GZ3217@dragon> 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: Mutt/1.5.21 (2010-09-15) 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 ++++++ Please do not mix bindings doc with DTS change in one patch, and only send DTS patch after bindings and driver changes are accepted. Shawn > 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. > > - in addition all properties from usb-xhci.txt from the current directory are > supported as well > @@ -71,4 +76,5 @@ dwc3@4a030000 { > reg = <0x4a030000 0xcfff>; > interrupts = <0 92 4> > usb-phy = <&usb2_phy>, <&usb3,phy>; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi > index c31dad9..b0c3f4f 100644 > --- a/arch/arm/boot/dts/ls1021a.dtsi > +++ b/arch/arm/boot/dts/ls1021a.dtsi > @@ -705,6 +705,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > > pcie@3400000 { > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi > index 82b272f..4275a8f 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi > @@ -464,6 +464,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > > sata: sata@3200000 { > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi > index 380e7c7..0067567 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi > @@ -622,6 +622,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > > usb1: usb3@3000000 { > @@ -631,6 +632,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > > usb2: usb3@3100000 { > @@ -640,6 +642,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > > sata: sata@3200000 { > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi > index 06b5e12..2bf6756 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi > @@ -602,6 +602,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > > usb1: usb@3000000 { > @@ -611,6 +612,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > > usb2: usb@3100000 { > @@ -620,6 +622,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > > sata: sata@3200000 { > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > index 4fc150c..c2b5b45 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > @@ -478,6 +478,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > status = "disabled"; > }; > > @@ -488,6 +489,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > status = "disabled"; > }; > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > index f3a40af..d5b25f2 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > @@ -754,6 +754,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > > usb1: usb3@3110000 { > @@ -764,6 +765,7 @@ > dr_mode = "host"; > snps,quirk-frame-length-adjustment = <0x20>; > snps,dis_rxdet_inp3_quirk; > + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; > }; > > ccn@4000000 { > -- > 1.7.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel