Skip to content

Commit 68af081

Browse files
avasquez01James Bottomley
authored andcommitted
[SCSI] qla2xxx: Extend the 'fw_dump' SYSFS node the ability to initiate a firmware dump.
The user-initiated dump can be a useful tool in triaging complex ISP and FC issues. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent fa0926d commit 68af081

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

drivers/scsi/qla2xxx/qla_attr.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ qla2x00_sysfs_write_fw_dump(struct kobject *kobj,
7070
case 2:
7171
qla2x00_alloc_fw_dump(ha);
7272
break;
73+
case 3:
74+
qla2x00_system_error(ha);
75+
break;
7376
}
7477
return (count);
7578
}

drivers/scsi/qla2xxx/qla_gbl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *);
227227
extern int qla24xx_abort_target(struct fc_port *, unsigned int);
228228
extern int qla24xx_lun_reset(struct fc_port *, unsigned int);
229229

230+
extern int
231+
qla2x00_system_error(scsi_qla_host_t *);
232+
230233
extern int
231234
qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t);
232235

drivers/scsi/qla2xxx/qla_mbx.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,16 +2303,14 @@ qla24xx_lun_reset(struct fc_port *fcport, unsigned int l)
23032303
return __qla24xx_issue_tmf("Lun", TCF_LUN_RESET, fcport, l);
23042304
}
23052305

2306-
#if 0
2307-
23082306
int
23092307
qla2x00_system_error(scsi_qla_host_t *ha)
23102308
{
23112309
int rval;
23122310
mbx_cmd_t mc;
23132311
mbx_cmd_t *mcp = &mc;
23142312

2315-
if (!IS_FWI2_CAPABLE(ha))
2313+
if (!IS_QLA23XX(ha) && !IS_FWI2_CAPABLE(ha))
23162314
return QLA_FUNCTION_FAILED;
23172315

23182316
DEBUG11(printk("%s(%ld): entered.\n", __func__, ha->host_no));
@@ -2334,8 +2332,6 @@ qla2x00_system_error(scsi_qla_host_t *ha)
23342332
return rval;
23352333
}
23362334

2337-
#endif /* 0 */
2338-
23392335
/**
23402336
* qla2x00_set_serdes_params() -
23412337
* @ha: HA context

0 commit comments

Comments
 (0)