Revert "mmc: rockchip_sdhci: Limit number of blocks read in a single command"
Subsystems (2)
PATCH 1/1 Revert "mmc: rockchip_sdhci: Limit number of blocks read in a single command"
This makes MMC extremely slow on bob. Even reading the environment takes ages.
If there is a bug on a particular controller, it should be worked around using the compatible string, e.g. with ->flags in struct sdhci_data - althought I don't see any docs for the flags.
This reverts commit 2cc6cde647e2cf61a29f389e8d263bf19672f0f5.
---
configs/rock5b-rk3588_defconfig | 1 - drivers/mmc/rockchip_sdhci.c | 8 -------- 2 files changed, 9 deletions(-)
configs/rock5b-rk3588_defconfig +0 -1
@@ -58,7 +58,6 @@ CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_SDMA=y -# CONFIG_SPL_MMC_SDHCI_SDMA is not set CONFIG_MMC_SDHCI_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y
drivers/mmc/rockchip_sdhci.c +0 -8
@@ -589,14 +589,6 @@ static int rockchip_sdhci_probe(struct udevice *dev)if (ret)return ret; -/* -* Reading more than 4 blocks with a single CMD18 command in PIO mode -* triggers Data End Bit Error on RK3568 and RK3588. Limit to reading -* max 4 blocks in one command when using PIO mode. -*/ -if (!(host->flags &USE_DMA )) - cfg->b_max =4 ; -return sdhci_probe (dev); }
Signature · 1 line
2.40.1.495.gc816e09b53d-goog
Hi Simon,
Quoted 6 lines · Simon Glass
This makes MMC extremely slow on bob. Even reading the environment takes ages.
If there is a bug on a particular controller, it should be worked around using the compatible string, e.g. with ->flags in struct
sdhci_data- althought I don't see any docs for the flags.
This revert will break booting from emmc on rock5b-rk3588.
An alternative to this revert could be to enable CONFIG_MMC_SDHCI_SDMA for more rk3399 defconfigs. Using DMA should improve/restore performance.
I have a followup patch in the works that changes this slightly, can include a change to only apply this workaround for rk35xx.
Regards,
Jonas
Quoted 41 lines
This reverts commit
2cc6cde647e2cf61a29f389e8d263bf19672f0f5.Signed-off-by Simon Glass <[email protected]>---
configs/rock5b-rk3588_defconfig | 1 - drivers/mmc/rockchip_sdhci.c | 8 -------- 2 files changed, 9 deletions(-)configs/rock5b-rk3588_defconfig +0
-1@@ -58,7 +58,6 @@ CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_SDMA=y -# CONFIG_SPL_MMC_SDHCI_SDMA is not set CONFIG_MMC_SDHCI_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=ydrivers/mmc/rockchip_sdhci.c +0
-8@@ -589,14 +589,6 @@ static int rockchip_sdhci_probe(struct udevice *dev)if (ret)return ret; -/* -* Reading more than 4 blocks with a single CMD18 command in PIO mode -* triggers Data End Bit Error on RK3568 and RK3588. Limit to reading -* max 4 blocks in one command when using PIO mode. -*/ -if (!(host->flags &USE_DMA )) - cfg->b_max =4 ; -return sdhci_probe (dev); }
Hi Jonas,
Quoted 11 lines · Jonas Karlman
Hi Simon,
Quoted 6 lines · Simon Glass
This makes MMC extremely slow on bob. Even reading the environment takes ages.
If there is a bug on a particular controller, it should be worked around using the compatible string, e.g. with ->flags in struct
sdhci_data- althought I don't see any docs for the flags.
Quoted 7 lines
This revert will break booting from emmc on rock5b-rk3588.
An alternative to this revert could be to enable
CONFIG_MMC_SDHCI_SDMAfor more rk3399 defconfigs. Using DMA should improve/restore performance.I have a followup patch in the works that changes this slightly, can include a change to only apply this workaround for rk35xx.
OK, but please use the compatible string for any workarounds.
Regards,
Simon