Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753571AbbGaPGo (ORCPT ); Fri, 31 Jul 2015 11:06:44 -0400 Received: from mail-bn1on0112.outbound.protection.outlook.com ([157.56.110.112]:49438 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752885AbbGaPGl (ORCPT ); Fri, 31 Jul 2015 11:06:41 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Date: Fri, 31 Jul 2015 22:57:52 +0800 From: Dong Aisheng To: Haibo Chen CC: , , , , , , , , , , , , , , , Subject: Re: [PATCH v3 6/6] mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1 Message-ID: <20150731145751.GG27806@shlinux1.ap.freescale.net> References: <1438160637-28061-1-git-send-email-haibo.chen@freescale.com> <1438160637-28061-7-git-send-email-haibo.chen@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1438160637-28061-7-git-send-email-haibo.chen@freescale.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD036;1:zMMh7ZbY5C2BjcHglqM8nf4oagZtZtQBluEOpZVndPv7vhlEnhX1hkRwBJZcXmQmzmxHCEG7JOffFEmtzopela5KhzRE2IPo7j4iSyx6YBVKK2ICWPIrebNTh+POCgnqInp67QrRxQgxzQ700VuuFLcNcDpQbUC2iLb2fRo4l4NzJecLCqqCziCotpxV3jsp7SSdt5NZyaHwMJFQvr9I9h/cdq7wqB9HshV6p6fMX+DjNLbuF1pXXiWJVzsO9qtIUlOTJSFQaKjuSW6qGuD+Euwc+pTAe/OuaXtcQAgHTim1JglT91FGAXh7pv5RgoISN1edijoOpBzfFcxxVrhPMQ== X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(24454002)(189002)(87936001)(86362001)(50986999)(50466002)(46102003)(23726002)(4001450100002)(33656002)(85426001)(2950100001)(77096005)(230783001)(46406003)(189998001)(83506001)(4001350100001)(76176999)(106466001)(6806004)(5001960100002)(110136002)(62966003)(19580395003)(54356999)(19580405001)(97756001)(104016003)(5001920100001)(77156002)(47776003)(5003600100002)(92566002)(105606002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0301MB1310;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1310;2:nZTZofhzjZ/5D4RpJE1zUjq2j3xzFkgElMxg2mBCvdpEX8kb2JW0u5GlaZ9TTu6r76mFQfCWyq37qthAv4TATnqWFD3PkydEj8xMXyHdK+c8cW/CFHIt53hkMCozXPxZJDLil1e38dNyWuNjZkz0mR8Us26fvxkK4cGGDH3fL0k=;3:1/F1Pbft+SHAK2+kAS5tbfj4PKllKVLBDGdg5YpDdAU5Ly3wR8Sg9GA9qmFGBG/WLQ5WJ3O3T7pvnzw4bZKVrL5i60yMbf0x9l55bIWHV3VbDLcZf1R5g39Jy030RAIuxNwJjH8gyfHzAI0Tx4vqu/gO49G4hfYoCee9i52koh8Fl5W7jiX9xs0MrXD1E4We4U4uwPUtlRMr8cUgHOUelsGWIJ+H8zApmJmcywWrhrY=;25:aIPM1xE4EEB1HnqrUX6l93WQnr2i09OBSSy7LRDL6Gs2/Xbx+Nc3L4qv/UjOGEmZgSKKVd6QmE7DiTa77d/i9inz/gcQTJB1SsDAOcBCO2sxEkWyZWLHDIdrqe41jtHOmqFEz9ofZroJ7MWxfIQAyxY3NVJCHlA/2bNFXdYiaNhqdVSabfI8Vvq5DMdLHQsuzVnQAD/ghTEG3yeWjoKbXUiolkvLSrI5HuU01WPNsd05QbEWC1xVO5gOG/1zmODnaWDNxLBKrbdNzaRmktl/Gg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1310;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1182; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1310;20:R4dDabL87g0yrQ9H6jWurNlFo6KRqKfeP7oY9wLnxL086Trxux6eFNH5QCO/m1Loiy/qduK/g08jk2vFozHvWPDilF0o+GK4a4NW3uHg2PP0aIHkadEc8X3mIfEyFi2l2aV2/zoWtBu61ugZ0/aM+r/UGTWKU5bnA0GY6W6dA1XeVsp0O7b1EJKIYRsdypFYTnJs2T0P1evAfkgxgIOoXSINSk6sr/2fFMh40cYqEtaGN1ipsuyEOdUHWal3Ctr5OtJpKIiPy7N9vgcoNr/8Un+9CwHsyw0+KzU3D4YDLcVItZHUEJSoKGaUo4SfaaCQdXiPSsYCvQaMw9eYCZL4RTxV+/ARirdsYJ0FCKx6KrU=;4:ZVpmBg5h6Or1iX/oBj5/BdGTYJExzf0u7vhz0h1J9HEOV5fx4rvEtJbJiQ9cTb1mtTe0clBrma1KThxN7Fjj2WfpvK4FcYaN9Q9Ys8sOjvFcLwnwyzolyXj4/laTVz+EBRY17bnn3nzdpjUBv/cf7Gd3U5UhAoH9aXTTr0dFKq2dTwSqD64ihGzvnTZelfBolYaeUVXe1aELUXExyOL/KzetYo/Hjx3v87x7T8cp5qkY4GYytI1shGuaK/t8Ae383+e83/CAUg9Tb9M+PWnTAD6KQTiPKXx3vWXR7rCezTA= 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:DM2PR0301MB1310;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1310; X-Forefront-PRVS: 0654257CF5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB1310;23:140tmGE/L+CCVQJNb4/ptPI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y1ta+hnWmC0m4ZKkXpqI/BCzU6y3FTID514Q2tgQQIlwkD2NO7az?= =?us-ascii?Q?wZ8uCT0U+NuWIbSvdWJ5NtSN6VsVYspD2VyHRxzdhDap8Qd1zwx32qVxvMKW?= =?us-ascii?Q?YPye0JwSRV7475n3r0+lbkTbjX86IFTPhtIDKf/VQrXzQRInJS775rDub/ck?= =?us-ascii?Q?uSYRqdDk=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1310;5:ikGk3Cc6BXNBwYbGfoSXMr1ME+O8pL/m74DNbPuNzFfba9R0OLaKIOciKjyVZM0DjfPRV1VOHNKz4J3mlDMz+DqPK6ihJfUJx3tLRPCXrIRiEVd1+FvMxwcjGEun7D1t1jPYhlCqfM6F9mQd1wuJ6A==;24:9j6BjJdVwLGah5g8ip0JHm4lvPSuLWDnQNhW5pHwonLbeheHf4DVpsV1SDOYS78yVFoU335P/WKNs2udKRy43g5CswlsCaXgE8rgdMBFIWg=;20:2NjMu/Db5/Q4Dfaflvwps3kJg1AqOCXrNDyhCiYA8zfr10l3g0R13H2PiHXRmTFTpQpcP172yvtswrxs/VXRUw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2015 15:06:38.3337 (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: DM2PR0301MB1310 X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1182;2:OtNFlHqbn3/hxYeaNVshQgbfIROAxWl5xKGYlIpLsHRQKyqcEXIcH7dJGzTk7y/UFYz9Bvj5YZb4AKBW5Ast/v8efqC2dE2LaSaa6f3ZEK2tTiI9rvuihnbxPjpZI7qhhcg0wtnZGiOHFTuHlfizOYVOqBJ2Y5oCIQd8YBEyK7A=;3:DKphFFbwwJKZX1GRtLjMHG6PJkO4QFlBRK51oiVSkkidISwfQNGaHLybHKqiul8mZnbUlgkJUr/6RiJjMB5JPX/rsTUBV5RBmsZBiFtWtmdLOp03cgA+BNML8a1NyLmD9gU5hISeiZU4nUxv27dBK0qCb8bb/jd8p1+UzfQYi1M8lnnj0/FagD/CDnQpV+U4SDHf/jN0uAYSnfMIoJFCcd62L0MnHDsdzdoXZQbw4FE=;25:tlellvGMuBIaYVRbkdLO4Rx1JkVJGHPlupDWIhcS59LfHZvLDydCo7rH8pE7z29VtFpzFZbABMtEubTPad2Lm1TtxVUGTQ2xHOnOdLNrXOkJ/6kmwSTRRsa9d1p6lt9RP9HSUOQITPhaVDFtOmlA//DbPmslmKLgAwhSebkHMKc/Qad8yPOii4pQGW3O4nA8ibRzssLy/FcJIm63vOQv6h9gxbDoqyczFNqiCJp4gMfA8rLBJMCIpqZEFDn4MKKdE++I7vII63DpzbD7FcO9Xg==;23:IAKhgENzbceVneDAQalzRXg8TiJ8vbMRTOO+SEL/WL4cc8UUQ2a8otUNLRQj3kFbdnfc+lIsCHKw1UNkv1sukV2GCUs2dzq2kOuCsXfQlJNCf8PvHJVevZaxcaiwz4Y6V8W71XUb4d9JbxjugV1HdYzYO2K8ZSP9oQDvzHSOsfMAx1dTRtInRApIyb2sqmlLWCkwr1MbeRrwJsAcUVty0d4TVW1tXOuOBkdbngATk5g1I4ZWlONIGN7sRcUiIv+H X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2136 Lines: 58 On Wed, Jul 29, 2015 at 05:03:57PM +0800, Haibo Chen wrote: > Currently we find that if a usdhc is choosed to boot system, then ROM > code will set the burst length enable bit of this usdhc as 0. > > This will make performance drop a lot if this usdhc's burst length is > 16. So this patch set back the burst_length_enable bit as 1, which is > the default value, and means burst length is enabled for INCR. > > Signed-off-by: Haibo Chen > --- > drivers/mmc/host/sdhci-esdhc-imx.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c > index 37d0095..dd945e5 100644 > --- a/drivers/mmc/host/sdhci-esdhc-imx.c > +++ b/drivers/mmc/host/sdhci-esdhc-imx.c > @@ -32,6 +32,7 @@ > #include "sdhci-esdhc.h" > > #define ESDHC_CTRL_D3CD 0x08 > +#define ESDHC_BURST_LEN_EN_INCR (1 << 27) > /* VENDOR SPEC register */ > #define ESDHC_VENDOR_SPEC 0xc0 > #define ESDHC_VENDOR_SPEC_SDIO_QUIRK (1 << 1) > @@ -1158,6 +1159,16 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) > host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN; > host->mmc->caps |= MMC_CAP_1_8V_DDR; > > + /* > + * ROM code will change the burst_length_enable setting to > + * zero if this usdhc is choosed to boot system. Change it > + * back here, otherwise it will impact the performance a > + * lot if the burst length is 16. Can you clarify a bit more on why performance drops a lot if burst length is 16? Caused by the burst length setting did not work due to ROM disabled it? Regards Dong Aisheng > + */ > + writel(readl(host->ioaddr + SDHCI_HOST_CONTROL) > + | ESDHC_BURST_LEN_EN_INCR, > + host->ioaddr + SDHCI_HOST_CONTROL); > + > if (!(imx_data->socdata->flags & ESDHC_FLAG_HS200)) > host->quirks2 |= SDHCI_QUIRK2_BROKEN_HS200; > > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/