[SCSI] qla2xxx: Perform firmware dump procedure on mailbox command timeout.
authorChad Dupuis <chad.dupuis@qlogic.com>
Thu, 9 Feb 2012 19:15:53 +0000 (11:15 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:24:40 +0000 (08:24 -0600)
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_mbx.c

index 957a4b88e48234e4711337f80155192a194cc9f5..adc2b14b03f5ea53122a144f1cc6f14a469bb992 100644 (file)
@@ -277,6 +277,12 @@ qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp)
                    "mb[0] = 0x%x.\n", mb0);
                ql_dump_regs(ql_dbg_mbx + ql_dbg_buffer, vha, 0x1019);
 
+               /*
+                * Attempt to capture a firmware dump for further analysis
+                * of the current firmware state
+                */
+               ha->isp_ops->fw_dump(vha, 0);
+
                rval = QLA_FUNCTION_TIMEOUT;
        }