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 D8F8743C60 for ; Thu, 7 Mar 2024 02:37:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF50742F0E; Thu, 7 Mar 2024 02:37:14 +0100 (CET) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mails.dpdk.org (Postfix) with ESMTP id C0BE642F15 for ; Thu, 7 Mar 2024 02:37:12 +0100 (CET) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-41307d27b5fso3342545e9.1 for ; Wed, 06 Mar 2024 17:37:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709775432; x=1710380232; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=873cwenEiATYAeZ4F6Yh1uBggXSsaDqnbOgwcqG8Y4M=; b=SDJIC91sKmpN5I/7W3mOZhakiAWApYX/PakVkGBHETebPNaEPFS61LtzhmJqZ2HITu nYABHOslVARq7isC+wJXSc/Ojp+Z2MzmL4zn+bemvqYcmVzAg1zOYW4wL3Fa+2VTQvKc 4ryTNU7959yKPzu6M5yahokd/SZjmFJpv0BxI6g/Rq0HJxgmpo5dxAEuCJwwidj5SJxN Q5lfnbesPDR/2qwCCiaFmOhJH3fW4Gqh5nh/+9YA0jhZikzuaNW8xO3SGe/Z4zTRUpCj Q7zIDYCSzg/AuMEmH95iWNjqFEKcS0C4SzJQVpXWhFxY9TGKAZ+SaVh+pczwl6w/kSMW jASw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709775432; x=1710380232; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=873cwenEiATYAeZ4F6Yh1uBggXSsaDqnbOgwcqG8Y4M=; b=OQA8DUOgIMQqDoeZAB7ueUKtXfcGPGc+nO99BaN7f5He6zsxPTikF9kKzCyHeWzR2q OjzQQTwOmrukwczSzNu+P15nHpyxi+Y706TaGVKMur6KrpL3e3Y9lZcRsBJ/gV+we7zN mlVGHHJldvgUatX++lByQDd9zjy5FgDY5hm7PnbtFMwob6L2fGI1Ew93Qb3zWjDtimNf Q+QNrNQWLkjwi6HYgQ9vCshSq/OWCdqeYG5rMqU3tq3E+plISW4dYDph7v5gi83TidXE Sjm//43NdrLaWL2C/6D4g+D5BGzCCIxkWkNaXkwSgPVLZZ96UlnEzNQhjEROwzPoghKV KumQ== X-Forwarded-Encrypted: i=1; AJvYcCXQ37zYo5HLAcDV6q7dZFFNRB3HvyqGK1PHh37b2y4QUefo1f6ma2vVZxRPdwp6Z62yDn/s312b5bOoZAAVjTY= X-Gm-Message-State: AOJu0YznSyMhF35nz/ssiVYosPzWBQmdMImaQpC8aw6eICsxXFUXv3CQ +PxmEVBbQhI+PjzgSV7rVqkMuuA9mz1LciLc/JHfHeWCHid3qJhvSgcQJkupbXw= X-Google-Smtp-Source: AGHT+IEmK0nAqeiP6emjoIiy5s+EKqowaSBqo5xB/UkDQRj7TN272Bg/b/DvbHyrhiZ5ipLvIlPghg== X-Received: by 2002:a05:600c:4f0c:b0:412:9b49:11f with SMTP id l12-20020a05600c4f0c00b004129b49011fmr12996008wmq.2.1709775432453; Wed, 06 Mar 2024 17:37:12 -0800 (PST) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id n8-20020a05600c180800b00413011933e6sm848871wmp.39.2024.03.06.17.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 17:37:11 -0800 (PST) From: luca.boccassi@gmail.com To: Kalesh AP Cc: Ajit Khaparde , Somnath Kotur , dpdk stable Subject: patch 'net/bnxt: fix speed change from 200G to 25G on Thor' has been queued to stable release 22.11.5 Date: Thu, 7 Mar 2024 01:31:44 +0000 Message-Id: <20240307013159.1735343-87-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240307013159.1735343-1-luca.boccassi@gmail.com> References: <20240307013159.1735343-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 22.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 03/09/24. 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/61fe7465490bc4463d4d1182215d47414b1dbd9e Thanks. Luca Boccassi --- >From 61fe7465490bc4463d4d1182215d47414b1dbd9e Mon Sep 17 00:00:00 2001 From: Kalesh AP Date: Sat, 4 Nov 2023 22:31:07 -0700 Subject: [PATCH] net/bnxt: fix speed change from 200G to 25G on Thor [ upstream commit 753b8ff26162ffaf118c03e47ab75cfd2229d4e8 ] While forcing speed to 200G, driver sets the structure variable "bp->link_info->link_signal_mode" value to BNXT_SIG_MODE_PAM4. After that when the user forces the speed back to 25G, this cached value is not set back to BNXT_SIG_MODE_NRZ which results in issuing the HWRM_PORT_PHY_CFG command with wrong inputs. Fixes: c23f9ded0391 ("net/bnxt: support 200G PAM4 link") Signed-off-by: Kalesh AP Signed-off-by: Ajit Khaparde Reviewed-by: Somnath Kotur --- drivers/net/bnxt/bnxt_hwrm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 45f92ff558..098f84fbae 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -3005,6 +3005,7 @@ static uint16_t bnxt_parse_eth_link_speed(uint32_t conf_link_speed, case RTE_ETH_LINK_SPEED_25G: eth_link_speed = HWRM_PORT_PHY_CFG_INPUT_AUTO_LINK_SPEED_25GB; + link_info->link_signal_mode = BNXT_SIG_MODE_NRZ; break; case RTE_ETH_LINK_SPEED_40G: eth_link_speed = -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-07 01:05:42.118157918 +0000 +++ 0087-net-bnxt-fix-speed-change-from-200G-to-25G-on-Thor.patch 2024-03-07 01:05:34.970943666 +0000 @@ -1 +1 @@ -From 753b8ff26162ffaf118c03e47ab75cfd2229d4e8 Mon Sep 17 00:00:00 2001 +From 61fe7465490bc4463d4d1182215d47414b1dbd9e Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 753b8ff26162ffaf118c03e47ab75cfd2229d4e8 ] + @@ -13 +14,0 @@ -Cc: stable@dpdk.org @@ -23 +24 @@ -index 8f37077522..441e3aef51 100644 +index 45f92ff558..098f84fbae 100644 @@ -26 +27 @@ -@@ -3191,6 +3191,7 @@ static uint16_t bnxt_parse_eth_link_speed(uint32_t conf_link_speed, +@@ -3005,6 +3005,7 @@ static uint16_t bnxt_parse_eth_link_speed(uint32_t conf_link_speed, @@ -29 +30 @@ - HWRM_PORT_PHY_CFG_INPUT_FORCE_LINK_SPEED_25GB; + HWRM_PORT_PHY_CFG_INPUT_AUTO_LINK_SPEED_25GB;