Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3029109rwb; Mon, 15 Aug 2022 16:27:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR5VVpT8Mz5o5Ve2RCbMgcj1sH/04z4mbJtV909T9/P6/F6cF6TIZ+JeApZ2zgqKsvBN3V+q X-Received: by 2002:a05:6402:5216:b0:43e:81c5:82dd with SMTP id s22-20020a056402521600b0043e81c582ddmr16423793edd.345.1660605973703; Mon, 15 Aug 2022 16:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605973; cv=none; d=google.com; s=arc-20160816; b=mRot8f5hNAHtLFLThOqb15by8xP6H83CQXuMMruGT805uqnl2CnH0viSk1e5kTYw8g 6Xd57gBfEsBd5XOt0NUlw22wsERfa0WYuKXoWQmIegKEwNLL6ohApFq1BxTO15O8Tpkx JOfvILVQbEqysCmtZ3K/zUfvdQAy3O82UlqKXFG3/i+YLReWhOySlDo/onz9rfBUZV7v 2ICbDIfrpj4uYzdGFWiyb34B5gFXcGgYDLDHMdq9ATapUHeUIbvNrR2RnO+Us1++qRVg suWfhpvosYpofmFnC6CVnpyOq1uLcAaRLctle9N9e1sKUnKoQqXzqbS3M0ssdijJBE/s Wprw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eWz8eTE8UrxT2qz1Uk1xe8NLEp9wcyPdFXYpdX6ZvQQ=; b=qHv7lVbeLnxmph0g192SJAk9jAs5thkZFOHqqvk3wJ3FCTjVrK/opq4YRfYhSGo2MT BeoY0UDaEz9DUPqjmZifw3QzKIoFzVJvBMywjzV6GlCUcLGc3RnIPh9OukaE+zy6+e4b 5enc8M4djCQiVg/GzkEZ88CsCIQee5Y5+wRrv6c2pD0z9z7o2vJIGHoZeUHHqp1F8Zgm ZZ0tvEHa1nELP2M+e0FjN1FSHxzZSJFeLcdVak7UeEQgfXnLpXGtngqwhz67YfO3H/co 8PEzB8Eol5/yHprtf5k44pNn19wCbTuz5cHAEbuTxmMyOWuueWQa/wC2Detyndqkin8R SH2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yHxvA7O8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv18-20020a170906b1d200b0072aef5bb6fesi7808148ejb.183.2022.08.15.16.25.48; Mon, 15 Aug 2022 16:26:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yHxvA7O8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346195AbiHOXI0 (ORCPT + 99 others); Mon, 15 Aug 2022 19:08:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352796AbiHOXGP (ORCPT ); Mon, 15 Aug 2022 19:06:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E733140CBC; Mon, 15 Aug 2022 12:58:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D986C60FD8; Mon, 15 Aug 2022 19:58:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFF53C433B5; Mon, 15 Aug 2022 19:58:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593529; bh=x41DbS8qV3r1/pYkKDJeNP/yz9M9kqdvIN4rxibxN+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yHxvA7O8j+DUJHmiFUaULU9ljY/bxHh61WX5EVtm7nk1xQ4SvRnUHlQULZvy24y/q CEjUXi2kLqJ1XoV4o6/l24aijpKUenZFzjF8Hj87O0BeQEBWcnVXuGq4aM8jyooLkx FYRqaI2q/Hm5kC37GKwVkBcVfN4CRlE6917Fe6NE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quinn Tran , Nilesh Javali , "Martin K. Petersen" Subject: [PATCH 5.18 0963/1095] scsi: qla2xxx: Turn off multi-queue for 8G adapters Date: Mon, 15 Aug 2022 20:06:02 +0200 Message-Id: <20220815180508.906617776@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Quinn Tran 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@marvell.com Cc: stable@vger.kernel.org Signed-off-by: Quinn Tran Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- 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 @@ -4264,8 +4264,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 @@ -4419,16 +4419,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);