]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: Use Auto CMD Auto Select only when v4_mode is true
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Thu, 15 Oct 2020 09:41:15 +0000 (17:41 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 15 Oct 2020 10:29:59 +0000 (12:29 +0200)
commit962ab9a4517a9182247a831516776c03b9040cb1
tree86fad4c663e0876c0f1adbbe46d464c81cff98e7
parentdf13648b125ed3b26e8fccf20a67119472eeaada
mmc: sdhci: Use Auto CMD Auto Select only when v4_mode is true

sdhci-of-dwcmshc meets an eMMC read performance regression with below
command after commit a06b60fa4481 ("mmc: sdhci: Add Auto CMD Auto
Select support"):

dd if=/dev/mmcblk0 of=/dev/null bs=8192 count=100000

Before the commit, the above command gives 120MB/s
After the commit, the above command gives 51.3 MB/s

So it looks like sdhci-of-dwcmshc expects Version 4 Mode for Auto
CMD Auto Select. Fix the performance degradation by ensuring v4_mode
is true to use Auto CMD Auto Select.

Fixes: a06b60fa4481 ("mmc: sdhci: Add Auto CMD Auto Select support")
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20201015174115.4cf2c19a@xhacker.debian
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c