From patchwork Wed Jul 29 02:42:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 6889051 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AFD0A9F380 for ; Wed, 29 Jul 2015 03:56:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D05DE207B0 for ; Wed, 29 Jul 2015 03:56:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED7F1207AF for ; Wed, 29 Jul 2015 03:56:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZKIS3-0007uL-Ur; Wed, 29 Jul 2015 03:54:43 +0000 Received: from mail-by2on0132.outbound.protection.outlook.com ([207.46.100.132] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZKIQM-0006Cg-1x for linux-arm-kernel@lists.infradead.org; Wed, 29 Jul 2015 03:52:59 +0000 Received: from DM2PR03CA0006.namprd03.prod.outlook.com (10.141.96.16) by CY1PR0301MB0859.namprd03.prod.outlook.com (10.160.163.153) with Microsoft SMTP Server (TLS) id 15.1.225.19; Wed, 29 Jul 2015 03:52:36 +0000 Received: from BN1BFFO11FD018.protection.gbl (2a01:111:f400:7c10::1:147) by DM2PR03CA0006.outlook.office365.com (2a01:111:e400:2428::16) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Wed, 29 Jul 2015 03:52:36 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD018.mail.protection.outlook.com (10.58.144.81) with Microsoft SMTP Server (TLS) id 15.1.231.11 via Frontend Transport; Wed, 29 Jul 2015 03:52:36 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t6T3q5pV011896; Tue, 28 Jul 2015 20:52:33 -0700 From: Peter Chen To: , Subject: [PATCH 09/10] ARM: imx6: change default burst size for USB Date: Wed, 29 Jul 2015 10:42:13 +0800 Message-ID: <1438137734-27311-10-git-send-email-peter.chen@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438137734-27311-1-git-send-email-peter.chen@freescale.com> References: <1438137734-27311-1-git-send-email-peter.chen@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD018; 1:eXNK0WAgBiXvVRwfsrU0EHbBk5tWt3ns2KDB9G25oPToJcnGciom4XWeAO8rld5T8OHhISSm1n3NeGLfVBcdRgKJaXZQ0fURg2LSTxsyw7esfvzFHFSuNhRec8OrDfhR4De9s8SRpq6UMMvg5WhzCcUQvUas2DvMuX5laNhOfro1k9La2JMNWcT3fGleHXRZW7d9aLUBMFqmnsZj5zfwSF8c0yXY2l1gBK2oUqajpbZ0cEsc9uKPY810+t4aTylZJZIQ8LDCHALHIRmwCHMyxZYYH6sQX2bQmiz1Mk/iLbQPlDN+q7kQGg9gxk5039f/u21AWeaO6OoPVCn2+/TXjw== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(46102003)(47776003)(50986999)(76176999)(86362001)(62966003)(229853001)(77156002)(87936001)(36756003)(105606002)(50226001)(85426001)(92566002)(50466002)(104016003)(5001920100001)(106466001)(19580395003)(6806004)(48376002)(5001960100002)(19580405001)(77096005)(107886002)(33646002)(189998001)(2950100001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB0859; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0859; 2:wMnBH2v7FeYubAU/zif06ybE8sKZLUlqhdxs8STJUrBbSbdD7snDZLbmoFJnyTim9QsIUqsAWlw5KUQ52vz25sQqryl5PqxeXG0Bw7TcKzAh7M2cFihK+doLYm2nUs1E2z0cXDxkfvTiHqvN+bi9TXc+QE44yEHZT3g+iqUCkXk=; 3:N/l3g+FJututKAZpZkQP8r4m+56O0qvabH+2Zqt/E+qIuo0Qyx7YqblLndvt4Kevd8T5U18yqo62caCcOsIzg9el7KR4o+YFLJiNTig6BSUmuWkoEYWT8XrGrgbUEaoxoATCcskvO88rzuvDtb/TmOSw/i1SNdTTW/9kN3E+4MiOycRm/8HFV2mcHdUBjEp3rzn6ENeLWIQ8yeOG1YIU+zRA/QOVm1Ysb8tW36NSuuk=; 25:pqqzNeCWYFnR9noZ1OmAKMnmkUuO4ckWX5EG5PEKSGWsTtMDpB3OPLjsdTG/Wa95rv+TtKUKUYNqoJl4PEZd06RuJnCdZ8e7T6dj9kPZ46rYkk3I7teU7E+nT6494PiA7MZx/WsngEkN6FrFHsK4v22qY7l3o8Lw+t636njZuwOv3/EOqdSLdmQLe5hSO7bpgkXf6FH+kQUt56ebZzXuODHH3QYW1V+x+ZZYKSnweN/vuEobiNz33xxvDJHjIgMklHZ5r2H+i01VeRlvWbteWg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0859; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0859; 20:K4vZsAxpztVXkensEhxaNZmUwIiVXEMWNTO5wOC59XO6AXkE+jP0uGLLcb4nbt8TmmO7X8RHrJ3BMmINefR7OkQinvsyd2sA56GVJKFwHqmeXBfJH4HKaXwM3Ygky3YczWK/+lmts5kKWb//HWtl+ExlfxqVF1wLks+/EI1aBrh5Vz3i4Xn+rVC6cjMrRZLFwJnE5ZdT7qzuUokBhZ7E5bIpevXSbkpNlpP+oSJ75qv67sa1m97AIXYQ4bKA58YLPUoZEPN2PPTgLFIRwzKzxZPUqX7iqfS5vWqOnskrV0oAjyTHCa50V6HN/pDntMLDya+y31WhjnLCZ+oeJ3pPyc8x0cKVnbhCmMEqxuaPYCk=; 4:eQ+rnzH64xdWNtyHIjcGfwHsl+nn+hHWUI920tTjxOAbACjSFYZtcHzlGrJlcJi5YVXAvlFKnNeXDr59TmEEriV0MGKgpJTTdnFqEiZq3XHFSdtFYQJVR+zcqfsaDSeQiRW3I1kZ6aBOnUrmRv+TqDCLo13aW5vM6qj4yO2Mr+Cxi/CJw3PmsFKOIh4DMwBNnUZk2tNGWaKlCYwBH8l3UyMLLEy0qmLTgeaex+i8WZ4LyKCapjMLf/o8/tt8o62b/awNiI5jbFuZcaeISn4Uwlhm4sHrjQLA30yskoWtzrI= CY1PR0301MB0859: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:CY1PR0301MB0859; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB0859; X-Forefront-PRVS: 0652EA5565 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0859; 23:03hJBmf1YDpDQoQID0eYz5AiF89DBjzxkRx/MDGWxGJV5I/CMLOy7xGSlMpTchtdDwQ1aKcZzpQ3avW6GR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zr+Dx5ySzdAUSFeTCxuxXET9c4ogRmsIRuu+Y3lV84e2d9K+Lx8FVcw9KpOssc2Kdhc9rOVT0TEzLU=; 20:IN3e0lbS0PewaQ+Q7LQwSdb7RWUUGKzTfC7lMJWtCV4nzbr+eIxUOgJxN4enzO/cU9c6v8sMqV975GkfXg20Qg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2015 03:52:36.1241 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0859 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150728_205258_413690_0ED75F33 X-CRM114-Status: GOOD ( 12.38 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, pawel.moll@arm.com, robh+dt@kernel.org, Peter Chen , kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It can improve the USB performance when choosing larger burst size at some systems (bus size is larger), there is no side effect if this burst size is larger than bus size. Signed-off-by: Peter Chen --- arch/arm/boot/dts/imx6qdl.dtsi | 8 ++++++++ arch/arm/boot/dts/imx6sl.dtsi | 6 ++++++ arch/arm/boot/dts/imx6sx.dtsi | 6 ++++++ 3 files changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index 42d62b0..b9f2e3a 100644 --- a/arch/arm/boot/dts/imx6qdl.dtsi +++ b/arch/arm/boot/dts/imx6qdl.dtsi @@ -854,6 +854,8 @@ fsl,usbphy = <&usbphy1>; fsl,usbmisc = <&usbmisc 0>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -866,6 +868,8 @@ fsl,usbmisc = <&usbmisc 1>; dr_mode = "host"; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -877,6 +881,8 @@ fsl,usbmisc = <&usbmisc 2>; dr_mode = "host"; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -888,6 +894,8 @@ fsl,usbmisc = <&usbmisc 3>; dr_mode = "host"; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi index 066fac9..627549f 100644 --- a/arch/arm/boot/dts/imx6sl.dtsi +++ b/arch/arm/boot/dts/imx6sl.dtsi @@ -689,6 +689,8 @@ fsl,usbphy = <&usbphy1>; fsl,usbmisc = <&usbmisc 0>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -700,6 +702,8 @@ fsl,usbphy = <&usbphy2>; fsl,usbmisc = <&usbmisc 1>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -711,6 +715,8 @@ fsl,usbmisc = <&usbmisc 2>; dr_mode = "host"; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 3656a1d..6844e9e 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -747,6 +747,8 @@ fsl,usbmisc = <&usbmisc 0>; fsl,anatop = <&anatop>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -758,6 +760,8 @@ fsl,usbphy = <&usbphy2>; fsl,usbmisc = <&usbmisc 1>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -771,6 +775,8 @@ fsl,anatop = <&anatop>; dr_mode = "host"; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; };