summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2014-01-20 12:46:10 +0900
committerMarek Szyprowski <m.szyprowski@samsung.com>2014-05-15 07:26:02 +0200
commite5dbf49fd25bed5870f7948548f1782963568ab8 (patch)
tree55c136a00aecb92e7020be885c23ec58a1f8f64f /drivers/mmc
parenta21d763fdb49b6a8a79f2a426fe665207be24833 (diff)
downloadlinux-3.10-e5dbf49fd25bed5870f7948548f1782963568ab8.tar.gz
linux-3.10-e5dbf49fd25bed5870f7948548f1782963568ab8.tar.bz2
linux-3.10-e5dbf49fd25bed5870f7948548f1782963568ab8.zip
mmc: dw_mmc: change the blk-setting value for eMMC
Change the blk-setting value. (benchmark : iozone, tiotest) Before applied this patch, Read : 17MB/s, Write : 71MB/s After applied this patch, Read : 30MB/s, Write : 72MB/s Increased the Read performance. Change-Id: I64142e97aea3aa7ac3d1ca78726f8dd3c133692d Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/dw_mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 95e6ba856d3..30443952c1e 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -2021,9 +2021,9 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
#ifdef CONFIG_MMC_DW_IDMAC
mmc->max_segs = host->ring_size;
mmc->max_blk_size = 65536;
- mmc->max_blk_count = host->ring_size;
mmc->max_seg_size = 0x1000;
- mmc->max_req_size = mmc->max_seg_size * mmc->max_blk_count;
+ mmc->max_req_size = mmc->max_seg_size * host->ring_size;
+ mmc->max_blk_count = mmc->max_req_size / 512;
#else
mmc->max_segs = 64;
mmc->max_blk_size = 65536; /* BLKSIZ is 16 bits */