diff options
author | Kei Tokunaga <tokunaga.keiich@jp.fujitsu.com> | 2010-06-22 06:01:51 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:03:52 -0400 |
commit | 97009a29e8c999def2d1e9ef253c226daf9541af (patch) | |
tree | 00adca4e2fac97f1348ca7c11e1d885978fef718 /drivers/message/fusion/mptscsih.c | |
parent | e4bf25fbcc64a87d7dc1d3318ca56c28382757e2 (diff) |
[SCSI] mptfusion: print Doorbell register in a case of hard reset and timeout
Printing Doorbell register in a case of hard reset and timeout
should be useful for figuring out the state of the system.
Signed-off-by: Kei Tokunaga <tokunaga.keiich@jp.fujitsu.com>
Acked-by: "Desai, Kashyap" <Kashyap.Desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/message/fusion/mptscsih.c')
-rw-r--r-- | drivers/message/fusion/mptscsih.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c index c5c8fb811f54..dceb67a21825 100644 --- a/drivers/message/fusion/mptscsih.c +++ b/drivers/message/fusion/mptscsih.c | |||
@@ -1706,8 +1706,9 @@ mptscsih_IssueTaskMgmt(MPT_SCSI_HOST *hd, u8 type, u8 channel, u8 id, int lun, | |||
1706 | 1706 | ||
1707 | CLEAR_MGMT_STATUS(ioc->taskmgmt_cmds.status) | 1707 | CLEAR_MGMT_STATUS(ioc->taskmgmt_cmds.status) |
1708 | if (issue_hard_reset) { | 1708 | if (issue_hard_reset) { |
1709 | printk(MYIOC_s_WARN_FMT "Issuing Reset from %s!!\n", | 1709 | printk(MYIOC_s_WARN_FMT |
1710 | ioc->name, __func__); | 1710 | "Issuing Reset from %s!! doorbell=0x%08x\n", |
1711 | ioc->name, __func__, mpt_GetIocState(ioc, 0)); | ||
1711 | retval = mpt_Soft_Hard_ResetHandler(ioc, CAN_SLEEP); | 1712 | retval = mpt_Soft_Hard_ResetHandler(ioc, CAN_SLEEP); |
1712 | mpt_free_msg_frame(ioc, mf); | 1713 | mpt_free_msg_frame(ioc, mf); |
1713 | } | 1714 | } |
@@ -3051,8 +3052,11 @@ mptscsih_do_cmd(MPT_SCSI_HOST *hd, INTERNAL_CMD *io) | |||
3051 | goto out; | 3052 | goto out; |
3052 | } | 3053 | } |
3053 | if (!timeleft) { | 3054 | if (!timeleft) { |
3054 | printk(MYIOC_s_WARN_FMT "Issuing Reset from %s!!\n", | 3055 | printk(MYIOC_s_WARN_FMT |
3055 | ioc->name, __func__); | 3056 | "Issuing Reset from %s!! doorbell=0x%08xh" |
3057 | " cmd=0x%02x\n", | ||
3058 | ioc->name, __func__, mpt_GetIocState(ioc, 0), | ||
3059 | cmd); | ||
3056 | mpt_Soft_Hard_ResetHandler(ioc, CAN_SLEEP); | 3060 | mpt_Soft_Hard_ResetHandler(ioc, CAN_SLEEP); |
3057 | mpt_free_msg_frame(ioc, mf); | 3061 | mpt_free_msg_frame(ioc, mf); |
3058 | } | 3062 | } |