summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2014-01-20 12:46:10 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:46:10 +0900
commit9f2f1b5b08580383dbffa47c549aa89a782b0b66 (patch)
tree7166bfbf91be1ae99c963c9a95f5c71658ca524c /drivers/mmc
parent1d111d37bd39949d3f560e3e3ef79f6c3e1af21c (diff)
downloadlinux-3.10-9f2f1b5b08580383dbffa47c549aa89a782b0b66.tar.gz
linux-3.10-9f2f1b5b08580383dbffa47c549aa89a782b0b66.tar.bz2
linux-3.10-9f2f1b5b08580383dbffa47c549aa89a782b0b66.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 */