From patchwork Fri Aug 7 07:15:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 6966561 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 B09E0C05AC for ; Fri, 7 Aug 2015 08:32:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C49C82065E for ; Fri, 7 Aug 2015 08:32:13 +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 D737120657 for ; Fri, 7 Aug 2015 08:32:12 +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 1ZNd1a-0005K3-Qm; Fri, 07 Aug 2015 08:29:10 +0000 Received: from mail-bn1bon0111.outbound.protection.outlook.com ([157.56.111.111] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZNczd-0003cv-UC for linux-arm-kernel@lists.infradead.org; Fri, 07 Aug 2015 08:27:12 +0000 Received: from CO2PR03CA0024.namprd03.prod.outlook.com (10.141.194.151) by BN3PR0301MB1218.namprd03.prod.outlook.com (10.161.207.18) with Microsoft SMTP Server (TLS) id 15.1.225.19; Fri, 7 Aug 2015 08:26:47 +0000 Received: from BN1AFFO11FD036.protection.gbl (2a01:111:f400:7c10::100) by CO2PR03CA0024.outlook.office365.com (2a01:111:e400:1414::23) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Fri, 7 Aug 2015 08:26:46 +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 BN1AFFO11FD036.mail.protection.outlook.com (10.58.52.240) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Fri, 7 Aug 2015 08:26:46 +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 t778Q8lA019852; Fri, 7 Aug 2015 01:26:42 -0700 From: Peter Chen To: , Subject: [PATCH v3 09/10] ARM: imx6: change default burst size for USB Date: Fri, 7 Aug 2015 15:15:46 +0800 Message-ID: <1438931747-25209-10-git-send-email-peter.chen@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438931747-25209-1-git-send-email-peter.chen@freescale.com> References: <1438931747-25209-1-git-send-email-peter.chen@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD036; 1:6yq8B0Fqv+fTiDdxnystMdT2SHa0xspPJzgs5fO3mHySoiGHwvZkOpzBKONcgQCjsWOdCdOpVHlMjz9ezBzDiOq7D/gwK6H6+rjTH4xnx8LhhlzIHJHtf8jXezw87j1Pp6uLuG5MvAXK8DrhslWMVX4epOl/BfdxNAEHkxtIwlKg6oLLNXLPtgvsNRljqPmIm+qrtaP5u4uI2Y4oNL+vleYluu4JTKajeqaMPwlpPjvU183N0yVQbYUtxCzdUSbBQVMMrts8xprwTntDmptUN9W212giDXXWVI81gKkbUAOhGkStUPfd6IHVp9pR+lHsq7X9wa2VijREnnsDqeJ9jg== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(97736004)(76176999)(5003940100001)(5001830100001)(4001540100001)(5001770100001)(189998001)(92566002)(5001960100002)(5001920100001)(50986999)(36756003)(50226001)(105606002)(2950100001)(107886002)(69596002)(106466001)(19580395003)(50466002)(47776003)(19580405001)(64706001)(6806004)(5001860100001)(33646002)(87936001)(86362001)(48376002)(104016003)(229853001)(85426001)(77096005)(77156002)(46102003)(81156007)(62966003)(68736005)(3714002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB1218; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1218; 2:JdSXYhlp1GdFDQuxidFUnvUOmtnrFikH/pAOtI33Kr3Qk4ffllcptBNUWFBIijWmLIw1MPxh/W/iwqJjch2wRlkm05PIUWqdYfzZEG+r4myJhrLIzm/uKjSpndHibzJtzjcnrMSqLhZuQFUwDwsMXgqOyRqizvLdJ1Nv/bHtrWY=; 3:94Qq9OaTH00yaXB71oWB7dyNNDGz4dGX8FXvGC/ZXYAtTqDrgsWsZM95OLd38+B2pqa6IxR/jj7lAqIkRDdHRwJUTfqdq8jWg9sJ3uksYySe+14LYqsZ5NAGWrdfFNL0D1+PaRyZ/yTsNhlw5XENlouHqUVlFG09Mo6dnC+ZtwzAkr+iDikgTWY03ZY0yYcLZmeV9nSOhGy2Mbzhk9QrK+YPceXF68EjAHQD4vUKriM=; 25:Zr2x9I/U/fzy67TnAUhkRDYnMU8VOgmywTjLW10yueZKWsYzBuBWiN9y/y2mBJQAhTaAo6EEa3pVH/cEcun1VUwPaI39t/3uV8lA0ZQCk0EM4olqqoaVNOR/PYsHZDQQRakJLp5h+esc/vs44JyGSVGYfysYfLSA7DOBQ/+AvKb/efUWLUcWX0tlJEflTQ3AAFxu3zEBY+cnV2ue5fB5g9tIkGuzLi10rwuTl6HM754GasPrevD3nz0TvQ7JmANpKM699bz0mp93rWyc6TgR1w== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1218; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1218; 20:JJ0We65zgLj7Wcs9xi8J1KWszuKFfX+lEhwwvtVIcoiBovr9+iNtlEOGINRURWIJpo7AzM2UlhIfUj2o0wB2bSTHNj2DW11RKXwOvHu3lU9pPxKoy7X/oeudVjAsKvQoOZxe4n+l0YxAc2p8svWm+mnn3C7TILlDmNF++Q/EhzISibeNNTfEiBi417J9fnYLN9qfhNElrrBpMR7oKfymSnweK2rbwlBnh+yOmdSqWGLRlE+Yvf6T1ze0nzVx8d937vZUXn/FxwV8N3LCWYRgTvmhgAxbbi59c5l1S+0WA4q9itwJdzvtMiteKHz0N2O5hyoo5cwoJsEtVBUAklLhQcsJ9eIrvXm0pxffEFzwgoE=; 4:+xJVeEYOZjKl2pJB6i7ONCaLbAj6ARZ44AuZPrZC4HIFlaFFwv15lMx7ZBdk2l6huAHxU3pOdXLaWH2zkdYQO55p7yq4HVyGtVZAb0ws9+sR1cl83wZkC6mwOsvETfbAd6XEBcqp9N9TsKTgcmjAXdAEvyJuQ+Pq2ct9mrp7HbKwSKKcGxTx8hxCIGQNUru/tX/ITFkzMq1RV5n50bwv3flFq2sxonnRsP8NrTtjZ9ptNQTO+JRsb8mLCAKnZXrXNG5O0aECjunC+6QOyM2qeDHUTnWSckg3tCkHbAwFDu4= 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:BN3PR0301MB1218; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1218; X-Forefront-PRVS: 066153096A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB1218; 23:tymjC+GEW9sSiPnqu1A/dIR77lQaMAH0kYM9vFM?= =?us-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0COAg3CfZ8d551?= =?us-ascii?Q?6ugd6AvvJ7Q94PX3B0yGg1PhjAF3KBp8NFRVLIxwEBRpWuGZtwd6Wo7aDj99?= =?us-ascii?Q?bKCfNCu45B0JCKwU/EA0YqkqaIEUgGp2GXTh4/Eq8C1j7PHSCaYrcyurXGlD?= =?us-ascii?Q?5LtQuXjcslw51pXhYYbha2ia9BrsEUslbWKczbjaBFZ5Ai2pxo/g2TDCjUPB?= =?us-ascii?Q?2xUl2ODOT5cAUMrjL2iLRt2zS2EBOb9+KvOp4Dnrz88ahv4kLT6ojZIPNgrM?= =?us-ascii?Q?8LPKzRfHY9QoqEZ/ohAPLaRMdDarYQJYlVMCX?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1218; 5:hFGzW7mtXRi1B4r9otQks9YFQnqg4FLY7AM6HUAoDdYHdiYoav0obkKRa/H2+euExrUZv82E+luxFnP1Nz9BrQuYYVfGqscejGk8BCYDgA3Xgt83jyoXnpqgQm26Ts1hadZqZY/q0yt9hBSWWinr5Q==; 24:+r40wKtM68qnEcaQRss8XH9PVHJZgdbWlk857xM0BeJpuSgiHUoh8wV7tMGM3nVprScXifHGAxuNpoRmDWlRDGoKmdixxmcXqKC3n3atMpE=; 20:EcA4HQKqNv46ZUKXNE3K1Aa3SjpNNUMn2qDGlYnhte7RnMpfe9dAd0mggR1ocmLWUeRjZx0ycSh0L7KsGZJD8Q== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2015 08:26:46.0659 (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: BN3PR0301MB1218 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150807_012710_352406_CDCFAAD4 X-CRM114-Status: GOOD ( 11.28 ) 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, 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.3 required=5.0 tests=BAD_ENC_HEADER,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"; };