Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755521AbbHGIAc (ORCPT ); Fri, 7 Aug 2015 04:00:32 -0400 Received: from mail-by2on0142.outbound.protection.outlook.com ([207.46.100.142]:11210 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755312AbbHGIA0 (ORCPT ); Fri, 7 Aug 2015 04:00:26 -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, 7 Aug 2015 15:50:51 +0800 From: Dong Aisheng To: Haibo Chen CC: , , , , , , , , , , , , , , , , Subject: Re: [PATCH v4 6/6] mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1 Message-ID: <20150807075050.GC6935@shlinux1.ap.freescale.net> References: <1438771122-8601-1-git-send-email-haibo.chen@freescale.com> <1438771122-8601-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: <1438771122-8601-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;BY2FFO11OLC002;1:bZT7znU5921IksAbio5CCvWUbSfspKKnVl513JJIpUVaW76meKLDzGMLVVQT8yQ9qwCtSzL4uaWEO6/NHvvlPkrVwou6MV2OKSUo5F4Boqr2IWm3xusUW+S0rC8IA/o0f/BSMuNp2Kv3+AllV7wy7oTfYQhzlRfOLkJ5DQjAP0SNalqzmVfm3ppvPYXCeHNmZBnYIcd/smnYtzIxUzDWv1FzPsllpCYtmBzu5CiarZ6Sd9yT8TEvq5hFwH28/9qHu4/MLoNV12eT/TaG9n1RS0RWtYDB0TQ33bXP8GUraAiyHA3n/xzTxkoxYBNhTLlsJKE3sDB7wzuXQrv4NTt2Mw== X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(24454002)(189002)(199003)(4001450100002)(92566002)(19580395003)(50986999)(87936001)(62966003)(46406003)(54356999)(76176999)(77156002)(5003600100002)(105606002)(106466001)(47776003)(104016003)(230783001)(19580405001)(2950100001)(68736005)(64706001)(77096005)(5001860100001)(86362001)(110136002)(97756001)(97736004)(33656002)(5001960100002)(5001830100001)(85426001)(50466002)(23726002)(189998001)(83506001)(4001350100001)(46102003)(4001540100001)(81156007)(69596002)(6806004);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR03MB1388;H:az84smr01.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1388;2:QTzX6ONjqLwff1XyHwmqucpMwPaRbNTTtnPsNbnnHz7J8u93wqmf+thdyaARvz0hRB56xrEeYL6pTfG7w8sbdfntS40h24xvmUP66cQ3wsI1/8QxfU+ifE7reNFaiKhweniai9YCHMm9QXGIM6R46UZ9BR4unWQzKYrA0gKmDAM=;3:uWgyVCeNML5iR+X5lcZATVmnTpcHgaE2XtX/hhklbMZU2ppWzKT73vENJKPVNs5M3ruLl11wRdRXlrW8rTMB9QJ8q5xL2Q1t9BQUjs75CcBaaZ7HTkxqD+ULVUTUexs0dvpaTdCVFvDfbw9aOiYTi9+bS6f9zBTK65TnW5h4NuduO8T3Xoom6Tvhyh9Vh1SJ7NTjK9f6K2MwPEwItzWBQWYAqycqRg+AjJbSz27uym8=;25:OhTGynn8mc7z++jZXee3xF2Ka6nQhsOH1RgWirJXcwPeWExb+YdcGFZA1Um+XzTWRsrlHU/aAGPydrz+owsoDggvBl8ewaryaskoSWn7BYalCN/M3HHl41pKLuHJB9Fftc5qYUqBj/XjKU8F8BJ5Q+Tglj4XaptSYC8/vdmbOL/533OtoiXwwhAKoXZeN52H6SGFxhz41h5Ud9NnQr+cQRcTuFtkGr2zMKd4W2K7w7wePYp4UZ5l5HruOq4hgiCHyZAzenziFfuZpx/540RBjA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1388; X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1388;20:9gjvcggFCJHAuH8Ofa37vZG/n59EHwQd1WR1hQTgv+GA8namLu4CfBCs+5xpeRqnIq3YHVcSWLYVp3+Ipwcq0sxt4YA59aTIPhV0VwxVaHyadN7YaZJZs0qpou46sgexecfDJ5znTOCccqqhvs0R9TXeg/tjmpOSS5TD5s7srj7qJE95H97GhMcWJ4ndxxBq+f9/KQ7iQ5r0lRaZ3iFDc0aYR9x2Nh0odopLNexWF8ujNwh2EpggPfP1chW5KbaNPrGXo7gT5q3dFzN9bOi/mCn9TygiDw99VNGLdh76P6Lrx5A4P2CbnC1a143v2QZbeGKb/JA8mJnTki2BApSXE53dtLErXKfIlrDBnvy+AX4=;4:C9AQHEE/VughmCVUFWmmLXbopZLt3ps3zL9LUdE0t0R7JBIwpiNvHYy/aLCgt+w1iXHk4jL6ilimx11RKtQdprPJ6J1iWvxeOQ+62ESzCJxY3q4kA3Cs8EUcMFCewz3AqRZWkC1ABvEvEeHM8Z/vNZVY4+77+Bv7AIqPdz2ATh1rY9xFy2939IEy0pgi+mSTBxSBBM9yPaKe9zCDtcbhu5QS9A/S3yBD3c1iBTYwdi8K8Q20Z2Ak4D1qekEJ+JopcP/lN+d54vo5VkBHnrRBRToRDsX4gJBoH5g3SiDqaco= 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:BY1PR03MB1388;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1388; X-Forefront-PRVS: 066153096A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR03MB1388;23:7k3mo3SiRU/a/5j1xwyVXxJYQhdijv8qSiLsSMeq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NgLiNKBcGS4L5kVOdvkPJUZfOjZbQw70l?= =?us-ascii?Q?VcbL1TkCjhbfGOqy81mYkY6mDOTXAzqkeSjIvHsHDVWrfr8CZrirBNTsm6oM?= =?us-ascii?Q?58x0OEduwWkoZN7zp31g4hQHBNmjinn0IZBLYP2R8zASrgkOmH+QB87yXReQ?= =?us-ascii?Q?ZxCKAmLZI8C/CXamPsz9Y+n7KetiTeY2vdyPwrXjtbtEt+165MDdAD+vZrJt?= =?us-ascii?Q?E/fSVWD87atrV7tEzb+i7Jm/RITadraZPmZlS2S7TADV0NasQzpX7G5hsJXb?= =?us-ascii?Q?aof3P1d4+6h+y78obFc6LGRLREUmkN/Qvv8PqcCEUYRJO5iWQydbZGE7g=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1388;5:T7SxAqt+eNCYraG2qTd4JPN0Y4VLYNue7d2NKtEIkens/IG18ZP+9iSCbeDpcYwhY4qNr0cpk2MVKjgIxNxiryZO+TPSQYtUDN5X1JbgN65Z+9Z1iF8qmL3WUn0o1CSU4tpfq0biehWQ+VzPF7T2jA==;24:qdkJeAcCANgjsCNqjQrrgvUEhthk72uIp9jG4WV5LrWFvzEL3l7VdmUGA3pxLIwn6dMHz+wHC+sIq/HuflWnLlAdFmJUORmEI8Ls3hdicnI=;20:TqcrKv11Dy7T7Icq9LSBafMGsEmzfTNsoAjybX0CgY6KLhzG5LqGTixfSWpS1WkyaMsbyaYaLZBpVMd8CWnvpQ== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2015 08:00:22.9971 (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: BY1PR03MB1388 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2550 Lines: 64 On Wed, Aug 05, 2015 at 06:38:42PM +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 > 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. > This patch should be put before patch 5 to avoid function break, right? [PATCH v4 5/6] mmc: sdhci-esdhc-imx: change default watermark level and burst length Other than that, this patch looks good to me. Regards Dong Aisheng > Signed-off-by: Haibo Chen > --- > drivers/mmc/host/sdhci-esdhc-imx.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c > index 97aa944..3334762 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) > @@ -1165,6 +1166,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; > > -- > 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/