Skip to content

Expose mlx5 core driver's clock information

Leon Romanovsky linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/mlx5e: Add clock info page to mlx5 core devicesdrivers/net/ethernet/mellanox/mlx5/core/lib/clock.c include/linux/mlx5/driver.h include/uapi/rdma/mlx5-abi.h+74 -00 replies
2/2IB/mlx5: Mmap the HCA's clock info to user-spacedrivers/infiniband/hw/mlx5/main.c drivers/infiniband/hw/mlx5/mlx5_ib.h include/uapi/rdma/mlx5-abi.h+59 -130 replies

Reviews trailers per patch

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

PatchYishai HadasJason GunthorpeAlex Vesker
1/2R-b R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH rdma-next 0/2] Expose mlx5 core driver's clock information
Quoted 1 line

From Feras:

This series adds the ability to query mlx5 core clock info from userspace applications. This will allow userspace applications to translate timestamps from HCA core clock units to nanoseconds using the latest clock info.

The first patch creates a new clock info page, which will be updated in the kernel only, and the second patch maps the page to userspace.

In order to read the clock info correctly, a sequence number is incremented at the beginning and end of each update. An odd number means the data is being updated while an even means the access was already done.

To ensure correctness, the user will:

repeat:
seq1 = <read sequence>
goto <repeate> while odd
<read data structure>
seq2 = <read sequence>
if seq1 != seq2 goto repeat

Thanks

Feras Daoud (2):
net/mlx5e: Add clock info page to mlx5 core devices IB/mlx5: Mmap the HCA's clock info to user-space

 drivers/infiniband/hw/mlx5/main.c                  | 44 ++++++++++++++++-
 drivers/infiniband/hw/mlx5/mlx5_ib.h               | 10 ----
 .../net/ethernet/mellanox/mlx5/core/lib/clock.c    | 55 ++++++++++++++++++++++
 include/linux/mlx5/driver.h                        |  3 ++
 include/uapi/rdma/mlx5-abi.h                       | 34 ++++++++++++-
 5 files changed, 133 insertions(+), 13 deletions(-)

--
2.15.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html