Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3079695rwb; Mon, 15 Aug 2022 17:37:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR5SLs4Fc7XQwepOLBIumbKOaebHHkcZPo6pYJ0AcOUv/zxLItWWQSKZKmqh6aSv18tHfb2p X-Received: by 2002:a17:906:9b16:b0:730:d5f4:d46e with SMTP id eo22-20020a1709069b1600b00730d5f4d46emr11812704ejc.701.1660610247015; Mon, 15 Aug 2022 17:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610247; cv=none; d=google.com; s=arc-20160816; b=hgc5I1Ku2GBI88RyqQ7hGkUYE1ev/9yXyDZVpOTea//GVNQL1lrBQudxWqeZe+XoK3 XXBUEQOuNaDLW7ASJMyHxGtWDW+1o/NaCE+ZbjsI9S1thw9kBrkB6T0DW3xHCaaFaCw1 1KAcygDCSNPgjCT/ULJVeCar7ObBPNWCSm9VQSH53lO55arNIsICazL3mieCw4YUxNR6 OehUqhzS3z3+MaN9tOCGgQQGxxER3j2KisK/zGxQSFv7eqFG/BhrPuIotB2W0L+So4pA xnKhOK8x7yxSlG9n4PovNQIK60GufpFCmVxBChqIjY8wDtTphwfcbuO2hWcknmyhRqH2 2M2A== 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=KfhZvwrRdrn0xE5CfNQobFe+M8FPpmqiQQh9VHNMV4Y=; b=HBT229deY8ZNLkH3tsn0lw4oWmDCJ7GYUYqLAggf0mbVBPD4TkLCnLkcqUNP4WVc3S HOoA7r/W+O1ztEnL4A1VWKp3FN1jp7HWYCyneHwb0YKHXcgnWV65hh2tzUYtZMNVTCIc zrwcaC5Ig9OYG6uIXRJUNVYLlR6FDGsdAWwz72bW1qBHuC8mxrgOOnnfB+CEKLFvUftm zctG/zGPQCYTjkP/5ERsS43fma1ILh2sycxJFt9sNSEJygJbz0RoFV6TZPDF6/3J75zC +d0eEVPprKfbs89dkimZaTCANmFXaZ9BzX034CC8iNh5+VnuxA2zOQHyc5TcNtHGk6FB 5PBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YPkJokaW; 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 p27-20020a1709060e9b00b00730d106e832si7493189ejf.248.2022.08.15.17.37.01; Mon, 15 Aug 2022 17:37:27 -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=YPkJokaW; 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 S244774AbiHOVXL (ORCPT + 99 others); Mon, 15 Aug 2022 17:23:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344664AbiHOVRd (ORCPT ); Mon, 15 Aug 2022 17:17:33 -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 B213A5727F; Mon, 15 Aug 2022 12:20:46 -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 640E1B81109; Mon, 15 Aug 2022 19:20:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A80ADC433D6; Mon, 15 Aug 2022 19:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591244; bh=0EQ4/Dg94d0UaYsLFhWmQFoiKgcKY4dRJ6yUJLSE2SQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YPkJokaWBW3En9N4IAOyrSUFnXKUA8FBBcCF0Uemh/WjUkxxDOw1Net34IzJIkjrt bc6CDKTVB8WSXdIAj0Svd05NSyuJW0Els0UAwmG2jmdy6JZ2EP7JJKqMAgPpEgxu5h Dvxmm5GhkdGyjxBAi8yWssEPgcRwhQx2f3nc60Dg= 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.18 0517/1095] net/mlx5: Adjust log_max_qp to be 18 at most Date: Mon, 15 Aug 2022 19:58:36 +0200 Message-Id: <20220815180450.928809527@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: 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 8b5263699994..ffb0bb4ecdef 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -526,7 +526,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