patch 'common/cnxk: allow changing PTP mode on CN10K' has been queued to stable release 21.11.2

luca.boccassi at gmail.com luca.boccassi at gmail.com
Wed Jul 6 22:34:58 CEST 2022


Hi,

FYI, your patch has been queued to stable release 21.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/08/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/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/03a6a9f751fb3bc4e9df20415ac80ad5b383e884

Thanks.

Luca Boccassi

---
>From 03a6a9f751fb3bc4e9df20415ac80ad5b383e884 Mon Sep 17 00:00:00 2001
From: Tomasz Duszynski <tduszynski at marvell.com>
Date: Fri, 1 Jul 2022 13:54:48 +0200
Subject: [PATCH] common/cnxk: allow changing PTP mode on CN10K

[ upstream commit 2ddf4b110cbcd7238f32780a7453aef2ecade83b ]

Since firmware has added support for toggling PTP mode on 10k platforms
userspace code should allow doing that as well.

Signed-off-by: Tomasz Duszynski <tduszynski at marvell.com>
Reviewed-by: Jerin Jacob <jerinj at marvell.com>
---
 drivers/common/cnxk/roc_bphy_cgx.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/common/cnxk/roc_bphy_cgx.c b/drivers/common/cnxk/roc_bphy_cgx.c
index c3be3c9041..0cd7dff655 100644
--- a/drivers/common/cnxk/roc_bphy_cgx.c
+++ b/drivers/common/cnxk/roc_bphy_cgx.c
@@ -268,9 +268,6 @@ roc_bphy_cgx_ptp_rx_ena_dis(struct roc_bphy_cgx *roc_cgx, unsigned int lmac,
 {
 	uint64_t scr1, scr0;
 
-	if (roc_model_is_cn10k())
-		return -ENOTSUP;
-
 	if (!roc_cgx)
 		return -EINVAL;
 
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-07-06 21:07:54.346404241 +0100
+++ 0023-common-cnxk-allow-changing-PTP-mode-on-CN10K.patch	2022-07-06 21:07:53.559519014 +0100
@@ -1 +1 @@
-From 2ddf4b110cbcd7238f32780a7453aef2ecade83b Mon Sep 17 00:00:00 2001
+From 03a6a9f751fb3bc4e9df20415ac80ad5b383e884 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 2ddf4b110cbcd7238f32780a7453aef2ecade83b ]
+
@@ -9,2 +10,0 @@
-Cc: stable at dpdk.org
-
@@ -18 +18 @@
-index a5df104088..e966494e21 100644
+index c3be3c9041..0cd7dff655 100644
@@ -21 +21 @@
-@@ -285,9 +285,6 @@ roc_bphy_cgx_ptp_rx_ena_dis(struct roc_bphy_cgx *roc_cgx, unsigned int lmac,
+@@ -268,9 +268,6 @@ roc_bphy_cgx_ptp_rx_ena_dis(struct roc_bphy_cgx *roc_cgx, unsigned int lmac,


More information about the stable mailing list