Message ID | 1439293111-21077-6-git-send-email-haibo.chen@freescale.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 8AE88C05AC for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 11 Aug 2015 11:39:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A39C720605 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 11 Aug 2015 11:39:52 +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 C298420456 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 11 Aug 2015 11:39:51 +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 1ZP7sA-0000yy-Ta; Tue, 11 Aug 2015 11:37:38 +0000 Received: from mail-by2on0142.outbound.protection.outlook.com ([207.46.100.142] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZP7rX-0000RL-PS for linux-arm-kernel@lists.infradead.org; Tue, 11 Aug 2015 11:37:01 +0000 Received: from DM2PR0301MB1310.namprd03.prod.outlook.com (10.160.222.155) by DM2PR0301MB0622.namprd03.prod.outlook.com (10.160.95.26) with Microsoft SMTP Server (TLS) id 15.1.225.19; Tue, 11 Aug 2015 11:36:38 +0000 Received: from BY2PR03CA010.namprd03.prod.outlook.com (10.255.93.27) by DM2PR0301MB1310.namprd03.prod.outlook.com (10.160.222.155) with Microsoft SMTP Server (TLS) id 15.1.225.19; Tue, 11 Aug 2015 11:36:37 +0000 Received: from BY2FFO11OLC016.protection.gbl (10.255.93.4) by BY2PR03CA010.outlook.office365.com (10.255.93.27) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Tue, 11 Aug 2015 11:36:35 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11OLC016.mail.protection.outlook.com (10.1.15.61) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Tue, 11 Aug 2015 11:36:36 +0000 Received: from b51421-server.ap.freescale.net (b51421-server.ap.freescale.net [10.193.102.57]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t7BBZxY7002344; Tue, 11 Aug 2015 04:36:30 -0700 From: Haibo Chen <haibo.chen@freescale.com> To: <robh+dt@kernel.org>, <pawel.moll@arm.com>, <mark.rutland@arm.com>, <ijc+devicetree@hellion.org.uk>, <galak@codeaurora.org>, <shawnguo@kernel.org>, <kernel@pengutronix.de>, <linux@arm.linux.org.uk>, <ulf.hansson@linaro.org>, <aisheng.dong@freescale.com> Subject: [PATCH v6 5/6] mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1 Date: Tue, 11 Aug 2015 19:38:30 +0800 Message-ID: <1439293111-21077-6-git-send-email-haibo.chen@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439293111-21077-1-git-send-email-haibo.chen@freescale.com> References: <1439293111-21077-1-git-send-email-haibo.chen@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC016; 1:ylCQUd8bQxzgx+bUI9ChdbAz87gs/KYsWb760AqVUEFgu8m4FWPx1xqM4no+BtZ/JvEkIE+NXG0Cni5us4O0js4puAb2yQEU/YWRvDUTkpFbZ0NzPQzR9tLuDZj9hevMrQtNlKfOD5eNRpKdaKWFF7wMRHHPcuQpTbtoa3wPpnDFQI6M7dsvcaZYdlv68RaPbFQCHghlBJXY9RY5wChsSjR9wenKFamvsGng6CSmM0FytCn1shk12lhHIE0AnlK/0eOCSzCzX5NZ/0dIAMuXe8v4WINuVQUhlA9s4nn2GVqZeuTPT0B7xjII09AdHDucgTbEkI/kA+O0TSw4eD19hIkTTkzaGWHv48AdGV4wWob4lFv9VDnucC3brHT5CVf3 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(3050300001)(339900001)(199003)(189002)(68736005)(85426001)(5001770100001)(77096005)(4001540100001)(36756003)(229853001)(5001860100001)(5001830100001)(5001960100002)(5003940100001)(4001450100002)(2950100001)(19580395003)(64706001)(92566002)(105606002)(106466001)(230783001)(50226001)(6806004)(81156007)(97736004)(77156002)(62966003)(19580405001)(189998001)(47776003)(86362001)(48376002)(2201001)(46102003)(50986999)(76176999)(104016003)(87936001)(33646002)(50466002)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB1310; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1310; 2:L+TtHNXitVwWUbw80abws+aBz2MqwZfdjC49hWVNeG4dTAG58dAnTMdr8ABCZMyEB8mDxjEySqtbgrVWibsBlMrec5jBFcPodXq2MC6a0kTfxK2umhth7UH79SBRLPE/aiOihOXCa8K3JPT9SEzGhYNTtISd78k28XVCSSKQkHU=; 3:TPdRJvZmmbKT4BEzDBzyNmMDZV2Iv7ks/81PyNd4Rfa0sbNrsbj+Lh3fYa1GcSi17FoiDIhyeufBMeqUHyy/IPztT9UdJKI6HG02aEQmYPhx2B0hsyV4ZQs0oGTcaKCwaZrPh1rFEnMBjLgVY3homNVBMeb5j2yH/YACO6FMhWHKye8Rg5yM0+bcZRYCfAXZrwxi+VuroWIWYG5wfbkUesdWwhC3mthHioZ3fEEUFK4=; 25:SNmHLJ9204gxHxfdEwcH26iSgrwMm4WSnhp8F1adQ/xR56b6ydrt9OEtLDu8iOwvPH2iSqYYm1W8U8xwMlrpD0Of+tQkVDsptsoNC2XPMnWOdZUeCzsnFj1hIa3VVEgEN3YxBpgA3qchp4G4svrhOOGeo/x6fTTzqmRjsrQfXk4WnISOFGCPanTh9TMFz2DXeRNbepEQKxosE7VNYjYKcNF5lYL41Wg6Xr3PGoMu2UPV7pSy9tROpSswDHudGErwXhAvJ4GtuzPpGedbdS/RJw== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB1310; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB0622; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1310; 20:0D1oyTIR3Hu0a9Mon1qKgsTI/HWqfX+zQ8I8BKHebq/L6ialFkTHGmDqeL6KFwmoKORUolByfCYTPxxs7U+8Ealui4xDKcFSdzuG59okI9R5HE6lBl/IDkUrccv2IYUBdJnO909epYwSX4c4GnA57FDe59mCwNQ5ATozSYFIM8GI16Fw94haDT+xqhYRVCoLSyCKVx6THEa/Di3KQZ07FINZ3gST8Qer+bxb6ptJTYVncybHf2L7Zh6AACtbXwfRsPhwUzOgEsGOP3HY+rIacPvJsA3X9nB3LBQ5YuCbIrKOMoyineTiEeEEcGLLdSdEI+3uWReNdSgCk6DIYretJcq9PrgOyq9TASSeVvSmM9k=; 4:XzGJS9zdnGUfPUUjJRtMULx9ZbiPO7cVScJhvOoAHv7TL6EtGUmgBOCBTIZuIUAeQED+z4CMNBrKIoRd9cSf75UwWAmJDAqIgXqoLmbfQx0NHooyBAz9UnZKSkMiUYJUIOmNEx7/Frh2tyZLo4XSLoWC0yUDe9AuAGgIWAVb1l0TXMe6WSdi4qhMEK2cCCYJJuaGImZfY49CVI0LNMls0hnPaTl5tVeKzOQSi9OTCVWbWENXKLoF/JmKLZOhkjRB4MCCOqc50k59hW0t5vB4fNVhv0rFGYF3EQf3x9DZfXE= X-Microsoft-Antispam-PRVS: <DM2PR0301MB13104406A75E51D987DA0A499A7F0@DM2PR0301MB1310.namprd03.prod.outlook.com> 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: 066517B35B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB1310; 23:ikd76B2/YfT+o950qLx7K6DJABI+i2qxEnicder?= =?us-ascii?Q?xMykNdhee8uYyc8hSRKpZk+D/0hrViu6/3H1JTqqR10blbT8fYczVMr56CC3?= =?us-ascii?Q?Nd2eF0ZbE95+ARlMt7az7b2xjZYbAWSkAyVL7Nuo+LeMWgnEetikzqoZBAHz?= =?us-ascii?Q?VeS+n2F9CyWgwWMeHRkREvv7oWxlaWVdmRGiCxFGHEmWq2T6BjuoxpZCJ/i3?= =?us-ascii?Q?3TS/jz8PX3ulllNnYWblUk37Shx5FZZ4fB7FdC7nlxEvyJQnWEe/RpgVz4x6?= =?us-ascii?Q?IkSPUT5y9NS7Sb3sJz0O3htnIal8W0Y6AMwn0G2rn2pTtX/TOGWRbN3zPN7G?= =?us-ascii?Q?CrdeqgqOIup1Kois1ZjP1CBp1fDwOv5+yb48hAtqq5ATy0d1RVgtwti+Hx45?= =?us-ascii?Q?Sohkx83kMaZvM0H9PKTL0Stxf1AAuhrPwLk2vf8nfiDZXDC3HS6E8KxYe/tT?= =?us-ascii?Q?If5w7H3NjPEGBDWzfX8x6k+mfWgCtV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Twgb7h3QvG2GhNrsJrgmgvpHIwJTLtY1kw6GPckDzSoUF26kQ==; 24:G1LNuIwdIbeu/CQZpvdEb94kkgVgiO+vx5GnRgbr2SVcD70hz7+s5CBsmEKTA0dyBaVySAvQXbjXhtT/5oCqdWLVXwhkyYuVvLYQJavMVKw=; 20:ZyggnYsbKp/5H/GV1EKQyAPclrO2+T9ySqZrBfLcgz9PsIMq4dMsVCqyMQkaHjLC6IbyXPF+sx9BindLgadNew== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2015 11:36:36.3805 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB1310 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0622; 2:zuYJ7t9ddPCdpb0Yj5kQ0XbgrOeSjJDmv3j1eAfMSagfpYKuw9OHjAD5nb3sCTR+Mk09t8NmPN7sPQes6L5Eb6+lu8GWJsLKtcsdW5AGxPdS/BWQgf3bIOvCIm4osde8h1kVgnJN0Ego6vviwMl+U4IDyf5/dWHSByKJm5XQc6M=; 3:Xe7KvYCD1ZckDkzpVJabBC7ionMDId02BGYa7DmGxAZoMdsBpzVjq00osYWQxmcrP3kLS/wIsg/pSTGhzJvtuLo5od3qGzOlQ5Wa+WA6f5tW+PLRy2EryAGdoxDFYKNBqIiTBOaUk2M4NMawU3dTVGwzRoMksBC6FAABBHSuwwH4Oh6D8kjN82pJJVehY6coJf/xsIIDVBCMkuDXVPGmwvPizYKnyHH2QUZazTlLwRg=; 25:szgOKIp7LZQwCc7M6ChXS6b6NmC1obgXItQZXzC1sA0u0/haD+yvDtHvCFxI8r+PpdDc7SW1I+gt9/0czKbIln66YasekPhKbZIAQFTHvlBsC8aId+dJ5Pysbzqxu3lQFVkey3xt4MQzz+ahrtAF5afNUKu4EyyvJtw0XHN6lx+W11o1BnTCC4xwHnaduP0RdLWuaPp7x7lfVSgplu8zuHYg1gIlMyxf80sBeXSo2xMpM/TochDDTNG23925kQAOlvKfxJVoqWTY3rYUft+Rig==; 23:qZj/uZin/61Q5dzYkn0tlc1cpmxwjv/P+svs9qU0skS3sZuaEcmsc3QBniafZWsWK6S68801FTxOTDwwxpt/vXcc1LpJPM77ji/QQOtXe/uvwosqnbTS5HjikPJUrQhpasAjaum1Wxk9E/Esvh0AXZqkAGpBQU7f+JSbqCfhK0UBgx0LIEyNLB4I4GGZB+BAWwDPzGWb4Gc7+nS6wkMZb2USyUWvozioSYXW0B3yd/GFRi2NmrStfMJDT8P4TUA9 X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150811_043700_076091_232D2C3A X-CRM114-Status: GOOD ( 18.74 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: fabio.estevam@freescale.com, devicetree@vger.kernel.org, haibo.chen@freescale.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, mkl@pengutronix.de, johan.derycke@barco.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> 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=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 |
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 298551d..ac8ec01 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) @@ -1163,6 +1164,21 @@ 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 bit 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. This bit is used to enable/disable the burst length + * for the external AHB2AXI bridge, it's usefully especially + * for INCR transfer because without burst length indicator, + * the AHB2AXI bridge does not know the burst length in + * advance. And without burst length indicator, AHB INCR + * transfer can only be converted to singles on the AXI side. + */ + 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;
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 configed. 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 <haibo.chen@freescale.com> --- drivers/mmc/host/sdhci-esdhc-imx.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)