Skip to content

Commit dffa114

Browse files
Saurav Kashyapmartinkpetersen
authored andcommitted
scsi: qla2xxx: Check if FW supports MQ before enabling
OS boot during Boot from SAN was stuck at dracut emergency shell after enabling NVMe driver parameter. For non-MQ support the driver was enabling MQ. Add a check to confirm if FW supports MQ. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Himanshu Madhani <[email protected]> Signed-off-by: Saurav Kashyap <[email protected]> Signed-off-by: Nilesh Javali <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 897d68e commit dffa114

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/scsi/qla2xxx/qla_os.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,6 +2017,11 @@ qla2x00_iospace_config(struct qla_hw_data *ha)
20172017
/* Determine queue resources */
20182018
ha->max_req_queues = ha->max_rsp_queues = 1;
20192019
ha->msix_count = QLA_BASE_VECTORS;
2020+
2021+
/* Check if FW supports MQ or not */
2022+
if (!(ha->fw_attributes & BIT_6))
2023+
goto mqiobase_exit;
2024+
20202025
if (!ql2xmqsupport || !ql2xnvmeenable ||
20212026
(!IS_QLA25XX(ha) && !IS_QLA81XX(ha)))
20222027
goto mqiobase_exit;

0 commit comments

Comments
 (0)