Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3077923rwb; Mon, 15 Aug 2022 17:34:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR7gWeZl/I6wakV+4MT6N+NcyfpqZzJDqL9l+1h+Rhy9Hm2hKLq70pK2z7+bar8OVIoC0cAx X-Received: by 2002:a05:6402:2384:b0:43c:fb7d:82a1 with SMTP id j4-20020a056402238400b0043cfb7d82a1mr16193601eda.82.1660610083183; Mon, 15 Aug 2022 17:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610083; cv=none; d=google.com; s=arc-20160816; b=QbaMLlO2bTml31HNSyuvvErGbPCqT12W9u0ivAV5VmFZctLFHXaKbO5G7x31tnAJ7Y /i6rJ8qVORs3R4u9ZkJWn9OuhSceWMnRud9pfty4hqH/6s97ccHSMvz0zYIgocqUuekH 7fppcXFMq14ET7mYwyhdxLBls5U5z+F0lI6Vh7dvBdczE31UT+LXDL96SevRUUk5Xg44 jhR5+sjcHs9U+Hp0kfdvwsVFGYLodrSTYc7x4VlcJkGVxvxJdJbXH7Sr1KzTeqERdCKF ZKFFXqwQ8MmPYwtODBQvcgfs7spbTz2utXVyULCKxGx+HERtBcIi1kD1r5aeoXHntj01 wd7g== 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=PyR0PTly4d61aqBJkamFPpEvpgiRbrqbqTtTxeo6rfQ=; b=U/LG4CwElaRzhGq0PzVrLLyKp0cSYC93VxI6Rg0mjxkNFRNEuSMft6WGjUhEZPF/Zk o0opU3wbVAPUF35OZTHCEZNZU96naaWq4iO1r5ne6CIHal1okqJiPTRQk59Y0xhW2DYC KMTLNBJRwCAHKLTe6CRUpsmLOnQMT3i+kSgyDMdrkVcMhkEhc/YZYHp661tBnxtdHXUw HFSAcug39mcWeHOK8/2bfPDTjpmlcXpPQ7p8l/fHOVxT5H5v8mCWSpT07C+Hi4vs6fEd agrmWBD0MdBjNvfA6fG6FDmLncqMJNS69mXkApW8ENf47LK2UBt8MPDfwvKxgRrzLhas lQMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IOx4uJtK; 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 bl8-20020a170906c24800b00734c5ab8572si8321738ejb.157.2022.08.15.17.34.17; Mon, 15 Aug 2022 17:34:43 -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=IOx4uJtK; 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 S1356650AbiHPAHs (ORCPT + 99 others); Mon, 15 Aug 2022 20:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352126AbiHPAAN (ORCPT ); Mon, 15 Aug 2022 20:00:13 -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 378D1165715; Mon, 15 Aug 2022 13:21:17 -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 E6E3EB80EA8; Mon, 15 Aug 2022 20:21:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43BC8C433C1; Mon, 15 Aug 2022 20:21:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594874; bh=2Wgq8qY/SEwnYEC3euAXi6f1iOUx8n9AbuUp4mRrAVY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IOx4uJtKmSo9JoMHphns2wEkrMkPfOx46fZDaud10PmqcJuJgR3DRHzOqlq4LkNUU SNVOEDWGY0zuR55RjW0+pRtYS6mCx7Mc70950FwjxeE4q6n3rnIRCdLMjkhjKKC8Bg sLGXyvwRnshyIX50ph25XuB4rnTi+ttZC3uHKasU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maher Sanalla , Maor Gottlieb , Saeed Mahameed , Sasha Levin Subject: [PATCH 5.19 0553/1157] net/mlx5: Adjust log_max_qp to be 18 at most Date: Mon, 15 Aug 2022 19:58:29 +0200 Message-Id: <20220815180501.759624810@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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: Maher Sanalla [ Upstream commit a6e9085d791f8306084fd5bc44dd3fdd4e1ac27b ] The cited commit limited log_max_qp to be 17 due to FW capabilities. Recently, it turned out that there are old FW versions that supported more than 17, so the cited commit caused a degradation. Thus, set the maximum log_max_qp back to 18 as it was before the cited commit. Fixes: 7f839965b2d7 ("net/mlx5: Update log_max_qp value to be 17 at most") Signed-off-by: Maher Sanalla Reviewed-by: Maor Gottlieb Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index c9b4e50a593e..95f26624b57c 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -524,7 +524,7 @@ static int handle_hca_cap(struct mlx5_core_dev *dev, void *set_ctx) /* Check log_max_qp from HCA caps to set in current profile */ if (prof->log_max_qp == LOG_MAX_SUPPORTED_QPS) { - prof->log_max_qp = min_t(u8, 17, MLX5_CAP_GEN_MAX(dev, log_max_qp)); + prof->log_max_qp = min_t(u8, 18, MLX5_CAP_GEN_MAX(dev, log_max_qp)); } else if (MLX5_CAP_GEN_MAX(dev, log_max_qp) < prof->log_max_qp) { mlx5_core_warn(dev, "log_max_qp value in current profile is %d, changing it to HCA capability limit (%d)\n", prof->log_max_qp, -- 2.35.1