netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] Revert "net/mlx5: Update cyclecounter shift value to improve ptp free running mode precision"
@ 2023-08-15 15:15 Vadim Fedorenko
  2023-08-15 16:53 ` Rahul Rameshbabu
  2023-08-17  2:38 ` Jakub Kicinski
  0 siblings, 2 replies; 7+ messages in thread
From: Vadim Fedorenko @ 2023-08-15 15:15 UTC (permalink / raw)
  To: Rahul Rameshbabu, Gal Pressman, Bar Shapira
  Cc: Vadim Fedorenko, Saeed Mahameed, Jakub Kicinski, Richard Cochran,
	netdev

From: Vadim Fedorenko <vadim.fedorenko@linux.dev>

This reverts commit 6a40109275626267ebf413ceda81c64719b5c431.

There was an assumption in the original commit that all the devices
supported by mlx5 advertise 1GHz as an internal timer frequency.
Apparently at least ConnectX-4 Lx (MCX4431N-GCAN) provides 156.250Mhz
as an internal frequency and the original commit breaks PTP
synchronization on these cards.

Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
---
 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
index 377372f0578a..3e504e7d24ce 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
@@ -39,7 +39,7 @@
 #include "clock.h"
 
 enum {
-	MLX5_CYCLES_SHIFT	= 31
+	MLX5_CYCLES_SHIFT	= 23
 };
 
 enum {
-- 
2.39.3


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-21 21:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-15 15:15 [PATCH net] Revert "net/mlx5: Update cyclecounter shift value to improve ptp free running mode precision" Vadim Fedorenko
2023-08-15 16:53 ` Rahul Rameshbabu
2023-08-16 21:57   ` Rahul Rameshbabu
2023-08-17  2:38 ` Jakub Kicinski
2023-08-17 16:37   ` Saeed Mahameed
2023-08-21 21:37     ` Vadim Fedorenko
2023-08-21 21:44       ` Rahul Rameshbabu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).