mbox series

[mlx5-next,0/2] Improvements for PTP clock in mlx5 driver

Message ID 20181203125942.13088-1-mlichvar@redhat.com
Headers show
Series Improvements for PTP clock in mlx5 driver | expand

Message

Miroslav Lichvar Dec. 3, 2018, 12:59 p.m. UTC
This is a pair of patches for the mlx5 driver related to the PTP clock.

The first patch fixes a potential issue causing backward jumps due to a
late update of the PHC timecounter.

The second patch adds support for the PTP_SYS_OFFSET_EXTENDED ioctl.

Miroslav Lichvar (2):
  mlx5: update timecounter at least twice per counter overflow
  mlx5: extend PTP gettime function to read system clock

 .../ethernet/mellanox/mlx5/core/lib/clock.c   | 24 +++++++++++--------
 .../net/ethernet/mellanox/mlx5/core/main.c    | 11 +++++++--
 .../ethernet/mellanox/mlx5/core/mlx5_core.h   |  4 +++-
 3 files changed, 26 insertions(+), 13 deletions(-)

Comments

Saeed Mahameed Dec. 12, 2018, 3:41 a.m. UTC | #1
On Mon, Dec 3, 2018 at 4:59 AM Miroslav Lichvar <mlichvar@redhat.com> wrote:
>
> This is a pair of patches for the mlx5 driver related to the PTP clock.
>
> The first patch fixes a potential issue causing backward jumps due to a
> late update of the PHC timecounter.
>
> The second patch adds support for the PTP_SYS_OFFSET_EXTENDED ioctl.
>
> Miroslav Lichvar (2):
>   mlx5: update timecounter at least twice per counter overflow
>   mlx5: extend PTP gettime function to read system clock

Applied to mlx5-next, will be sent to net-next soon.

Thanks!