Skip to contentSkip to conversation

add gettimex64() support for mlx4

PATCH In review Mahesh Bandewar 3 participants 4 messages Oct 12, 2024 – Oct 28, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover add gettimex64() support for mlx4

The current driver only supports the gettime64() PTP clock read operation. This series introduces support for gettimex64(), which provides pre- and post-timestamps using one of the supported clock bases to help measure the clock-read width.

The first patch reorganizes the code to enable the existing clock-read method to handle pre- and post-timestamps. The second patch adds the gettimex64() functionality.

Mahesh Bandewar (3):
mlx4: introduce the time_cache into the mlx4 PTP implementation
mlx4: update mlx4_read_clock() to provide pre/post timestamps
mlx4: add gettimex64() ptp method

 drivers/net/ethernet/mellanox/mlx4/en_clock.c | 50 +++++++++++++++++--
 drivers/net/ethernet/mellanox/mlx4/main.c     | 12 +++--
 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h  |  1 +
 include/linux/mlx4/device.h                   |  3 +-
 4 files changed, 57 insertions(+), 9 deletions(-)

v1->v2
* Split the original patch that implemented time-cache and added pre-/post-timestamp into two separate patches.

Signature · 1 line
2.47.0.rc1.288.g06298d1525-goog
maintainer
#1 lore raw
Quoted 8 lines · Mahesh Bandewar

The current driver only supports the gettime64() PTP clock read operation. This series introduces support for gettimex64(), which provides pre- and post-timestamps using one of the supported clock bases to help measure the clock-read width.

The first patch reorganizes the code to enable the existing clock-read method to handle pre- and post-timestamps. The second patch adds the gettimex64() functionality.

This paragraph is outdated, you must update the cover letter according to the series contents.

Additionally please fix you git configuration; you should set format.thread=shallow

Thanks,

Paolo

#2 lore raw
Quoted 2 lines · Paolo Abeni

Additionally please fix you git configuration; you should set format.thread=shallow

Yes, this ^^^ makes review much easier for us.

Thanks,
Richard

#3 lore raw
Quoted 7 lines · Richard Cochran
Quoted 2 lines · Paolo Abeni

Additionally please fix you git configuration; you should set format.thread=shallow

Yes, this ^^^ makes review much easier for us.

I see. Thank you both for the suggestion.

Quoted 2 lines

Thanks,
Richard