diff options
author | Xiangliang Yu <yuxiangl@marvell.com> | 2011-09-29 09:34:55 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-02 20:17:27 +0200 |
commit | 3a4b7efe7fa8ce3822f6139cddce4bae24c9ffe6 (patch) | |
tree | bfeb050365c5bcd7a40435e3a7b047c5fb6a7a1b /drivers/scsi/mvsas/mv_94xx.c | |
parent | [SCSI] mvsas: change SL mode0 register value (diff) | |
download | linux-3a4b7efe7fa8ce3822f6139cddce4bae24c9ffe6.tar.xz linux-3a4b7efe7fa8ce3822f6139cddce4bae24c9ffe6.zip |
[SCSI] mvsas: expander write performance enhancement
with 1 expander, connect 8 HDD, the write performance will be
improved by 80%.
Signed-off-by: Xiangliang Yu <yuxiangl@marvell.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mvsas/mv_94xx.c')
-rw-r--r-- | drivers/scsi/mvsas/mv_94xx.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/mvsas/mv_94xx.c b/drivers/scsi/mvsas/mv_94xx.c index 016d3d41f23a..130d8036a2b5 100644 --- a/drivers/scsi/mvsas/mv_94xx.c +++ b/drivers/scsi/mvsas/mv_94xx.c @@ -510,6 +510,15 @@ static int __devinit mvs_94xx_init(struct mvs_info *mvi) tmp |= CINT_PHY_MASK; mw32(MVS_INT_MASK, tmp); + /* tune STP performance */ + tmp = 0x003F003F; + mvs_cw32(mvi, CMD_PL_TIMER, tmp); + + /* This can improve expander large block size seq write performance */ + tmp = mvs_cr32(mvi, CMD_PORT_LAYER_TIMER1); + tmp |= 0xFFFF007F; + mvs_cw32(mvi, CMD_PORT_LAYER_TIMER1, tmp); + /* change the connection open-close behavior (bit 9) * set bit8 to 1 for performance tuning */ tmp = mvs_cr32(mvi, CMD_SL_MODE0); |