]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qla2xxx: Perform firmware dump procedure on mailbox command timeout.
authorChad Dupuis <chad.dupuis@qlogic.com>
Wed, 7 Dec 2011 21:51:34 +0000 (15:51 -0600)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 9 May 2012 00:40:57 +0000 (17:40 -0700)
JIRA Key: V2632FC-39

drivers/scsi/qla2xxx/qla_mbx.c

index 2b8c37369ef9f17a2830bb690911baa67226ea05..db10cd02e2a392cf10075494dcddebbbddabe454 100644 (file)
@@ -275,6 +275,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;
        }