2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-20 11:13:58 +08:00

scsi: qla2xxx: Add option for use reserve exch for ELS

Add option to tell FW to reserve 1/2 of emergency exchanges for ELS.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Quinn Tran 2017-12-28 12:33:19 -08:00 committed by Martin K. Petersen
parent 1586e07a46
commit 9ecf0b0dd5
3 changed files with 13 additions and 0 deletions

View File

@ -148,6 +148,7 @@ extern int ql2xuctrlirq;
extern int ql2xnvmeenable; extern int ql2xnvmeenable;
extern int ql2xautodetectsfp; extern int ql2xautodetectsfp;
extern int ql2xenablemsix; extern int ql2xenablemsix;
extern int qla2xuseresexchforels;
extern int qla2x00_loop_reset(scsi_qla_host_t *); extern int qla2x00_loop_reset(scsi_qla_host_t *);
extern void qla2x00_abort_all_cmds(scsi_qla_host_t *, int); extern void qla2x00_abort_all_cmds(scsi_qla_host_t *, int);

View File

@ -3348,6 +3348,12 @@ qla24xx_update_fw_options(scsi_qla_host_t *vha)
ha->fw_options[2] |= BIT_4; ha->fw_options[2] |= BIT_4;
else else
ha->fw_options[2] &= ~BIT_4; ha->fw_options[2] &= ~BIT_4;
/* Reserve 1/2 of emergency exchanges for ELS.*/
if (qla2xuseresexchforels)
ha->fw_options[2] |= BIT_8;
else
ha->fw_options[2] &= ~BIT_8;
} }
ql_dbg(ql_dbg_init, vha, 0x00e8, ql_dbg(ql_dbg_init, vha, 0x00e8,

View File

@ -277,6 +277,12 @@ MODULE_PARM_DESC(ql2xenablemsix,
" 1 -- enable MSI-X interrupt mechanism.\n" " 1 -- enable MSI-X interrupt mechanism.\n"
" 2 -- enable MSI interrupt mechanism.\n"); " 2 -- enable MSI interrupt mechanism.\n");
int qla2xuseresexchforels;
module_param(qla2xuseresexchforels, int, 0444);
MODULE_PARM_DESC(qla2xuseresexchforels,
"Reserve 1/2 of emergency exchanges for ELS.\n"
" 0 (default): disabled");
/* /*
* SCSI host template entry points * SCSI host template entry points
*/ */