Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1652281 > unrolled thread
| Started by | Adrian Hunter <adrian.hunter@intel.com> |
|---|---|
| First post | 2017-05-29 10:20 +0200 |
| Last post | 2017-05-29 18:40 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 4/4] mmc: sdhci-esdhc-imx: Remove the ENGcm07207 workaround Adrian Hunter <adrian.hunter@intel.com> - 2017-05-29 10:20 +0200
Re: [PATCH 4/4] mmc: sdhci-esdhc-imx: Remove the ENGcm07207 workaround Ulf Hansson <ulf.hansson@linaro.org> - 2017-05-29 16:50 +0200
Re: [PATCH 4/4] mmc: sdhci-esdhc-imx: Remove the ENGcm07207 workaround Benoît Thébaudeau <benoit@wsystem.com> - 2017-05-29 18:40 +0200
| From | Adrian Hunter <adrian.hunter@intel.com> |
|---|---|
| Date | 2017-05-29 10:20 +0200 |
| Subject | Re: [PATCH 4/4] mmc: sdhci-esdhc-imx: Remove the ENGcm07207 workaround |
| Message-ID | <tMo4a-5yh-25@gated-at.bofh.it> |
On 03/05/17 13:05, Benoît Thébaudeau wrote:
> The SDHCI_QUIRK_NO_MULTIBLOCK quirk was used as a workaround for the
> ENGcm07207 erratum. However, it caused excruciatingly slow SD transfers
> (300 kB/s on average), and this erratum actually does not imply that
> multiple-block transfers are not supported, so this was overkill.
>
> The suggested workaround for this erratum is to set SYSCTL.RSTA, but the
> simple DAT line software reset (which resets the DMA circuit among
> others) triggered by sdhci_finish_data() in case of errors seems to be
> sufficient. Indeed, generating errors in a controlled manner on i.MX25
> using the FEVT register right in the middle of read data transfers
> without this quirk shows that nothing is written to the buffer by the
> eSDHC past CMD12, and no extra Auto CMD12 is sent with AC12EN set, so
> the data transfers on AHB are properly aborted. For write data
> transfers, neither extra data nor extra Auto CMD12 is sent, as expected.
> Moreover, after intensive stress tests on i.MX25, removing
> SDHCI_QUIRK_NO_MULTIBLOCK seems to be safe.
>
> Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Aside from one comment below...
I would expect to see Acks from other sdhci-esdhc-imx users. Nevertheless,
for sdhci:
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
> ---
> drivers/mmc/host/sdhci-esdhc-imx.c | 16 +++-------------
> 1 file changed, 3 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
> index fa60d13..868a51f 100644
> --- a/drivers/mmc/host/sdhci-esdhc-imx.c
> +++ b/drivers/mmc/host/sdhci-esdhc-imx.c
> @@ -115,11 +115,6 @@
> */
> #define ESDHC_FLAG_MULTIBLK_NO_INT BIT(1)
> /*
> - * The flag enables the workaround for ESDHC errata ENGcm07207 which
> - * affects i.MX25 and i.MX35.
> - */
> -#define ESDHC_FLAG_ENGCM07207 BIT(2)
> -/*
> * The flag tells that the ESDHC controller is an USDHC block that is
> * integrated on the i.MX6 series.
> */
> @@ -149,11 +144,11 @@ struct esdhc_soc_data {
> };
>
> static struct esdhc_soc_data esdhc_imx25_data = {
> - .flags = ESDHC_FLAG_ENGCM07207,
> + .flags = ESDHC_FLAG_ERR004536,
> };
>
> static struct esdhc_soc_data esdhc_imx35_data = {
> - .flags = ESDHC_FLAG_ENGCM07207,
> + .flags = ESDHC_FLAG_ERR004536,
> };
>
> static struct esdhc_soc_data esdhc_imx51_data = {
> @@ -286,7 +281,7 @@ static u32 esdhc_readl_le(struct sdhci_host *host, int reg)
> * ADMA2 capability of esdhc, but this bit is messed up on
> * some SOCs (e.g. on MX25, MX35 this bit is set, but they
> * don't actually support ADMA2). So set the BROKEN_ADMA
> - * uirk on MX25/35 platforms.
> + * quirk on MX25/35 platforms.
Please do spelling fixes as a separate patch. Note there are several
spelling errors in comments in drivers/mmc/host/sdhci-esdhc-imx.c so you
could easily do a few of them to make a separate patch more worthwhile.
> */
>
> if (val & SDHCI_CAN_DO_ADMA1) {
> @@ -1278,11 +1273,6 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
> if (IS_ERR(imx_data->pins_default))
> dev_warn(mmc_dev(host->mmc), "could not get default state\n");
>
> - if (imx_data->socdata->flags & ESDHC_FLAG_ENGCM07207)
> - /* Fix errata ENGcm07207 present on i.MX25 and i.MX35 */
> - host->quirks |= SDHCI_QUIRK_NO_MULTIBLOCK
> - | SDHCI_QUIRK_BROKEN_ADMA;
> -
> if (esdhc_is_usdhc(imx_data)) {
> host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN;
> host->mmc->caps |= MMC_CAP_1_8V_DDR;
>
[toc] | [next] | [standalone]
| From | Ulf Hansson <ulf.hansson@linaro.org> |
|---|---|
| Date | 2017-05-29 16:50 +0200 |
| Subject | Re: [PATCH 4/4] mmc: sdhci-esdhc-imx: Remove the ENGcm07207 workaround |
| Message-ID | <tMu9A-1fm-25@gated-at.bofh.it> |
| In reply to | #1652281 |
On 29 May 2017 at 10:07, Adrian Hunter <adrian.hunter@intel.com> wrote: > On 03/05/17 13:05, Benoît Thébaudeau wrote: >> The SDHCI_QUIRK_NO_MULTIBLOCK quirk was used as a workaround for the >> ENGcm07207 erratum. However, it caused excruciatingly slow SD transfers >> (300 kB/s on average), and this erratum actually does not imply that >> multiple-block transfers are not supported, so this was overkill. >> >> The suggested workaround for this erratum is to set SYSCTL.RSTA, but the >> simple DAT line software reset (which resets the DMA circuit among >> others) triggered by sdhci_finish_data() in case of errors seems to be >> sufficient. Indeed, generating errors in a controlled manner on i.MX25 >> using the FEVT register right in the middle of read data transfers >> without this quirk shows that nothing is written to the buffer by the >> eSDHC past CMD12, and no extra Auto CMD12 is sent with AC12EN set, so >> the data transfers on AHB are properly aborted. For write data >> transfers, neither extra data nor extra Auto CMD12 is sent, as expected. >> Moreover, after intensive stress tests on i.MX25, removing >> SDHCI_QUIRK_NO_MULTIBLOCK seems to be safe. >> >> Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com> > > Aside from one comment below... > > I would expect to see Acks from other sdhci-esdhc-imx users. Nevertheless, > for sdhci: Yes, I would also appreciate some ack/tested by, from the corresponding sdhci variant users of this series. However, to allow it to get some results from linux-next, I have queued up this series for next (amending $subject patch according to the comment from Adrian). Thanks! > > Acked-by: Adrian Hunter <adrian.hunter@intel.com> > > [...] Kind regards Uffe
[toc] | [prev] | [next] | [standalone]
| From | Benoît Thébaudeau <benoit@wsystem.com> |
|---|---|
| Date | 2017-05-29 18:40 +0200 |
| Message-ID | <tMvS3-2uZ-31@gated-at.bofh.it> |
| In reply to | #1652570 |
On 2017/05/29 at 16:42, Ulf Hansson wrote: > On 29 May 2017 at 10:07, Adrian Hunter <adrian.hunter@intel.com> wrote: >> On 03/05/17 13:05, Benoît Thébaudeau wrote: >>> The SDHCI_QUIRK_NO_MULTIBLOCK quirk was used as a workaround for the >>> ENGcm07207 erratum. However, it caused excruciatingly slow SD transfers >>> (300 kB/s on average), and this erratum actually does not imply that >>> multiple-block transfers are not supported, so this was overkill. >>> >>> The suggested workaround for this erratum is to set SYSCTL.RSTA, but the >>> simple DAT line software reset (which resets the DMA circuit among >>> others) triggered by sdhci_finish_data() in case of errors seems to be >>> sufficient. Indeed, generating errors in a controlled manner on i.MX25 >>> using the FEVT register right in the middle of read data transfers >>> without this quirk shows that nothing is written to the buffer by the >>> eSDHC past CMD12, and no extra Auto CMD12 is sent with AC12EN set, so >>> the data transfers on AHB are properly aborted. For write data >>> transfers, neither extra data nor extra Auto CMD12 is sent, as expected. >>> Moreover, after intensive stress tests on i.MX25, removing >>> SDHCI_QUIRK_NO_MULTIBLOCK seems to be safe. >>> >>> Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com> >> >> Aside from one comment below... >> >> I would expect to see Acks from other sdhci-esdhc-imx users. Nevertheless, >> for sdhci: > > Yes, I would also appreciate some ack/tested by, from the > corresponding sdhci variant users of this series. > > However, to allow it to get some results from linux-next, I have > queued up this series for next (amending $subject patch according to > the comment from Adrian). Thanks! Please note that I had superseded this series with a v2 following Adrian's comment. >> >> Acked-by: Adrian Hunter <adrian.hunter@intel.com> >> >> > > [...] Best regards, Benoît
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web