]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qla2xxx: Print mailbox command opcode and return code when a command times out.
authorChad Dupuis <chad.dupuis@qlogic.com>
Tue, 10 Apr 2012 11:27:25 +0000 (16:57 +0530)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 9 May 2012 00:40:56 +0000 (17:40 -0700)
JIRA Key: V2632FC-102

Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
drivers/scsi/qla2xxx/qla_mbx.c

index 885f76c214951f718f24e65f37ecb5b3cf6f145c..460f71d47e943ca2a5777bf6d9f7c68fb738dc04 100644 (file)
@@ -90,7 +90,8 @@ qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp)
        if (!wait_for_completion_timeout(&ha->mbx_cmd_comp, mcp->tov * HZ)) {
                /* Timeout occurred. Return error. */
                ql_log(ql_log_warn, base_vha, 0x1005,
-                   "Cmd access timeout, Exiting.\n");
+                   "Cmd access timeout, cmd=0x%x, Exiting.\n",
+                   mcp->mb[0]);
                return QLA_FUNCTION_TIMEOUT;
        }
 
@@ -311,9 +312,10 @@ qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp)
                                            CRB_NIU_XG_PAUSE_CTL_P1);
                                }
                                ql_log(ql_log_info, base_vha, 0x101c,
-                                   "Mailbox cmd timeout occured. "
-                                   "Scheduling ISP abort eeh_busy=0x%x.\n",
-                                       ha->flags.eeh_busy);
+                                   "Mailbox cmd timeout occured, cmd=0x%x, "
+                                   "mb[0]=0x%x, eeh_busy=0x%x. Scheduling ISP "
+                                   "abort.\n", command, mcp->mb[0],
+                                   ha->flags.eeh_busy);
                                set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
                                qla2xxx_wake_dpc(vha);
                        }
@@ -335,9 +337,9 @@ qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp)
                                            CRB_NIU_XG_PAUSE_CTL_P1);
                                }
                                ql_log(ql_log_info, base_vha, 0x101e,
-                                   "Mailbox cmd timeout occured. "
-                                   "Scheduling ISP abort.\n");
-
+                                   "Mailbox cmd timeout occured, cmd=0x%x, "
+                                   "mb[0]=0x%x. Scheduling ISP abort ",
+                                   command, mcp->mb[0]);
                                set_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags);
                                clear_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
                                if (ha->isp_ops->abort_isp(vha)) {