From patchwork Mon Aug 3 04:47: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: 6927341 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 81CDCC05AC for ; Mon, 3 Aug 2015 06:02:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D895D20532 for ; Mon, 3 Aug 2015 06:02:12 +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 380CA2052A for ; Mon, 3 Aug 2015 06:02:09 +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 1ZM8nC-0001yb-Gc; Mon, 03 Aug 2015 06:00:10 +0000 Received: from mail-bl2on0125.outbound.protection.outlook.com ([65.55.169.125] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZM8lV-0008TN-3H for linux-arm-kernel@lists.infradead.org; Mon, 03 Aug 2015 05:58:28 +0000 Received: from BN3PR0301CA0078.namprd03.prod.outlook.com (10.160.152.174) by BN3PR0301MB0850.namprd03.prod.outlook.com (10.160.154.148) with Microsoft SMTP Server (TLS) id 15.1.225.19; Mon, 3 Aug 2015 05:58:03 +0000 Received: from BL2FFO11FD025.protection.gbl (2a01:111:f400:7c09::129) by BN3PR0301CA0078.outlook.office365.com (2a01:111:e400:401e::46) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Mon, 3 Aug 2015 05:58:02 +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 BL2FFO11FD025.mail.protection.outlook.com (10.173.161.104) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Mon, 3 Aug 2015 05:58:02 +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 t735vQhh030467; Sun, 2 Aug 2015 22:57:58 -0700 From: Peter Chen To: Subject: [PATCH v2 09/10] ARM: imx6: change default burst size for USB Date: Mon, 3 Aug 2015 12:47:17 +0800 Message-ID: <1438577238-10153-10-git-send-email-peter.chen@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438577238-10153-1-git-send-email-peter.chen@freescale.com> References: <1438577238-10153-1-git-send-email-peter.chen@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD025; 1:l5k+t7ys8kS0boIv8FnGnTOUNQRryjO4WTgDBza+qeAW705Tm+ocgToTyN+yM6n3JYyYpoigWtaaNqRaY0byXKvXTlFj71mSY9MToI4Qc/80V0wzsO3apnF3lQa4ejHmrUeo8L254OH26SZ25NdQ0YDL3PZ7XEl2iFZPeeluLv0l+ZzajANPmKiTjKQGZ1sUye0/E+QfGmlpgBK8INY5Tq7MXE/4Pz59vUIlGaoFnkREsIpSpqmKwzNUj3AVrxlqM6kzcLclzRk3eQVr1RXXgy7rQQA5iY4i7HQLdhONSrZhMwenbhGHgKTpmK2MCzQ1f+WRomIaqaJKL4184r8Lfw== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(48376002)(77156002)(77096005)(229853001)(2351001)(87936001)(5001960100002)(62966003)(104016003)(36756003)(33646002)(110136002)(107886002)(2950100001)(50466002)(46102003)(106466001)(6806004)(85426001)(92566002)(19580395003)(189998001)(47776003)(105606002)(50986999)(76176999)(86362001)(50226001)(19580405001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB0850; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0850; 2:lPB8ULXn3uBPseBlA+SDKMRI0BDcXp/DhAyxxevOe4UEFx60SOyprs2WovmkS50r6UnZdV2G+7b5+tRScNK5bDNL+zNI/RGlyT/IHJprdBxm/dsuoFLkseiXUo7C2Up9EUmw7XLBD9E0VIKa42To+GAHrGfqClL7cjDotyeBfQk=; 3:gWzkardtpzpTMBmbmozX1biJIXFsKNiVXQLbMUaOv1fJR7asA/MBLT8yNwFhauF+cBrqRDfGoNgYqi0lie7P4FV6ZhNDEyQeh5/2OgGIthLvqbjXFZrsH9oi8RSVjIBDoMBUsJBJBlsPxzRR4UOwSt2jA4RsMrJeNyFlmnutwbg65wAYbvbmLUGth7gc9J6OzQ7+alqvYK8k5UBlpZCV5O65P9IsBH3m3GTLrY8jMGE=; 25:bJeqVrqYVVgqcsezWcVtGWfAiKd/aQrd0TXEznOuu5h2bdXIRNpoLgCqthD9stX/B1kMgwvUt9syAiBCCJHxuqijVG2kp190DrM+hTCTVs3G/4SsihA+7RrgKtZnzrCphYTVW9MZjvxgKfij/n0g58JzMpz1KYVaiyn3JEKnHC67oFDdS29GlXjZSjqzUDgzNFd3/1O+EmGC0ekbcon29mwvhTRBCWUtQ4W9SqVRxv5Y5qWZDMRP9YsKmtGbzgx+j0o4ed+Jt2oOIvtBcNPWlw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB0850; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0850; 20:opvEiYmcc0TuFjQ4Cczs1q/nSnm1bXdV1iRH9szaeOx+QRcp8iMUeU558xzQm5tzYiu9bQQqSsf/6KkQADElcnc6J0jI9nhA/IGLLSLUxlCrLxUR0KlbwH3JgclGiNRdGq603GAMW7GKhTyeq9w/SYtTldOu9OcMeUbKS6KVsQKABcQj/OnqLGPPTcgCEZmeOGbLGwTxntqAYrkhlswKemTW/++D7GD/m6Y6zrnWduU7fXt1pXZMhz7LkHXAP6vi0ohZQs3Z7arm4fx1P5s2YFHadSSmEamvflkgw8TxJ3XDUklRj59b54N+SyqKYGrJ+xdx/mSI5W6U0HjVj9Eovm+OUzyOD0FtDGWJxx5JfYM=; 4:zVSMLSpkzbPRvBtLbeNu6mznG5MnxuXnGE3DkwCweDoiJ5iD7ijyXiyVb87Dnf24V7r/QnojMQBuhMlf2Zp6eZlNYNQZb7VeSSsJMAT39Ms4fHEFNd7Bb13xQac6MbOAffw9BKFk09kXWiqj4mr1ib456uMOXKLG27p9bra6bvrBeerGPzjTOgyhEuo4YpR+xCxtsCfAjNBeLH9ylhIUbft66B6Cw/m87qqhgTDDCT5xlDJq4JFM6K6kYTa1f4wkkv/xd96gxUbSAlS1z5090c1FWifLTpAVx8sz+UawMpY= 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:BN3PR0301MB0850; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB0850; X-Forefront-PRVS: 0657D528EC X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0850; 23:RCmQylQBcPgDKEtJYZPCQMTvconjM9+ny75ifkvcDOdBPV720Q5MSS46xjh0rHG3NSpVrGkb7dKFmhiKu9Y3SE/yZjBZmbFVJvQjrHHrE0RfMj5zuBvbyM/jXfkmQiPsSPyxba37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ZnLHZSsUr29+EmL3PhqZOdGc9lTRq16Y=; 20:dZPvqjAiV76sdgaQiBGzjmO7lfW8/s5Ioe0skaULViQwwMx9nz6jqxlOpSb0bHhvjl9Uy/LddP3FdL/Vmztrtg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2015 05:58:02.5040 (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: BN3PR0301MB0850 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150802_225825_571660_3049D843 X-CRM114-Status: GOOD ( 12.61 ) 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, linux-usb@vger.kernel.org, pawel.moll@arm.com, gregkh@linuxfoundation.org, s.hauer@pengutronix.de, jun.li@freescale.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=-4.4 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"; };