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
iscsi
loopback
sbp
tcm_fc
Kconfig -rw-r--r-- 1.4 KB
Makefile -rw-r--r-- 939 bytes
target_core_alua.c -rw-r--r-- 60.5 KB
target_core_alua.h -rw-r--r-- 6.0 KB
target_core_configfs.c -rw-r--r-- 92.2 KB
target_core_device.c -rw-r--r-- 31.9 KB
target_core_fabric_configfs.c -rw-r--r-- 27.7 KB
target_core_fabric_lib.c -rw-r--r-- 11.7 KB
target_core_file.c -rw-r--r-- 25.0 KB
target_core_file.h -rw-r--r-- 1.2 KB
target_core_hba.c -rw-r--r-- 4.7 KB
target_core_iblock.c -rw-r--r-- 22.0 KB
target_core_iblock.h -rw-r--r-- 623 bytes
target_core_internal.h -rw-r--r-- 6.7 KB
target_core_pr.c -rw-r--r-- 122.7 KB
target_core_pr.h -rw-r--r-- 2.4 KB
target_core_pscsi.c -rw-r--r-- 28.1 KB
target_core_pscsi.h -rw-r--r-- 1.3 KB
target_core_rd.c -rw-r--r-- 16.4 KB
target_core_rd.h -rw-r--r-- 1.5 KB
target_core_sbc.c -rw-r--r-- 37.9 KB
target_core_spc.c -rw-r--r-- 38.8 KB
target_core_stat.c -rw-r--r-- 37.1 KB
target_core_tmr.c -rw-r--r-- 12.0 KB
target_core_tpg.c -rw-r--r-- 18.0 KB
target_core_transport.c -rw-r--r-- 92.0 KB
target_core_ua.c -rw-r--r-- 8.9 KB
target_core_ua.h -rw-r--r-- 1.7 KB
target_core_user.c -rw-r--r-- 69.1 KB
target_core_xcopy.c -rw-r--r-- 30.4 KB
target_core_xcopy.h -rw-r--r-- 1.9 KB

back to top