Re: [PATCH rdma-next 0/2] Expose mlx5 core driver's clock information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2018-01-16 at 20:08 +0200, Leon Romanovsky wrote:
> 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
> 

Thanks, series applied.

-- 
Doug Ledford <dledford@xxxxxxxxxx>
    GPG KeyID: B826A3330E572FDD
    Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux