From: Xiangliang Yu Date: Thu, 29 Sep 2011 07:35:15 +0000 (-0700) Subject: [SCSI] mvsas: fixed SMP request watchdog timeout issue. X-Git-Tag: v3.2-rc1~125^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40d3921f1dd4e1e53e10f064f0adf056f6e0f71a;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [SCSI] mvsas: fixed SMP request watchdog timeout issue. set SMP link timeout value to maximum. Signed-off-by: Xiangliang Yu Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/mvsas/mv_94xx.c b/drivers/scsi/mvsas/mv_94xx.c index 130d803..7e423e5 100644 --- a/drivers/scsi/mvsas/mv_94xx.c +++ b/drivers/scsi/mvsas/mv_94xx.c @@ -510,6 +510,10 @@ static int __devinit mvs_94xx_init(struct mvs_info *mvi) tmp |= CINT_PHY_MASK; mw32(MVS_INT_MASK, tmp); + tmp = mvs_cr32(mvi, CMD_LINK_TIMER); + tmp |= 0xFFFF0000; + mvs_cw32(mvi, CMD_LINK_TIMER, tmp); + /* tune STP performance */ tmp = 0x003F003F; mvs_cw32(mvi, CMD_PL_TIMER, tmp); diff --git a/drivers/scsi/mvsas/mv_defs.h b/drivers/scsi/mvsas/mv_defs.h index 8e21482..f545194 100644 --- a/drivers/scsi/mvsas/mv_defs.h +++ b/drivers/scsi/mvsas/mv_defs.h @@ -388,6 +388,7 @@ enum sas_cmd_port_registers { 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 */ + CMD_LINK_TIMER = 0x1E4, /* Link Timer */ }; enum mvs_info_flags {