aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Dupuis <chad.dupuis@qlogic.com>2013-06-25 11:27:20 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-07-08 12:21:51 -0400
commitb8eb4136b08f24b159d76b273216d524a26ac8f9 (patch)
tree825ab25f72bc160581d015c4eabf9e95a0ec07d9
parent8fbfe2d21445253411c1ff0f69e3129fc11ba57c (diff)
[SCSI] qla2xxx: Do not take a second firmware dump when intentionally generating one.
When we are intentionally generating a firmware dump by executing the MBC_GEN_SYSTEM_ERROR command, the command actually times out. The normal course of action when a mailbox command times out is to take a firmware dump. However, in this special case we do not want to do this since the MBA_SYSTEM_ERR AEN already generates a firmware dump. Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/qla2xxx/qla_mbx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index 144effd45ddf..7257c3c4f2d0 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -281,9 +281,11 @@ qla2x00_mailbox_command(scsi_qla_host_t *vha, mbx_cmd_t *mcp)
281 281
282 /* 282 /*
283 * Attempt to capture a firmware dump for further analysis 283 * Attempt to capture a firmware dump for further analysis
284 * of the current firmware state 284 * of the current firmware state. We do not need to do this
285 * if we are intentionally generating a dump.
285 */ 286 */
286 ha->isp_ops->fw_dump(vha, 0); 287 if (mcp->mb[0] != MBC_GEN_SYSTEM_ERROR)
288 ha->isp_ops->fw_dump(vha, 0);
287 289
288 rval = QLA_FUNCTION_TIMEOUT; 290 rval = QLA_FUNCTION_TIMEOUT;
289 } 291 }