Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1855831rwb; Fri, 19 Aug 2022 10:30:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR6RKlXhwbszWTxRmZsU07HR3J46XsO+rBWWkb2XkfbJWzz2jz/vHWZWEu0r/QF4NQgraTce X-Received: by 2002:a17:90a:2b0f:b0:1fa:d73f:ce92 with SMTP id x15-20020a17090a2b0f00b001fad73fce92mr7317866pjc.60.1660930235127; Fri, 19 Aug 2022 10:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930235; cv=none; d=google.com; s=arc-20160816; b=Fg9KnGRTKrPqUcKTHK8Jj2RZNCZq4o8Nc+S6F8t7l4yEkyl21Gj+oAvIaNOD7+Xsjn SZDuWKczDtoo0CjCWmPZkO6xN1lqUMefj52Mj7SiARNIg82CHvjjWSd5FyurEtnDmXkP jhRPjp7ofUY/ZoWJ6C3tes1BUkcTKhVh6MsJSMjqzBoDAb9GGxB/l6+7tkQlo49bT4v/ +UFkxVWRfskpemxFUpH1UqNAyLja5wtkUwMwfXAUMmgnJyzqFdDu0mGz71pyIM8zNjFj 14jT/N2vbjnzm4VHqsrLEEKDlBBg+Jwuw2b+cWW+mAuzjgC93oKHNoZdSM4wAK/kJBPV Hehw== 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=ZuFfRJRbQN949fOZhLznyTZD3vM0RtFzkwfNXNgsPvY=; b=jXFD01CFEUkMhKyNYVbhhYRDaChis+q+w6FXTABp6Auh3lrOLh5hXvemUKq+bsVVbI 8ZkziLsDBd9Urxs2f+EHCDE/wGiklYz+Yw3SEvlq5Rf99gVnxm+ALW/o4/stDnLzkBFE jqF/0XI2x4eQy5AqVfbXFFkDgtOcFOoYqX347XpTJOLtb++seGLWRbVWaRw6A7sVatUJ sUu70xVxfwdzTroavgcSPGblOju4paXdzOOcEBSwud2nq/sgDq4RVvBIOHyUwiFr0LC+ hILG3jdRH8+me61bVKh179K3znWsl0iLlL1b25pzrgXky8kC68YCqv+2uUiZGHcMstH/ s7Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C0HK3sBn; 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 k22-20020aa788d6000000b0052e068f159bsi4894498pff.145.2022.08.19.10.30.24; Fri, 19 Aug 2022 10:30:35 -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=C0HK3sBn; 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 S1354343AbiHSQzL (ORCPT + 99 others); Fri, 19 Aug 2022 12:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354313AbiHSQyQ (ORCPT ); Fri, 19 Aug 2022 12:54:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0705612E3C9; Fri, 19 Aug 2022 09:15:35 -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 ams.source.kernel.org (Postfix) with ESMTPS id C765CB82821; Fri, 19 Aug 2022 16:09:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29F63C433D6; Fri, 19 Aug 2022 16:09:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660925365; bh=h8IyBVO2lyakzG8OlSbZNlxR0q9T5IL2p0yWfBHLfbA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C0HK3sBnL4ao3T2SggmFOkGslfbfo9lq1p1nSK0bgQW2yy8UwDDP95xGmrCq5totl evOwA74oJilV5WBw4hfAAwaEFthGKze19vNHYof5n74EuLjYd8Xfu3QD1ohC334kAv TtzdHcIUFWGcYeb19YVocE930vg9iCiFXkXxxv8U= 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.10 441/545] scsi: qla2xxx: Turn off multi-queue for 8G adapters Date: Fri, 19 Aug 2022 17:43:31 +0200 Message-Id: <20220819153849.164637463@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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 @@ -4135,8 +4135,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 @@ -4054,16 +4054,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);