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-- 1.4 KB
Makefile -rw-r--r-- 486 bytes
acl.c -rw-r--r-- 3.8 KB
file.c -rw-r--r-- 4.3 KB
inode.c -rw-r--r-- 10.1 KB
ioctl.c -rw-r--r-- 3.9 KB
jfs_acl.h -rw-r--r-- 1.2 KB
jfs_btree.h -rw-r--r-- 4.0 KB
jfs_debug.c -rw-r--r-- 2.5 KB
jfs_debug.h -rw-r--r-- 3.3 KB
jfs_dinode.h -rw-r--r-- 5.8 KB
jfs_discard.c -rw-r--r-- 3.1 KB
jfs_discard.h -rw-r--r-- 1.0 KB
jfs_dmap.c -rw-r--r-- 111.6 KB
jfs_dmap.h -rw-r--r-- 11.2 KB
jfs_dtree.c -rw-r--r-- 100.5 KB
jfs_dtree.h -rw-r--r-- 6.6 KB
jfs_extent.c -rw-r--r-- 17.3 KB
jfs_extent.h -rw-r--r-- 1.3 KB
jfs_filsys.h -rw-r--r-- 8.9 KB
jfs_imap.c -rw-r--r-- 83.8 KB
jfs_imap.h -rw-r--r-- 6.4 KB
jfs_incore.h -rw-r--r-- 7.5 KB
jfs_inode.c -rw-r--r-- 3.5 KB
jfs_inode.h -rw-r--r-- 2.5 KB
jfs_lock.h -rw-r--r-- 1.5 KB
jfs_logmgr.c -rw-r--r-- 58.9 KB
jfs_logmgr.h -rw-r--r-- 14.7 KB
jfs_metapage.c -rw-r--r-- 19.2 KB
jfs_metapage.h -rw-r--r-- 4.2 KB
jfs_mount.c -rw-r--r-- 12.7 KB
jfs_superblock.h -rw-r--r-- 4.1 KB
jfs_txnmgr.c -rw-r--r-- 74.6 KB
jfs_txnmgr.h -rw-r--r-- 8.2 KB
jfs_types.h -rw-r--r-- 4.3 KB
jfs_umount.c -rw-r--r-- 4.0 KB
jfs_unicode.c -rw-r--r-- 3.3 KB
jfs_unicode.h -rw-r--r-- 3.7 KB
jfs_uniupr.c -rw-r--r-- 7.5 KB
jfs_xattr.h -rw-r--r-- 2.5 KB
jfs_xtree.c -rw-r--r-- 91.8 KB
jfs_xtree.h -rw-r--r-- 3.8 KB
namei.c -rw-r--r-- 37.1 KB
resize.c -rw-r--r-- 14.8 KB
super.c -rw-r--r-- 24.7 KB
symlink.c -rw-r--r-- 1.2 KB
xattr.c -rw-r--r-- 25.8 KB

back to top