Skip to content

mlx5 PTM cross timestamping support

Tariq Toukan linux-pci lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 4 repliesApplied 3/3

Changes in v3 from the cover letter

- Rebased on latest. As a result, had to replace the call to the recently removed function convert_art_ns_to_tsc().
- Added more CCs to the series per Jakub's feedback.
- Added perf numbers.

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net/mlx5: Add support for MTPTM and MTCTR registersdrivers/net/ethernet/mellanox/mlx5/core/fw.c include/linux/mlx5/device.h include/linux/mlx5/driver.h +1 more+52 -11 replyApplied
2/3net/mlx5: Add support for enabling PTM PCI capabilitydrivers/net/ethernet/mellanox/mlx5/core/main.c+6 -01 replyApplied
3/3net/mlx5: Implement PTM cross timestamping supportdrivers/net/ethernet/mellanox/mlx5/core/lib/clock.c+91 -01 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchWojciech DrewekVadim Fedorenko
SeriesT-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net-next V3 0/3] mlx5 PTM cross timestamping support

Hi,

This is V3. You can find V2 as part of a larger series here:
https://lore.kernel.org/netdev/[email protected]/T/

This patchset by Rahul and Carolina adds PTM (Precision Time Measurement) support to the mlx5 driver.

PTM is a PCI extended capability introduced by PCI-SIG for providing an accurate read of the device clock offset without being impacted by asymmetric bus transfer rates.

The performance of PTM on ConnectX-7 was evaluated using both real-time (RTC) and free-running (FRC) clocks under traffic and no traffic conditions. Tests with phc2sys measured the maximum offset values at a 50Hz rate, with and without PTM.

Results:

1. No traffic

+-----+--------+--------+
|     | No-PTM | PTM    |
+-----+--------+--------+
| FRC | 125 ns | <29 ns |
+-----+--------+--------+
| RTC | 248 ns | <34 ns |
+-----+--------+--------+

2. With traffic

+-----+--------+--------+
|     | No-PTM | PTM    |
+-----+--------+--------+
| FRC | 254 ns | <40 ns |
+-----+--------+--------+
| RTC | 255 ns | <45 ns |
+-----+--------+--------+

Series generated against:
commit 1722389b0d86 ("Merge tag 'net-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net")

Thanks,
Tariq.

V3:
- Rebased on latest. As a result, had to replace the call to the recently removed function convert_art_ns_to_tsc().
- Added more CCs to the series per Jakub's feedback.
- Added perf numbers.

Carolina Jubran (1):
net/mlx5: Add support for enabling PTM PCI capability

Rahul Rameshbabu (2):
net/mlx5: Add support for MTPTM and MTCTR registers net/mlx5: Implement PTM cross timestamping support

 drivers/net/ethernet/mellanox/mlx5/core/fw.c  |  1 +
 .../ethernet/mellanox/mlx5/core/lib/clock.c   | 91 +++++++++++++++++++
 .../net/ethernet/mellanox/mlx5/core/main.c    |  6 ++
 include/linux/mlx5/device.h                   |  7 +-
 include/linux/mlx5/driver.h                   |  2 +
 include/linux/mlx5/mlx5_ifc.h                 | 43 +++++++++
 6 files changed, 149 insertions(+), 1 deletion(-)
Signature · 1 line
2.44.0