This is a note to let you know that I've just added the patch titled scsi: qla2xxx: Turn off multi-queue for 8G adapters to the 5.15-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: scsi-qla2xxx-turn-off-multi-queue-for-8g-adapters.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 5304673bdb1635e27555bd636fd5d6956f1cd552 Mon Sep 17 00:00:00 2001 From: Quinn Tran <qutran@xxxxxxxxxxx> Date: Wed, 15 Jun 2022 22:35:01 -0700 Subject: scsi: qla2xxx: Turn off multi-queue for 8G adapters From: Quinn Tran <qutran@xxxxxxxxxxx> commit 5304673bdb1635e27555bd636fd5d6956f1cd552 upstream. For 8G adapters, multi-queue was enabled accidentally. Make sure multi-queue is not enabled. Link: https://lore.kernel.org/r/20220616053508.27186-5-njavali@xxxxxxxxxxx Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Quinn Tran <qutran@xxxxxxxxxxx> Signed-off-by: Nilesh Javali <njavali@xxxxxxxxxxx> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/scsi/qla2xxx/qla_def.h | 4 ++-- drivers/scsi/qla2xxx/qla_isr.c | 16 ++++++---------- 2 files changed, 8 insertions(+), 12 deletions(-) --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -4261,8 +4261,8 @@ struct qla_hw_data { #define IS_OEM_001(ha) ((ha)->device_type & DT_OEM_001) #define HAS_EXTENDED_IDS(ha) ((ha)->device_type & DT_EXTENDED_IDS) #define IS_CT6_SUPPORTED(ha) ((ha)->device_type & DT_CT6_SUPPORTED) -#define IS_MQUE_CAPABLE(ha) ((ha)->mqenable || IS_QLA83XX(ha) || \ - IS_QLA27XX(ha) || IS_QLA28XX(ha)) +#define IS_MQUE_CAPABLE(ha) (IS_QLA83XX(ha) || IS_QLA27XX(ha) || \ + IS_QLA28XX(ha)) #define IS_BIDI_CAPABLE(ha) \ (IS_QLA25XX(ha) || IS_QLA2031(ha) || IS_QLA27XX(ha) || IS_QLA28XX(ha)) /* Bit 21 of fw_attributes decides the MCTP capabilities */ --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -4415,16 +4415,12 @@ msix_register_fail: } /* Enable MSI-X vector for response queue update for queue 0 */ - if (IS_QLA83XX(ha) || IS_QLA27XX(ha) || IS_QLA28XX(ha)) { - if (ha->msixbase && ha->mqiobase && - (ha->max_rsp_queues > 1 || ha->max_req_queues > 1 || - ql2xmqsupport)) - ha->mqenable = 1; - } else - if (ha->mqiobase && - (ha->max_rsp_queues > 1 || ha->max_req_queues > 1 || - ql2xmqsupport)) - ha->mqenable = 1; + if (IS_MQUE_CAPABLE(ha) && + (ha->msixbase && ha->mqiobase && ha->max_qpairs)) + ha->mqenable = 1; + else + ha->mqenable = 0; + ql_dbg(ql_dbg_multiq, vha, 0xc005, "mqiobase=%p, max_rsp_queues=%d, max_req_queues=%d.\n", ha->mqiobase, ha->max_rsp_queues, ha->max_req_queues); Patches currently in stable-queue which might be from qutran@xxxxxxxxxxx are queue-5.15/scsi-qla2xxx-edif-synchronize-npiv-deletion-with-aut.patch queue-5.15/scsi-qla2xxx-fix-erroneous-mailbox-timeout-after-pci-error-injection.patch queue-5.15/scsi-qla2xxx-edif-fix-inconsistent-check-of-db_flags.patch queue-5.15/scsi-qla2xxx-edif-reduce-connection-thrash.patch queue-5.15/scsi-qla2xxx-edif-fix-no-logout-on-delete-for-n2n.patch queue-5.15/scsi-qla2xxx-edif-reduce-disruption-due-to-multiple-.patch queue-5.15/scsi-qla2xxx-edif-reduce-initiator-initiator-thrashi.patch queue-5.15/scsi-qla2xxx-edif-tear-down-session-if-keys-have-bee.patch queue-5.15/scsi-qla2xxx-edif-fix-no-login-after-app-start.patch queue-5.15/scsi-qla2xxx-edif-fix-n2n-login-retry-for-secure-dev.patch queue-5.15/scsi-qla2xxx-edif-fix-potential-stuck-session-in-sa-.patch queue-5.15/scsi-qla2xxx-edif-fix-session-thrash.patch queue-5.15/scsi-qla2xxx-edif-fix-n2n-discovery-issue-with-secur.patch queue-5.15/scsi-qla2xxx-zero-undefined-mailbox-in-registers.patch queue-5.15/scsi-qla2xxx-fix-imbalance-vha-vref_count.patch queue-5.15/scsi-qla2xxx-wind-down-adapter-after-pcie-error.patch queue-5.15/scsi-qla2xxx-edif-send-logo-for-unexpected-ike-messa.patch queue-5.15/scsi-qla2xxx-edif-add-retry-for-els-passthrough.patch queue-5.15/scsi-qla2xxx-turn-off-multi-queue-for-8g-adapters.patch