diff options
author | Xiangliang Yu <yuxiangl@marvell.com> | 2011-09-29 03:34:32 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-02 14:15:04 -0400 |
commit | aa117dd14372e1b0bed651af2db1be670b595032 (patch) | |
tree | b1156f20fdf22c9ac5bac962227d067dd87179b4 | |
parent | 07f098e6f4a9a488605d6a3a13ce2805023a0384 (diff) |
[SCSI] mvsas: change SL mode0 register value
-- change connection behavior
-- set bit8 to 1 for performance tuning
-- set bit0 to 0 to enable retry for no_dest reject case.
Signed-off-by: Xiangliang Yu <yuxiangl@marvell.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/mvsas/mv_94xx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/mvsas/mv_94xx.c b/drivers/scsi/mvsas/mv_94xx.c index ce4e970bcedf..016d3d41f23a 100644 --- a/drivers/scsi/mvsas/mv_94xx.c +++ b/drivers/scsi/mvsas/mv_94xx.c | |||
@@ -510,6 +510,14 @@ static int __devinit mvs_94xx_init(struct mvs_info *mvi) | |||
510 | tmp |= CINT_PHY_MASK; | 510 | tmp |= CINT_PHY_MASK; |
511 | mw32(MVS_INT_MASK, tmp); | 511 | mw32(MVS_INT_MASK, tmp); |
512 | 512 | ||
513 | /* change the connection open-close behavior (bit 9) | ||
514 | * set bit8 to 1 for performance tuning */ | ||
515 | tmp = mvs_cr32(mvi, CMD_SL_MODE0); | ||
516 | tmp |= 0x00000300; | ||
517 | /* set bit0 to 0 to enable retry for no_dest reject case */ | ||
518 | tmp &= 0xFFFFFFFE; | ||
519 | mvs_cw32(mvi, CMD_SL_MODE0, tmp); | ||
520 | |||
513 | /* Enable SRS interrupt */ | 521 | /* Enable SRS interrupt */ |
514 | mw32(MVS_INT_MASK_SRS_0, 0xFFFF); | 522 | mw32(MVS_INT_MASK_SRS_0, 0xFFFF); |
515 | 523 | ||