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 7C28643B7D for ; Tue, 5 Mar 2024 10:58:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 77F5642E55; Tue, 5 Mar 2024 10:58:49 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2066.outbound.protection.outlook.com [40.107.95.66]) by mails.dpdk.org (Postfix) with ESMTP id 5B5884014F for ; Tue, 5 Mar 2024 10:58:48 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LqpEyDldGvboP2gl5f0bS280ANYye4BxS+rxU2A5FrZkCqZEwwnHwuARmbvsF/BjxyEdCqZH5eq4fWbV6uz2+tDQBTOvPp0++LL4zsALlCeCLtccihzVU8S8/8FyDqfKDt13b3m2i860QtZmmL1FN/A5wXBZHfm1/fxvHN+3Pnak3z8vgkZEZP7L+9rbjlGB6Awt29CN59GJkybxm3O+ntrZrYYrmlMXYIEu6Z9GSQm1b1utNt6+VpZrQiO4+2yiqpgPwZIegKBrFmw/eEX3d4Df63zq6x4k9hQIAfkoVfgT3fJ0/2Vk6JWW8/audHxmvD4V0CGS8uAET8n00yEOqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BrBXtvh/MC6JTnb7VV3aj+eMdQEZA32gKrgBrzklYzo=; b=Jt5JrQmEhgIyyFvuTfUdvATQRbyAY+cWd1esfUFnQ5xtrwVU6G1+kvtWRq+SgPNDLnKfW9y2ZV6SsQ77/dM7SK5Oh4wIxl6mxmE1VA5/QDTgKmnR1uyZkH7SKvg7OWUGSNTHIJaxNs2f4hHq5Xk+evHQ1l9fGaoO8JWQxArmmpaJQrLITWkcoZHQa9D6uhinwAJrZ0PEbK3MEpxrea4ZJqnB/WPkDLVQsM3QP6TCFO/MlBUf8vDnW92f0bHnp8VpEwiuWvKggoFalxWSDvzRkAQ3RqgIo7AAcgB2i58HB1t+3du93tXXdwE8PF3kl65ZTYeTkK3xBwtVTUmvHZb3Rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=broadcom.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BrBXtvh/MC6JTnb7VV3aj+eMdQEZA32gKrgBrzklYzo=; b=KSOg/xbSy9Rmd8Pf9y94jAgLTun8/dGSR1W4X0yeYAorXrIx9DBWCYoL8zYQfIpbUA8fcTfdy9M1anoTh6RL1Hjh5bOK9/vPlmDgPxjVeGuxScZJUTUapq1cRIx9SJbjhdW3lGgkhizO3O0i2jgZ61nUm+9zOZrmGs/jMFR/e4BvCwNuTXNf4TPpbhJGrcujnuoA8J4EQp2az3c+rnfw1I94JaAGjmKD74ZU0/Sd+2BtcfcOc/w2MgX/q2LtETtLnE7Q73PMcuOKAf0Q1uozMa8G123DCqpSgq/Z9lgHkhwqatENc+VsTQSohgqlUzkzRmy+vZl8h93MWvEoEMAM+w== Received: from MW4PR04CA0073.namprd04.prod.outlook.com (2603:10b6:303:6b::18) by PH8PR12MB7327.namprd12.prod.outlook.com (2603:10b6:510:215::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Tue, 5 Mar 2024 09:58:43 +0000 Received: from CO1PEPF000042AE.namprd03.prod.outlook.com (2603:10b6:303:6b:cafe::db) by MW4PR04CA0073.outlook.office365.com (2603:10b6:303:6b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38 via Frontend Transport; Tue, 5 Mar 2024 09:58:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CO1PEPF000042AE.mail.protection.outlook.com (10.167.243.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Tue, 5 Mar 2024 09:58:43 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 5 Mar 2024 01:58:25 -0800 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Tue, 5 Mar 2024 01:58:23 -0800 From: Xueming Li 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 23.11.1 Date: Tue, 5 Mar 2024 17:47:36 +0800 Message-ID: <20240305094757.439387-116-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240305094757.439387-1-xuemingl@nvidia.com> References: <20240305094757.439387-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000042AE:EE_|PH8PR12MB7327:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ee548e4-3b4e-47d9-920b-08dc3cfad7a2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3XyAqeS4DluoDer7yabASvTwy0Glgk2kfaI6zcB5B7MsMbLdRzthzGldtGnu17Dl3GX4pYhY92DTSVucnLz6z7eKvt7jCpWZPCZQ9zuWSFzv0uUUcJnC1SRtvSRUiDeCr4vIRGn2wnlvvi6/AqEUbM5+ej+mmTCcBfrjP4/5isBjxkmXFWzmiIXsuABjM19zab5BulBZnCR5VHgm399VjN+5iorQVOfk39Q2Gkc1SDIVbLv3+zsHWwNVa+s5aRlNhTAQ6nJJgUxkrsjGrAMwjX6JjwIk7jDQJ79Gpk7uZjuTPwddnk9kb1WZRszvhCu1xwO/GLeZO4+nf3PSI0YU3Q0Z6iy34rxHOx8+DLimXGzaW64xV7lwZtSuxcqG9lVeyXck5z/1WUr3yCrO6b4c3wpwn0jEqu0M9B7WDY0eH4YEIR2Fmxb0CfKjNYVjYpW9LjnfQx3feqLe0g2IXYoWTVkAZdKQvdpdan8TbUBLGuMjD56j/NUXfxgyu5pYwK2bZFGEO7iwmWVBi6vQMgmKQagrim25eln8tATTf2+37CkMBLx+2iLq4aU88QqLDLIn7PORpfaR9ub8gknevZGWkiv8O5QWrgTjhUhlEhoQwfdri5AtNwCtT3tXBbXe9tMBE4tNSAlIq1rMq08YYlkbYKI8+KtFnvNGwzqfQlJrjQVwsihHhsBjwQwcYBBmrowe06+zzpwR6wlkPMG/uvGuXY/04Ef7qMph54YgZ7xlumDosy/ergyCKVyW1DIXV43A X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(82310400014)(36860700004)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 09:58:43.5450 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ee548e4-3b4e-47d9-920b-08dc3cfad7a2 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000042AE.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7327 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 23.11.1 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/31/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://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=1fb50b8baa45801c07841e5c4ea840790d6d970d Thanks. Xueming Li --- >From 1fb50b8baa45801c07841e5c4ea840790d6d970d 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 Cc: Xueming Li [ 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 b6ce4fc5f0..d9ad361c6c 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -3072,6 +3072,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.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-05 17:39:34.418147614 +0800 +++ 0115-net-bnxt-fix-speed-change-from-200G-to-25G-on-Thor.patch 2024-03-05 17:39:30.933566498 +0800 @@ -1 +1 @@ -From 753b8ff26162ffaf118c03e47ab75cfd2229d4e8 Mon Sep 17 00:00:00 2001 +From 1fb50b8baa45801c07841e5c4ea840790d6d970d Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 753b8ff26162ffaf118c03e47ab75cfd2229d4e8 ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index 8f37077522..441e3aef51 100644 +index b6ce4fc5f0..d9ad361c6c 100644 @@ -26 +28 @@ -@@ -3191,6 +3191,7 @@ static uint16_t bnxt_parse_eth_link_speed(uint32_t conf_link_speed, +@@ -3072,6 +3072,7 @@ static uint16_t bnxt_parse_eth_link_speed(uint32_t conf_link_speed, @@ -29 +31 @@ - HWRM_PORT_PHY_CFG_INPUT_FORCE_LINK_SPEED_25GB; + HWRM_PORT_PHY_CFG_INPUT_AUTO_LINK_SPEED_25GB;