Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752979AbbGaPEM (ORCPT ); Fri, 31 Jul 2015 11:04:12 -0400 Received: from mail-bn1bon0140.outbound.protection.outlook.com ([157.56.111.140]:7536 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751566AbbGaPEK (ORCPT ); Fri, 31 Jul 2015 11:04:10 -0400 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; Date: Fri, 31 Jul 2015 22:55:17 +0800 From: Dong Aisheng To: Haibo Chen CC: , , , , , , , , , , , , , , , Subject: Re: [PATCH v3 5/6] mmc: sdhci-esdhc-imx: config watermark level and burst length Message-ID: <20150731145516.GF27806@shlinux1.ap.freescale.net> References: <1438160637-28061-1-git-send-email-haibo.chen@freescale.com> <1438160637-28061-6-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-6-git-send-email-haibo.chen@freescale.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD004;1:aP7sSi3QBAlJWciPRfKBAzit5PVXGc7sj26xZtra+yRLVzTF82YlQ9di0AdplXFyRidv8rQjzmyd2ErcI9YAe8FuNDZVWL+dGn9pH+xPdqXvK2X3qefoZjyISuZ7nbznO01/+2PgbrubmM87YLScLI4+h6WaFZFV5JRf6YZSOd9YVRDVVAGfp2VzSA3LJPIafIIwIDWqenyBmPGSU0AzFNTklRKIE9OEdDIdjv4xnA5zvh5KS5DhycHHlVelDVOjE3I+eYKgA9qrLJRNwdKG+p46CwRINOOS/ENBbvK5HEhSE26xrmU7F9Clz9Lnqt6HLSDFE2BvqDprSxW+GrA5Aw== X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(24454002)(199003)(54356999)(4001450100002)(106466001)(97756001)(50986999)(77156002)(46406003)(33656002)(23726002)(19580405001)(6806004)(2950100001)(19580395003)(104016003)(76176999)(62966003)(5003600100002)(77096005)(83506001)(50466002)(189998001)(230783001)(105606002)(110136002)(5001960100002)(47776003)(86362001)(85426001)(92566002)(87936001)(4001350100001)(46102003);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR03MB1382;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1382;2:JWNNhJ7l6m74fIUNnbr/pKoHbnydZ+Lm3zmF9f8IUlX1efKGRoe3wWYfr42BdPIKp9HYAUhy/FENZnFW4P1ElyQHDWgmuR1bxtN9XCJSx8y8jTsWyMRiAZAUFoSObd9yLbSZ5sD2mCYGn3po7zwLAdKJp/LNyj3gqTY7+AkmRVQ=;3:guwjc+NvQcQg/GpqvCR79pvaS+lEToKfA3r7JTs7r7S70ssWZc6IWurQ1mWrGh6Tsnq9/xxfQ6GxX6UcPSkBf6Fy74I5Exq7bDteHXsalZSNQCnbek5K/lEl/sLDF9WqGqLaew0EAq+3S8kc1H4wx5hqazYbltrhnv/QikZd0KAv7gcWUdSNmbk53yDagB/6RPk2iGgfnO8UewTzwGtPQUO1h/xBEzq1kXKUgt53Ido=;25:lkfzdBoTL2MZ6g5nEU64TUWK8Ydw2CHUs40APSphLgoDU64LgklYDcZhhbFq8CfU2RMjCg4gINRivdWkWXqfkViIO6+nFRqIzx/uHe7QJhbIAx6sUm9tWC8skbDRSilZTvieuson6WJidcfdRmM6nNU4HoaZUljznhvB7jk74G+/lDqc6+O6Y3gSw4bSpBSd5tROUZDC4GKnLIWUj473mJzj93S6vGqvsKAKrIHg4TeTnTwTc8YHopkqWNepmMBp00Iip0df9fKl4eKbkzoB9w== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1382; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1382;20:04hwUPzTZW+vz3CC4yNcUuSWPWYxjN3ewqEw9FZlW26vorEbhs8vUF+UMJSV6zuzrddztclt5EYwjvjDBYkEBbkssSJ3sbXtjm3AYjMolO8iu2E3brJrYIM9tM5wywDc1z3BXBONJpaTJksV7rLYT0RScXvswXE+gf1qCvMZC+UckiSxeif3kEcihD+pQLGIU2HOdmBKc4/h8MoDjNLQgfvJsAse3xj+8TvL59jkyZA6yy2cuw4Oc7GgFU/GfJV1b22raWOL1UPi4WYTeUVOrZ4eUwh/+4JRKiRrzaAlPKZmTZraRFMByvnKGGY3e62m2rBVpsGdzTzkXEN+Zz+x5c2RZ7oBnouGOZMWVnLZVGg=;4:L2emHaWZQ1Mhw/mUprYaRuU63fHbGMlvlxTC0Ihnkwjt7MEe31Kxu+OV0aQpqJBl6zllwoVqX1L6CPI8HEEo8JbxnTPTRc69xETXrj7TapwiuJd+jw8Tlvk9fQfxw14x3CxlPjBvEs67Wxg9bRzmfRSUG1F6VAjJl7UFBkcFZfvlSn2H7CRYovOfwBNTFkdVFyL184vTvmUUWQgfMzkCkDoIz/A850sqaGmukyAdCF+/ZIHlJrlF8uAp3Vb/w4ow1I7fb443b+KiQxf034jJqxu8fOs/nBZWbEaip/Gq/nk= BN3PR03MB1382: X-MS-Exchange-Organization-RulesExecuted 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:BN3PR03MB1382;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1382; X-Forefront-PRVS: 0654257CF5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR03MB1382;23:9/NLRwn00c2gp94KdfwvGbd5ghbL/mZ4HY20/z3Nt?= =?us-ascii?Q?sUQv+rNUPyKJnXrR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Q?OPNrBEVNbTjAW76DNW4pTano1Yu0let0s5Mqj78GBTuvo5KqMm5iRS8hvhpg?= =?us-ascii?Q?IDJj8B6YD/9Mo7gr2ifuZse?= X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1382;5:tmyIhgBmNnN1dtguKwhfPt2nfm5gsmYzamnu+FZwNQqO7YODG2Sy82SMzqhsrrAZUKcrRLoxkGF2AgiiVbGGjLR6KgpKO1lJB8Q24NPGGF9Pt4vcKcPayFwvUBJeaWCGGUxdJ20raPeXPtXF29m5mA==;24:/n8Ejx36WVTgH3oNJu/7pNnD6hlyElVp4bzUoikRJKP0UNDTyBz0XyZTm0wO+o+4xrQUsMKYHgujC4zPHsGSsWdLkU+HhybJxGnlH4I1Rtc=;20:l6iYGE2aTFVY6Od2WQ5xi8UDYz6U3FcXNdlAU6IbVVBVPUxJ6v0ur65rn/J4As3yvw0jnVaV0XuFpqZygEm7Fw== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2015 15:04:06.0909 (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: BN3PR03MB1382 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2490 Lines: 66 On Wed, Jul 29, 2015 at 05:03:56PM +0800, Haibo Chen wrote: > 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. > > For imx7d usdhc, this patch set the burst length as 16, and set > watermark level as 64. The test result is the clock signal has > no stop during the eMMC HS400 operation. For other imx usdhc, remain > the default value: burst length as 8, watermark level as 16. > Add please change patch title a bit since this patch change is actually for mx7d: mmc: sdhci-esdhc-imx: change watermark level and burst length for imx7d Regards Dong Aisheng > Signed-off-by: Haibo Chen > --- > drivers/mmc/host/sdhci-esdhc-imx.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c > index 158f93b..37d0095 100644 > --- a/drivers/mmc/host/sdhci-esdhc-imx.c > +++ b/drivers/mmc/host/sdhci-esdhc-imx.c > @@ -239,6 +239,11 @@ static inline int is_imx6q_usdhc(struct pltfm_imx_data *data) > return data->socdata == &usdhc_imx6q_data; > } > > +static inline int is_imx7d_usdhc(struct pltfm_imx_data *data) > +{ > + return data->socdata == &usdhc_imx7d_data; > +} > + > static inline int esdhc_is_usdhc(struct pltfm_imx_data *data) > { > return !!(data->socdata->flags & ESDHC_FLAG_USDHC); > @@ -1145,7 +1150,11 @@ 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); > + if (is_imx7d_usdhc(imx_data)) > + writel(0x10401040, host->ioaddr + ESDHC_WTMK_LVL); > + else > + writel(0x08100810, host->ioaddr + ESDHC_WTMK_LVL); > + > host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN; > host->mmc->caps |= MMC_CAP_1_8V_DDR; > > -- > 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/