]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdio: Use multiple scatter/gather list
authorKyoungil Kim <ki0351.kim@samsung.com>
Mon, 22 Oct 2012 11:01:00 +0000 (20:01 +0900)
committerChris Ball <cjb@laptop.org>
Mon, 26 Nov 2012 00:43:47 +0000 (19:43 -0500)
commit563bfd853d1adc99c6f509935746c6a34840e189
tree25e90e43686069dc790ef66d5a4d0ba39f2f5864
parent5f8ef1aa72fad5356f9bb7d51ce8069cd9a89b48
mmc: sdio: Use multiple scatter/gather list

Before this patch, we always used only single sg entry for SDIO transfer.
This patch switches to using multiple sg entries. In the case of dwmci,
it supports only up to 4KB size per single sg entry. So if we want to
transfer more than 4KB, we should send more than 1 command.

When we tested before applying this patch, it took around 335 us for
5K(5120) bytes transfer with dwmci controller. After applying this patch,
it takes 242 us for 5K bytes. So this patch makes around 38% performance
improvement for 5K bytes transfer. If the transfer size is bigger, then
the performance improvement ratio will be increased.

Signed-off-by: Kyoungil Kim <ki0351.kim@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sdio_io.c
drivers/mmc/core/sdio_ops.c