Revision 5ea47691bd99e1100707ec63364aff72324e2af4 authored by Daniel Drake on 20 March 2019, 06:36:53 UTC, committed by Ulf Hansson on 21 March 2019, 10:19:06 UTC
Setting max_blk_count to 1 here was causing the mmc block layer
to always use the MMC_READ_SINGLE_BLOCK command here, which the
driver does not DMA-accelerate.

Drop the max_blk_ settings here. The mmc host defaults suffice,
along with the max_segs and max_seg_size settings, which I have
now documented in more detail.

Now each MMC command reads 4 512-byte blocks, using DMA instead of
PIO. On my SD card, this increases read performance (measured with dd)
from 167kb/sec to 4.6mb/sec.

Link: http://lkml.kernel.org/r/CAD8Lp47L5T3jnAjBiPs1cQ+yFA3L6LJtgFvMETnBrY63-Zdi2g@mail.gmail.com
Signed-off-by: Daniel Drake <drake@endlessm.com>
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
Fixes: c5413ad815a6 ("mmc: add new Alcor Micro Cardreader SD/MMC driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 031d2cc
History
File Mode Size
Kconfig -rw-r--r-- 6.5 KB
Makefile -rw-r--r-- 1.7 KB
altera-cvp.c -rw-r--r-- 14.6 KB
altera-fpga2sdram.c -rw-r--r-- 4.9 KB
altera-freeze-bridge.c -rw-r--r-- 6.8 KB
altera-hps2fpga.c -rw-r--r-- 5.8 KB
altera-pr-ip-core-plat.c -rw-r--r-- 1.4 KB
altera-pr-ip-core.c -rw-r--r-- 5.0 KB
altera-ps-spi.c -rw-r--r-- 8.5 KB
dfl-afu-dma-region.c -rw-r--r-- 11.6 KB
dfl-afu-main.c -rw-r--r-- 14.5 KB
dfl-afu-region.c -rw-r--r-- 4.1 KB
dfl-afu.h -rw-r--r-- 2.9 KB
dfl-fme-br.c -rw-r--r-- 2.5 KB
dfl-fme-main.c -rw-r--r-- 6.3 KB
dfl-fme-mgr.c -rw-r--r-- 9.2 KB
dfl-fme-pr.c -rw-r--r-- 11.4 KB
dfl-fme-pr.h -rw-r--r-- 2.0 KB
dfl-fme-region.c -rw-r--r-- 2.1 KB
dfl-fme.h -rw-r--r-- 1.0 KB
dfl-pci.c -rw-r--r-- 6.1 KB
dfl.c -rw-r--r-- 25.8 KB
dfl.h -rw-r--r-- 12.1 KB
fpga-bridge.c -rw-r--r-- 12.3 KB
fpga-mgr.c -rw-r--r-- 19.2 KB
fpga-region.c -rw-r--r-- 8.5 KB
ice40-spi.c -rw-r--r-- 5.4 KB
machxo2-spi.c -rw-r--r-- 9.3 KB
of-fpga-region.c -rw-r--r-- 12.2 KB
socfpga-a10.c -rw-r--r-- 15.3 KB
socfpga.c -rw-r--r-- 17.0 KB
stratix10-soc.c -rw-r--r-- 12.4 KB
ts73xx-fpga.c -rw-r--r-- 4.3 KB
xilinx-pr-decoupler.c -rw-r--r-- 4.1 KB
xilinx-spi.c -rw-r--r-- 4.9 KB
zynq-fpga.c -rw-r--r-- 17.6 KB

back to top