Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2861070rwb; Mon, 15 Aug 2022 12:48:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR53dlrcPrFMm2u+ZrCTPMhR36GT6/TDk1Az8vPgBGlc1lZnDlDrzOtwyzIb1bGp5JT4liDV X-Received: by 2002:a05:6a00:22cd:b0:52f:706a:5268 with SMTP id f13-20020a056a0022cd00b0052f706a5268mr17583292pfj.80.1660592881280; Mon, 15 Aug 2022 12:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660592881; cv=none; d=google.com; s=arc-20160816; b=p1V14g6yXeYYCNsRVrXlp7bLEZpFuPc+pg4YPKmnrDWfgGGqO+o0ZSK6fZFjc+hSWu hg3o7Cqvw51tLN9K2x9XP+wiVSW5pT9qIK3UrH6nxGYeRrkcI82IjmF5rmshGXH4MB+9 0CxOPs/Sp9ov50U0bOr43Fpx2GTFYrT+/EPzHWONAIpkSElo++wAjAIxpbEgXAiMAaj5 t8dOEVAuX2I+kvqmcHoDVlef10unqZQQRaIxOWlDx3Q/GMyv2MgLcpDvsxRF8u0gXDh5 9Tz7axwiMhc12mvoxFax3jucpJW1tAQL4wusDbquZVhojgELqI5UKJ0rUVk8v8mHC3qU brnQ== 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=snlJ+tpWd7RTem/bc4NfH/nb5OSlQMnjPDHnMlp+RXM=; b=IMnN78HpxA0+LzDPIz0+iMah+oKv1UvxdY2VHO8isPOvMFOqYS3aACS3hYGP/Ppbx3 +lHocLJ9tLzeDPbd014dFEdxyeCAaDF6swnjG91sFmqFiks71h10ZmJP+pQgjEQ44EVn agg5jwP88Ex5IYBkLvO4H3SRpfbp8jNeZ08V+x5W07LRn4dA/ICBHjTOxOHvDVWjphWP q0axVmD9yqjea0Rc3OFI0ePew3vNSFSxrD2qg/bQsqcUUaR8ZA43nyGqYi2QV+u6BVIX wCPxtMTzL6TSQlLJkMl3C3MJDFXdvI7EyEe+B/EC6VbEXOPITecO3e4dnxnqdCOsn0QQ LAsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SgWWe34h; 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 t191-20020a635fc8000000b0041c19311235si10290262pgb.688.2022.08.15.12.47.48; Mon, 15 Aug 2022 12:48:01 -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=SgWWe34h; 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 S1345012AbiHOTqA (ORCPT + 99 others); Mon, 15 Aug 2022 15:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345213AbiHOTmi (ORCPT ); Mon, 15 Aug 2022 15:42:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4017C6B673; Mon, 15 Aug 2022 11:48:15 -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 1D134B810A3; Mon, 15 Aug 2022 18:48:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48F26C433D6; Mon, 15 Aug 2022 18:48:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589291; bh=kE5Pc4KWT4QTt3aRanAvcr3cLoMWZNTORiqhy0qVjeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SgWWe34h2D3Za/vcW9LpstzbjSjGJ9fIglhYgjlUtgGi3U9xHzFRq+ODMlT2ZegWC aJ6Y4h8yxDUokNTbOiM+AOy3FgXq31q2XkQMk/3Yw+hlE93mJKYoxbR90trdgx5No+ FoUdFPhnGm1STRiqdsWybrE5nf6bpFoNpQ3WPatQ= 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.15 673/779] scsi: qla2xxx: Turn off multi-queue for 8G adapters Date: Mon, 15 Aug 2022 20:05:17 +0200 Message-Id: <20220815180406.116249365@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 @@ -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);