Message ID | 1439293111-21077-7-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@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C01A49F358 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 11 Aug 2015 11:39:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E489020456 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 11 Aug 2015 11:39:43 +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 9312920671 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 11 Aug 2015 11:39:42 +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 1ZP7sO-00017I-Fv; Tue, 11 Aug 2015 11:37:52 +0000 Received: from mail-bn1on0140.outbound.protection.outlook.com ([157.56.110.140] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZP7rd-0000SW-FU for linux-arm-kernel@lists.infradead.org; Tue, 11 Aug 2015 11:37:08 +0000 Received: from DM2PR03CA0037.namprd03.prod.outlook.com (10.141.96.36) by BLUPR03MB1410.namprd03.prod.outlook.com (10.163.81.144) with Microsoft SMTP Server (TLS) id 15.1.225.19; Tue, 11 Aug 2015 11:36:42 +0000 Received: from BY2FFO11OLC013.protection.gbl (2a01:111:f400:7c0c::148) by DM2PR03CA0037.outlook.office365.com (2a01:111:e400:2428::36) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Tue, 11 Aug 2015 11:36:41 +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 BY2FFO11OLC013.mail.protection.outlook.com (10.1.15.25) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Tue, 11 Aug 2015 11:36:41 +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 t7BBZxY8002344; Tue, 11 Aug 2015 04:36:35 -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 6/6] mmc: sdhci-esdhc-imx: change default watermark level and burst length Date: Tue, 11 Aug 2015 19:38:31 +0800 Message-ID: <1439293111-21077-7-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; BY2FFO11OLC013; 1:u7U4u8JnMGgRt1r58Jfig1TIX77Bb/gqGfUdM+/7ZmUrVRJGJuFv2ZK971EgXgsqNNBAQbD1jBkrKw9HiL2Mm8vWmdMF1bYqnoH8tT1wEUSJj/BRtnfTxscVRy+VZ9HAf8nVhfWQY55hUNTC/L+hYPLSRVXN1XBYEUdZS9v7NVi7GGyEtEQrz9sBNuXz8ETX1dWDtgOYFJcbVQ4yLZPG7+hrKlNWEK5NhpibPddLTz4IkMzm7cGnDL8ei1zuekx3VsJYaDyr2AYd0RuYa1ApCJ4IpETppj3nhNt6uwsCH71BFbsAZArULulzZRBAhAElLtNSygfOmsZEJeL0hAA+mvmmQaVUB9jzMMWZtTv/otn/idMi5blxrcKvLyJ6kv6v X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(979002)(6009001)(2980300002)(3050300001)(339900001)(189002)(199003)(48376002)(50226001)(105606002)(230783001)(50466002)(19580395003)(6806004)(19580405001)(50986999)(76176999)(33646002)(104016003)(106466001)(229853001)(4001450100002)(85426001)(86362001)(2950100001)(189998001)(64706001)(47776003)(97736004)(5001860100001)(2201001)(4001540100001)(5001830100001)(5001770100001)(5003940100001)(68736005)(77096005)(81156007)(5001960100002)(46102003)(87936001)(36756003)(77156002)(62966003)(92566002)(921003)(1121003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB1410; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1410; 2:uvk9YzUZBvVj5iPZJin4zxydtHuzL9evaAii/wJ372DpfRlCDBUYUsVS/M1qSmz/gn3zu94vAi2jwJ1G3h4yoJwGZbHHA3Uxwd/5lWNW5rWCGcBqcQrFREAKMtXda7PwLxRtU12HxB2jTz4kwmzrUrPcb5Mha88tz9QWxM7zqGw=; 3:ZZ7bY430LVvgYF0r5XGI2SZZ2NOjLPRdOXaOTcz/tSTzDN+QcuVeBK6To2VlKFC89U1dUOL/GZHEMlA63vSSr71/ujO8WQfOD+xpva8NM9FI0Vl8lbt7j8MOOYt8um+dHc5b+9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eE3neXFXfMAK8ap2AleGmCsjpWm9CiOG+0H04jryl+eEX42PPEpjnUiiJCR4+EXiKRqilZHuR65k= X-Microsoft-Antispam-PRVS: <BLUPR03MB14103218FAA54DEE6943D8909A7F0@BLUPR03MB1410.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:BLUPR03MB1410; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1410; X-Forefront-PRVS: 066517B35B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB1410; 23:l3E26qpGoor1n1+yJ0lANrUkPrFQ5izZXJINP1uzq?= =?us-ascii?Q?bIGAyiy3zTwobFD9Ov8KJ4AZv1JAfBrgqisQD9H485Uy6Vh6Y2ZJU3udQltz?= =?us-ascii?Q?YVW7lGowkE1F8dKsVqmRY47rOyELqI6wwmmYWzltJ0qrvEAbhLjiI4Al+Nld?= =?us-ascii?Q?LZqBL4rgOrzcNlCjiUhV2oU9WuSyIZ6+53paDl1BrpXHzAc0Zm3qGd8Awwle?= =?us-ascii?Q?vqrwM4g751TifdpbYSKwfg7v196GlXFbUazsFgRQIQH9BWn8kGrQz2FuTht3?= =?us-ascii?Q?EX6opnpHOXSGybieKC9U81JKasL/4uJ3xJFvVhaNLRr4u1L8C9UM93tlkeZK?= =?us-ascii?Q?40/w4CMafRP7/M5phqmtzFH/s0Qb8tepOx/pw9pR3FEbFaSojVFlcsTu3d0w?= =?us-ascii?Q?2QpTPyRNZO3AArlwNJ5oXzVvxnvHct5+1++dLWYMUhU4ztlc0dgLo63bfDGa?= =?us-ascii?Q?rZIJz038jdWD4ozzJdl6uPCemQIeBiFxRJx+zmGqOLrzp7IFYicTesHI5yn+?= =?us-ascii?Q?QHT6vP1O1Nujp921+hLzgBFBXT+SZjpIW6/wrhVNon1x9YLRLCboz6lUmhvB?= =?us-ascii?Q?Qxu2vX+M4N3IS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t3KNC3QNR7A==; 24:VgVLAaznTF1par5LVo6668mVG5kzJrYSve1j2Ee6e55YH8enP0r4VPxcN2vaGn6OIu9D6OaD54VpD40yMe99SzlB868ehiOry1SN67lAycI=; 20:6rhcOuLF6mcGoGctFqgf3D/0NqWmR1k2e08SoHfAbNr/K6cTAFmFea936ehgVcYXXIIJP2FarGUx7IkaTQeLGQ== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2015 11:36:41.5680 (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: BLUPR03MB1410 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150811_043705_996961_E26E81A3 X-CRM114-Status: GOOD ( 21.32 ) 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 ac8ec01..886d230 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -1160,7 +1160,8 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) * to something insane. Change it back here. */ if (esdhc_is_usdhc(imx_data)) { - writel(0x08100810, host->ioaddr + ESDHC_WTMK_LVL); + writel(0x10401040, host->ioaddr + ESDHC_WTMK_LVL); + host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN; host->mmc->caps |= MMC_CAP_1_8V_DDR;
By default, for all imx SoC types, the watermark level is 16, and the burst length is 8. But if the SDIO/SD/MMC I/O speed is fast enough, this default watermark level and burst length will be the performance bottleneck. For example, i.MX7D support eMMC HS400 mode, this mode can run in 8 bit, 200MHZ DDR mode. So the I/O speed improve a lot compare to SD3.0. The default burst length is 8, if we don't change this value, in HS400 mode, when we do eMMC read operation, we can find that the clock signal will stop for a period of time. This means the speed of data moving on AHB bus is slower than I/O speed. So we should improve the speed of data moving on AHB bus. This patch set the default burst length as 16, and set the default watermark level as 64. The test result is the clock signal has no stop during the eMMC HS400 operation. Signed-off-by: Haibo Chen <haibo.chen@freescale.com> --- drivers/mmc/host/sdhci-esdhc-imx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)