From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 600E5A0032 for ; Fri, 18 Feb 2022 13:42:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B16640395; Fri, 18 Feb 2022 13:42:19 +0100 (CET) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mails.dpdk.org (Postfix) with ESMTP id F2C2440141 for ; Fri, 18 Feb 2022 13:42:17 +0100 (CET) Received: by mail-wr1-f54.google.com with SMTP id o24so14403689wro.3 for ; Fri, 18 Feb 2022 04:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZFej1MaHlzMdf2LLz+ahy750PoPMKA8iATsIyZXxEu4=; b=Uju06rX3ZxmVPBHaeZJi1I06pP/lp65LiynIssZYHqmJu3h6DacPNCoZe8KWbXFL6x RtksYy44/6BWglwvijEUjiSF76oahLX1AslCy6nYp1p5DSYHHsO5hY2dt1Y+UDOkFF29 YJJCtFEBLeGzv+bgCgchfSc4sOf1QLkwxW4Q7E+eNnLRSjCuPpN1hme+GXH4HCbuuX+R 5RNvM3Okcw48spovHPQu7QBUO/AGngl4uJ819ED/QIOLNaiZ2TpF6Cxi8hIMLPiQfc7D Xb0TgUgRNZY7Rr/CF3M+tXP800dOlawcxHyZjTs6eBnWaSBOnfd80nTOTCvdrkM/wyyU Oz+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZFej1MaHlzMdf2LLz+ahy750PoPMKA8iATsIyZXxEu4=; b=K1fHTTvutgHvAPLdw/UMHF5Nfp/93FLBMoVxILStu/V8P4uWb330/4fDcE4lLZJ6PM 5lIPp+3i+Um0mQcUFz3R2TpsEZ8oWN/pqPjevCxQg9CvD4eQT7rgF/+0huWV+1oNrFJu irHE1QtgYbhBVTcr1d5VLZGneOxmcPJlZNjS4ACT857GmQXPn/QkeS62hGp2ZtptnZzK mcU3RijRJDpEn6xg3MAC3JlAA2j5YS3dYFmdFLotjqdkhGVUUqI2N1+uCnAtf//Xkzsr oPtT/gnTC/+MdZRxzklIL5qL71n4fQkOeMIuIPgFAwnQMh8KTJ9qVQwAidyq5EgCeg3c N9Uw== X-Gm-Message-State: AOAM530TF3Ogjh9XR6bRgswl/urzAZ+CtT6eAbsTQxbdYRKkcgjYx2sx 3kFG9w65nIQUBjv9lDOR9no= X-Google-Smtp-Source: ABdhPJz+kklzNNQCcJD0t+Ka+VGqB7iv9EpP4zyqbFQTf8fxdWWSGLwk2E0fO//1X1tHgv/5tOfXww== X-Received: by 2002:adf:f3cc:0:b0:1e7:4fd9:6fd3 with SMTP id g12-20020adff3cc000000b001e74fd96fd3mr5723612wrp.266.1645188137706; Fri, 18 Feb 2022 04:42:17 -0800 (PST) Received: from localhost ([2a01:4b00:f41a:3600:360b:9754:2e3a:c344]) by smtp.gmail.com with ESMTPSA id y1sm4809631wmi.36.2022.02.18.04.42.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 04:42:17 -0800 (PST) From: luca.boccassi@gmail.com To: Kalesh AP Cc: Ajit Khaparde , Somnath Kotur , dpdk stable Subject: patch 'net/bnxt: fix check for autoneg enablement' has been queued to stable release 20.11.5 Date: Fri, 18 Feb 2022 12:38:21 +0000 Message-Id: <20220218123931.1749595-52-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220218123931.1749595-1-luca.boccassi@gmail.com> References: <20220218123931.1749595-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 20.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/20/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/e7f6c7629a40074eb4e04db3393af7453e12af1c Thanks. Luca Boccassi --- >From e7f6c7629a40074eb4e04db3393af7453e12af1c Mon Sep 17 00:00:00 2001 From: Kalesh AP Date: Thu, 20 Jan 2022 14:42:25 +0530 Subject: [PATCH] net/bnxt: fix check for autoneg enablement [ upstream commit 7b82c4de0d67719390674215d4580e20459f5b9b ] HWRM_PORT_PHY_QCFG_OUTPUT response indicates the autoneg speed mask supported by the FW. While enabling autoneg, driver should also check the FW advertised PAM4 speeds supported in auto mode which is set in the HWRM_PORT_PHY_QCFG_OUTPUT response. Fixes: c23f9ded0391 ("net/bnxt: support 200G PAM4 link") Signed-off-by: Kalesh AP Reviewed-by: Ajit Khaparde Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_hwrm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 4dd98e6cad..7cdafde88b 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -3145,7 +3145,8 @@ int bnxt_set_hwrm_link_config(struct bnxt *bp, bool link_up) bp->link_info->link_signal_mode); link_req.phy_flags = HWRM_PORT_PHY_CFG_INPUT_FLAGS_RESET_PHY; /* Autoneg can be done only when the FW allows. */ - if (autoneg == 1 && bp->link_info->support_auto_speeds) { + if (autoneg == 1 && + (bp->link_info->support_auto_speeds || bp->link_info->support_pam4_auto_speeds)) { link_req.phy_flags |= HWRM_PORT_PHY_CFG_INPUT_FLAGS_RESTART_AUTONEG; link_req.auto_link_speed_mask = -- 2.30.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-02-18 12:37:40.042076384 +0000 +++ 0052-net-bnxt-fix-check-for-autoneg-enablement.patch 2022-02-18 12:37:37.678791652 +0000 @@ -1 +1 @@ -From 7b82c4de0d67719390674215d4580e20459f5b9b Mon Sep 17 00:00:00 2001 +From e7f6c7629a40074eb4e04db3393af7453e12af1c Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 7b82c4de0d67719390674215d4580e20459f5b9b ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -22 +23 @@ -index 5850e7e48b..5418fa1994 100644 +index 4dd98e6cad..7cdafde88b 100644 @@ -25 +26 @@ -@@ -3253,7 +3253,8 @@ int bnxt_set_hwrm_link_config(struct bnxt *bp, bool link_up) +@@ -3145,7 +3145,8 @@ int bnxt_set_hwrm_link_config(struct bnxt *bp, bool link_up)