Message ID | 1438771122-8601-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 3A44DC05AC for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 5 Aug 2015 10:40:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4175320429 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 5 Aug 2015 10:40:04 +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 3393B203F1 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 5 Aug 2015 10:40:03 +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 1ZMw5F-0000tj-K5; Wed, 05 Aug 2015 10:38:05 +0000 Received: from mail-by2on0104.outbound.protection.outlook.com ([207.46.100.104] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZMw3r-0008AL-B1 for linux-arm-kernel@lists.infradead.org; Wed, 05 Aug 2015 10:36:44 +0000 Received: from BY2PR03CA069.namprd03.prod.outlook.com (10.141.249.42) by BLUPR03MB1409.namprd03.prod.outlook.com (10.163.81.143) with Microsoft SMTP Server (TLS) id 15.1.225.19; Wed, 5 Aug 2015 10:36:17 +0000 Received: from BY2FFO11FD033.protection.gbl (2a01:111:f400:7c0c::171) by BY2PR03CA069.outlook.office365.com (2a01:111:e400:2c5d::42) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Wed, 5 Aug 2015 10:36:16 +0000 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; 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 BY2FFO11FD033.mail.protection.outlook.com (10.1.14.218) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Wed, 5 Aug 2015 10:36:16 +0000 Received: from b51421-server.ap.freescale.net (b51421-server.ap.freescale.net [10.193.102.57]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t75AZe9L026522; Wed, 5 Aug 2015 03:36:11 -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 v4 5/6] mmc: sdhci-esdhc-imx: change default watermark level and burst length Date: Wed, 5 Aug 2015 18:38:41 +0800 Message-ID: <1438771122-8601-6-git-send-email-haibo.chen@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438771122-8601-1-git-send-email-haibo.chen@freescale.com> References: <1438771122-8601-1-git-send-email-haibo.chen@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD033; 1:cpwQ3dE7jfSCCa/ASYGmzz7qpTRA2Hy1hCByH/xehqOBBcKJjkbtoLqlSYUAXrkreTQxAzxxmziHxwHW0MiaKQk36XbGsIBZDAmhx2BTbNxSUDat/vZWLUOPOvayFeJAS730OUFv8Vdes82IT8LFfvcEi5mf/0Uk3R4Q5/eAAk1I7IeWD5431RTTeOjzgvBqNppXDNI2Ok2jbxyL18KBd84MUsc09BhL0Z6Q18jokXteBw8T7CiOmwEBunpzUsY09bhPoHjyqXoHwL0PZLZ7NGEyWxyNcwFCmw3QHv7Uj5ZI10jJnb4i1swXj/eNhVik9Qvu9UQnp64LZRAdBfGJ1w== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(5001860100001)(4001450100002)(36756003)(2950100001)(47776003)(189998001)(19580405001)(46102003)(64706001)(6806004)(5003940100001)(81156007)(77096005)(19580395003)(50466002)(5001830100001)(76176999)(229853001)(97736004)(104016003)(92566002)(4001540100001)(69596002)(86362001)(85426001)(5001770100001)(62966003)(50986999)(87936001)(105606002)(50226001)(2201001)(5001960100002)(230783001)(48376002)(77156002)(68736005)(33646002)(106466001)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB1409; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1409; 2:PgqON7AQBpyUYMyhdL6h6HYtQ0QgvIdO4Hc4tK3Ryv4wF/4hGfEfL78S2c1W5WanGIf+kAIukU0YJdwatT52f0sZz7T2+ByEmEYuAL4M0zXzyWeZYIYLUKGq786IUU7XOZY4JdRdrP4yeE/x19WUIdAmC19HD6DmR8FkWULSlTA=; 3:nOQA6QXGqAX0pIJ/Lds3DCvxl6f5JwyPWen2533ueO9MLNefcUJ++e+9ic4zxwVjZvrYTfYhCUrgfn1zq5Wip/8WyYj/9FRKgonyK+qV5PEloeBRYF+A3wywKhQqLpIymT7y9tD8NzdGo8sLr7O/0NYqhhbmbAvFk17P146PaVWbav1kBJrOg2vqTX3kh/z65Ha+6pOPib6df2mhUl9PCSqPDkGiZEYn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-Antispam-PRVS: <BLUPR03MB14093E95AA98E5647C34D3399A750@BLUPR03MB1409.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:BLUPR03MB1409; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1409; X-Forefront-PRVS: 06592CCE58 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB1409; 23:3b3Le3GRPTkK/LW0jaqiVhGySUKyFx7J0GBKoFDX7?= =?us-ascii?Q?B2LlVuJeWBIept0bz5EzrQqKasSVaxvTawkNpIfICLPAAzY7fEiWcaKYTKN0?= =?us-ascii?Q?dBuyzgDikuEPJHQlpaeAhRkT1CcJolZecfj97mEQnRj/2OsVRnBLq9CgaKN3?= =?us-ascii?Q?E4CTaVJZUkT+6HhBtZEyLyYSs9hDKcTZoRXPP8V+CDUDmqJ19rme+/pYyhhQ?= =?us-ascii?Q?f4P8bA4sG2ZvkPw/+cMI/6NBnol5sHho/ZiDGXn01IRnz2yE6oBssG3bfP2+?= =?us-ascii?Q?Ugphzj6w+cVB/JP2HelDqQ/QkOvxbqXr+JwMjU5vQCeR1q0n7RFPKPIUCXQh?= =?us-ascii?Q?FxWbe6Lj7s3zPxixOHa4Kkejy3l5PkGlOChG9sNWBPojxf1zAayUwSN9tUz7?= =?us-ascii?Q?y5qMANDy4ocrfbIunYP5qHKLdHYtzqgicq5soywfnkp+4KGKvhjOH08GBrxO?= =?us-ascii?Q?IU2Fkww860ks4Cd8IvRWpF4mBcYFuNIY1WKrYCqewNAlMUCk+UvKVxEZpDyn?= =?us-ascii?Q?3UKg5bYO7R0zJ1udaBquu5G/maO1+KPXRtWe03YuUcmKbjvAOxwbLj/Pv8q8?= =?us-ascii?Q?BvORsIeEt5cQDI1Bx05LJ9kl2J2uXOpMBOY6kEDLUTVY5ZwAq1M82rtsgLxA?= =?us-ascii?Q?J2mA0OaS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Mbdau0/ErhkyaVhFIA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2015 10:36:16.3689 (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: BLUPR03MB1409 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150805_033639_866587_DD7DFF12 X-CRM114-Status: GOOD ( 18.19 ) 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, b29396@freescale.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.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 |
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 803d24f..97aa944 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(-)