]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] mvsas: expander write performance enhancement
authorXiangliang Yu <yuxiangl@marvell.com>
Thu, 29 Sep 2011 07:34:55 +0000 (00:34 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 2 Oct 2011 18:17:27 +0000 (13:17 -0500)
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>
drivers/scsi/mvsas/mv_94xx.c
drivers/scsi/mvsas/mv_defs.h

index 016d3d41f23aae5dc2ab43dae3aaa7965f358c92..130d8036a2b5fa364b282b666dd902867891934f 100644 (file)
@@ -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);
index dec7cadb7485229d9c2612f33faeb9a2303f10c0..8e21482367d2bfb5d1bd74cbfd354d662e0a1ce0 100644 (file)
@@ -387,6 +387,7 @@ enum sas_cmd_port_registers {
        CMD_SL_MODE0            = 0x1BC, /* SL Mode 0 */
        CMD_SL_MODE1            = 0x1C0, /* SL Mode 1 */
        CMD_PND_FIFO_CTL1       = 0x1C4, /* Pending FIFO Control 1 */
+       CMD_PORT_LAYER_TIMER1   = 0x1E0, /* Port Layer Timer 1 */
 };
 
 enum mvs_info_flags {