Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] ptp: add PTP_SYS_OFFSET_STAT ioctl, support it in virtio_rtc
@ 2024-12-19 20:42 Peter Hilber
  2024-12-19 20:42 ` [RFC PATCH 1/2] ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status Peter Hilber
  2024-12-19 20:42 ` [RFC PATCH 2/2] virtio_rtc: Support PTP_SYS_OFFSET_STAT ioctl Peter Hilber
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Hilber @ 2024-12-19 20:42 UTC (permalink / raw)
  To: linux-kernel, virtualization, virtio-dev, netdev
  Cc: Trilok Soni, Srivatsa Vaddagiri, Peter Hilber, David S. Miller,
	Eugenio Pérez, Michael S. Tsirkin, Andrew Lunn, Eric Dumazet,
	Jakub Kicinski, Jason Wang, Paolo Abeni, Richard Cochran,
	Shuah Khan, Xuan Zhuo, linux-kselftest, linux-api,
	David Woodhouse, Ridoux, Julien, John Stultz, Thomas Gleixner,
	Stephen Boyd, Anna-Maria Behnsen

This RFC patch series proposes a new ioctl PTP_SYS_OFFSET_STAT and adds
support for it in the proposed virtio_rtc driver [1]. The new
PTP_SYS_OFFSET_STAT ioctl provides a cross-timestamp like
PTP_SYS_OFFSET_PRECISE2, plus any the following status information (for
now):

- for UTC timescale clocks: leap second related status,

- clock accuracy.

The second commit adds support for the ioctl in the proposed virtio_rtc
driver, and hence depends on the patch series "Add virtio_rtc module" [1].

[1] https://lore.kernel.org/lkml/20241219201118.2233-1-quic_philber@quicinc.com/T/#t

Signed-off-by: Peter Hilber <quic_philber@quicinc.com>


Peter Hilber (2):
  ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status
  virtio_rtc: Support PTP_SYS_OFFSET_STAT ioctl

 drivers/ptp/ptp_chardev.c             |  39 ++++++++
 drivers/ptp/ptp_clock.c               |   9 ++
 drivers/virtio/Kconfig                |   4 +-
 drivers/virtio/virtio_rtc_driver.c    | 122 +++++++++++++++++++++++-
 drivers/virtio/virtio_rtc_internal.h  |   3 +-
 drivers/virtio/virtio_rtc_ptp.c       |  25 +++--
 include/linux/ptp_clock_kernel.h      |  31 ++++++
 include/uapi/linux/ptp_clock.h        | 130 +++++++++++++++++++++++++-
 tools/testing/selftests/ptp/Makefile  |   2 +-
 tools/testing/selftests/ptp/testptp.c | 126 ++++++++++++++++++++++++-
 10 files changed, 471 insertions(+), 20 deletions(-)


base-commit: 8a8009abbfa04e58f1b01b20534cac9e8fe61a46
-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-01-06 17:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-19 20:42 [RFC PATCH 0/2] ptp: add PTP_SYS_OFFSET_STAT ioctl, support it in virtio_rtc Peter Hilber
2024-12-19 20:42 ` [RFC PATCH 1/2] ptp: add PTP_SYS_OFFSET_STAT for xtstamping with status Peter Hilber
2024-12-20 15:19   ` Richard Cochran
2024-12-23 18:13     ` Peter Hilber
2024-12-26  0:42       ` Richard Cochran
2025-01-02 16:11         ` Peter Hilber
2025-01-02 16:21           ` Richard Cochran
2025-01-06 17:46             ` Peter Hilber
2024-12-19 20:42 ` [RFC PATCH 2/2] virtio_rtc: Support PTP_SYS_OFFSET_STAT ioctl Peter Hilber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox