From patchwork Wed Sep 30 02:17:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 7292281 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 60ED8BEEA4 for ; Wed, 30 Sep 2015 02:21:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 647C620645 for ; Wed, 30 Sep 2015 02:21:19 +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 6A1F320643 for ; Wed, 30 Sep 2015 02:21:18 +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 1Zh6zf-0001B4-DC; Wed, 30 Sep 2015 02:19:43 +0000 Received: from mail-bn1bn0101.outbound.protection.outlook.com ([157.56.110.101] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zh6yD-0000et-0L for linux-arm-kernel@lists.infradead.org; Wed, 30 Sep 2015 02:18:13 +0000 Received: from DM2PR03CA0025.namprd03.prod.outlook.com (10.141.96.24) by CY1PR0301MB0857.namprd03.prod.outlook.com (10.160.163.151) with Microsoft SMTP Server (TLS) id 15.1.280.20; Wed, 30 Sep 2015 02:17:50 +0000 Received: from BY2FFO11FD034.protection.gbl (2a01:111:f400:7c0c::190) by DM2PR03CA0025.outlook.office365.com (2a01:111:e400:2428::24) with Microsoft SMTP Server (TLS) id 15.1.286.20 via Frontend Transport; Wed, 30 Sep 2015 02:17:50 +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; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; 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 BY2FFO11FD034.mail.protection.outlook.com (10.1.14.219) with Microsoft SMTP Server (TLS) id 15.1.274.4 via Frontend Transport; Wed, 30 Sep 2015 02:17:50 +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 t8U2HjhQ029686; Tue, 29 Sep 2015 19:17:48 -0700 From: Peter Chen To: Subject: [RESEND PATCH v2 2/2] ARM: imx6: change default burst size for USB Date: Wed, 30 Sep 2015 10:17:17 +0800 Message-ID: <1443579437-845-2-git-send-email-peter.chen@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443579437-845-1-git-send-email-peter.chen@freescale.com> References: <1443579437-845-1-git-send-email-peter.chen@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD034; 1:nf7UfJj2RT9kgYAyIodx+DKAIM8utjxoq6cEFQYZT49JdRPRx7LWXGrutLVHlP9erKIRavMgzlc758v66DpDO4h14VVe/cL87tGY6KnKdFMhzHnQMeu77yyS1aoKEb3y6Qo754u/1Z5wQ2drwIfCkgH7hcoHHXXktbO5DeRT0yOtUMUJVRIsb4B9cwJ614trLTeo4RJsYfUC7lIfRqTfIgJHjbTlU+YKLGuA0QnSITd2yjl9LHjJ5DTaV3uk+WpygVa5se+GTTr0dqYL0Ybz81fzk8uDrwBNnX5jOVPrXLx7EgtRJ+UkPg+dBlZp8cj0NeLA2aawhpzSgWGA2DRaz+ud95bPAkGgn80corLOShHm4nujVRrvEV4jLRkZCpEUYHChf/L16eXcXlX5FO7HaDn5XcKxAZffPxMtuMqJpKKq4k3GxFp5hltF5t73tbmD X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(3190300001)(339900001)(199003)(189002)(110136002)(19580405001)(106466001)(19580395003)(4001540100001)(50466002)(46102003)(5001830100001)(11100500001)(104016004)(575784001)(77156002)(5001860100001)(86362001)(62966003)(6806005)(97736004)(92566002)(229853001)(33646002)(81156007)(107886002)(2351001)(5001960100002)(50986999)(189998001)(47776003)(105606002)(69596002)(5007970100001)(76176999)(36756003)(50226001)(64706001)(85426001)(68736005)(2950100001)(87936001)(48376002)(5003940100001)(5008740100001)(77096005)(3714002)(217873001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB0857; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0857; 2:LGLVfDZLRhOD22k4Qm7gIYVBslwR+vHMOji6SduuzFGR9MMk0hY4eBnc3Wft54HqabeThfw70VsyYZ192QG6ayxctnn7ev03nOXvctm5W3f+wIHXhEuTCBHQOyoXgI7+89LcMgWWg+rxOHIzQjdBcsMlc2MhUx4gOuV0ffjxoIg=; 3:X+b6ssRxC8WsRAAeW/1CvTUg0deqS9JeuUnQRizDv7o2vXBC0T9kIqCbdaBZOPMThJFvOCGRYECHEw6q1L/rFP0swYj3RHoyxPBQ0ZNinCyn/iozlb5GYfBHskB5DwsiFdxY3/4jyD+AMDC++p+VfaN9MvXE22NQlW5FeRahONdUic5XJFqDWeocVarsQhHePshoUVDG5NRmBv8DSLBi2eqtMeroqVlpI4wXFxwiavs=; 25:t+NT87Tjk4FBTbtwzNm+LVQy7Jr/a0cKExF8JlRXGeyWs+1bou72WBbOEKPktNylcT3WrrnoEiOmmeSCc2oNkRWTYOCIgbGoxFjQ/aY7IY90ql3XTJD37e/shO1zjbs+EeVcXRrSQf9W+3QR9OiopTo48AY3P6DJterAa+LKlXrdTnxOXxZuYiJIpLo0+FSbpwHYhwOKP5ve2j0z3E0zbEO3jHYmbaRptNjcnOijsH7epJGFMPF5N8/5niOPOTl0WEZirYDp5suHFvwTrRWVyg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0857; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0857; 20:NVfEvyeOH17SZtl2tuNLSj43K2WF5FQzSJu951sHIhVq5kkN1Dz/xFKMUWunu1bxkQQSnvx89phk1H28juZLiPtB9vPFrSYDJKi0a4qOx5RrTHfO71jYRYtlCnh6WQ7v4rDC19dykX39gDv+YErZsJu38GO8IwRlaVoHbwqFXOs1NqWVHOwQbZo3J9OhCc/6D3Mqy3jfF7gNLVLyMhKnevAvJW9YKbTaaNGwFs59e8YAu7GwXUR14eKMnugzPxu8jzicMyLspo912rKRwUHsgPISsSez/Y6t5PLFK5TByW4pTswnxI9CioxLVlVCgMU0YE0hrm3jzlmCamElohsf8MobsJvbZP4pDiMoBrb237A=; 4:3TDUv7xZwi07lfrrn8dgurpIhpDxuq5OaYzhEI36s0GpJosfPo+EcQkIlzILHx6xoKXrvWQYmGvEDJeO5/kkPzT5q3zUOKXQivmNSjqF5j368EwhBpsToUk3eieQ6L5WwqkApZP+XDquYrhFreHe/tUUOwD0gH2fOzV+mX3HEHgjEgi2NokdXu5wJTS+H8/X5ys2SHRBzRm9WnIoeQU6CSxNc3E5ppXAWtPY4kYpFffeNP/tUimH/UCvhliSi+izUzUdpzeVQv1UDegiaADyQ1B0uWjELsvg6Z9ec3Fy+sAS8iLuIffUmjcvSaFRue3ro0QgVfMJhJtLp1vUtEp6YLySnBYWgJmmHgch1seXmeY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001); SRVR:CY1PR0301MB0857; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB0857; X-Forefront-PRVS: 071518EF63 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0857; 23:/1j+1mFzE80KuDX1XPqB3lmt7end/kzLy+VRyU2?= =?us-ascii?Q?ka4onJOpM9T0HHxeym+yeEslV1ujTx88aQNxzSdporCsHRoMQ5kVa6suEl7r?= =?us-ascii?Q?YOeXgyyw4K7/IGYP5CWDkfhn7dUEpYNa3fQ3WlqDRVBv7d7/eResLG5J0Ko7?= =?us-ascii?Q?We8lZccTM5BF36eVHelFPFQjtPmrNjPSWmCkbmyMfg0dY89/LcMKAcW8Sw+7?= =?us-ascii?Q?f0YPp7Lw37X5hOHJQxhGUOC27qWB7ote98E4sFPlyrQIZK3xUQQ8dN0gGlKz?= =?us-ascii?Q?1o1JSOBqZxCV1YR004MLTI6r5BlAeUADw9KyHW8eraXkC8Hhk8u5HJxWOBS7?= =?us-ascii?Q?sXW39KbhebbuEIwFcAZHj/xe3licstcnBC5vjnw5JtDF9EbOI86f9hsQG9mL?= =?us-ascii?Q?6TCXMhiMAa8a1tWGpZcivt6Sip+Sb3Bgxx+BymN7PfXH9hRR8/tTqrpoa/WB?= =?us-ascii?Q?tlMpyAiB3++gIsJiY2WS4T8AqkbNBik+WY9XAIqlxFI/+KOq/AmJY670DBjV?= =?us-ascii?Q?mLD3zhwjltfLfQYJOcXD2jHIF46JMFQRpJo1Bmr0CBUwzV42iXhJ2FOV6qpu?= =?us-ascii?Q?ctxBB7ZVf+PMx7iqzI3PjC4GEKNUMVrUgYgLBhHSH5T6QN51yqlG+Sfw7zJY?= =?us-ascii?Q?Reuj7vTmrfJlYGcaj2FB8KfKslRuKmP33D8s+uRCsHUaQ6MJAQt1JL5LcXja?= =?us-ascii?Q?G9HIYarKmKIvW1Z1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WQeuT9qLTrcvjBD9Df1O9E1jPudBBCP2Q2V0qZebf5UpO3qPzj+t0DT5lkTn3BQumHkI9nxb8hLEW90=; 20:x/0+uzHG2DnrulKu0aG4QHqM037CNvQ6rFm7fy84A/CNDFSksc0yV5c64mcubw+JXjxCcNjQ58JTug2lYph0hA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2015 02:17:50.0292 (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: CY1PR0301MB0857 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150929_191813_315590_0842D445 X-CRM114-Status: GOOD ( 11.68 ) 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: kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, Peter Chen Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_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 --- Changes for v2: - Applies changes for imx6ul arch/arm/boot/dts/imx6qdl.dtsi | 8 ++++++++ arch/arm/boot/dts/imx6sl.dtsi | 6 ++++++ arch/arm/boot/dts/imx6sx.dtsi | 6 ++++++ arch/arm/boot/dts/imx6ul.dtsi | 4 ++++ 4 files changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index 3d04a17..92c5cc0 100644 --- a/arch/arm/boot/dts/imx6qdl.dtsi +++ b/arch/arm/boot/dts/imx6qdl.dtsi @@ -907,6 +907,8 @@ fsl,usbphy = <&usbphy1>; fsl,usbmisc = <&usbmisc 0>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -919,6 +921,8 @@ fsl,usbmisc = <&usbmisc 1>; dr_mode = "host"; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -930,6 +934,8 @@ fsl,usbmisc = <&usbmisc 2>; dr_mode = "host"; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -941,6 +947,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 057b1d4..2c0faeb 100644 --- a/arch/arm/boot/dts/imx6sl.dtsi +++ b/arch/arm/boot/dts/imx6sl.dtsi @@ -690,6 +690,8 @@ fsl,usbphy = <&usbphy1>; fsl,usbmisc = <&usbmisc 0>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -701,6 +703,8 @@ fsl,usbphy = <&usbphy2>; fsl,usbmisc = <&usbmisc 1>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -712,6 +716,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 70a7c4f..01191c0 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -784,6 +784,8 @@ fsl,usbmisc = <&usbmisc 0>; fsl,anatop = <&anatop>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -795,6 +797,8 @@ fsl,usbphy = <&usbphy2>; fsl,usbmisc = <&usbmisc 1>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -808,6 +812,8 @@ fsl,anatop = <&anatop>; 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/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index 654009f..28dcd68 100644 --- a/arch/arm/boot/dts/imx6ul.dtsi +++ b/arch/arm/boot/dts/imx6ul.dtsi @@ -536,6 +536,8 @@ fsl,usbmisc = <&usbmisc 0>; fsl,anatop = <&anatop>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; }; @@ -547,6 +549,8 @@ fsl,usbphy = <&usbphy2>; fsl,usbmisc = <&usbmisc 1>; ahb-burst-config = <0x0>; + tx-burst-size-dword = <0x10>; + rx-burst-size-dword = <0x10>; status = "disabled"; };