netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/3] ptp: Add esterror support
@ 2024-08-13 12:55 Maciek Machnikowski
  2024-08-13 12:56 ` [RFC 1/3] ptp: Implement timex " Maciek Machnikowski
                   ` (4 more replies)
  0 siblings, 5 replies; 36+ messages in thread
From: Maciek Machnikowski @ 2024-08-13 12:55 UTC (permalink / raw)
  To: maciek; +Cc: netdev, richardcochran, jacob.e.keller, vadfed, darinzon, kuba

This patch series implements handling of timex esterror field
by ptp devices.

Esterror field can be used to return or set the estimated error
of the clock. This is useful for devices containing a hardware
clock that is controlled and synchronized internally (such as
a time card) or when the synchronization is pushed to the embedded
CPU of a DPU.

Current implementation of ADJ_ESTERROR can enable pushing
current offset of the clock calculated by a userspace app
to the device, which can act upon this information by enabling
or disabling time-related functions when certain boundaries
are not met (eg. packet launchtime)


Maciek Machnikowski (3):
  ptp: Implement timex esterror support
  ptp: Implement support for esterror in ptp_mock
  ptp: Add setting esterror and reading timex structure

 drivers/ptp/ptp_clock.c               | 14 +++++++++-
 drivers/ptp/ptp_mock.c                | 30 +++++++++++++++++++++
 include/linux/ptp_clock_kernel.h      | 11 ++++++++
 tools/testing/selftests/ptp/testptp.c | 39 +++++++++++++++++++++++++--
 4 files changed, 91 insertions(+), 3 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-08-17  4:29 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-13 12:55 [RFC 0/3] ptp: Add esterror support Maciek Machnikowski
2024-08-13 12:56 ` [RFC 1/3] ptp: Implement timex " Maciek Machnikowski
2024-08-14  9:29   ` Vadim Fedorenko
2024-08-15  9:33     ` Maciek Machnikowski
2024-08-14 11:46   ` Simon Horman
2024-08-15  9:32     ` Maciek Machnikowski
2024-08-15  4:23   ` Richard Cochran
2024-08-15  9:43     ` Maciek Machnikowski
2024-08-15  9:47     ` Maciek Machnikowski
2024-08-15 21:04       ` Richard Cochran
2024-08-13 12:56 ` [RFC 2/3] ptp: Implement support for esterror in ptp_mock Maciek Machnikowski
2024-08-13 12:56 ` [RFC 3/3] ptp: Add setting esterror and reading timex structure Maciek Machnikowski
2024-08-13 20:05 ` [RFC 0/3] ptp: Add esterror support Andrew Lunn
2024-08-14  8:44   ` Vadim Fedorenko
2024-08-14 13:08     ` Andrew Lunn
2024-08-14 15:08       ` Maciek Machnikowski
2024-08-15  3:53         ` Richard Cochran
2024-08-15  9:40           ` Maciek Machnikowski
2024-08-15 14:26             ` Andrew Lunn
2024-08-15 15:00               ` Maciek Machnikowski
2024-08-15 21:08                 ` Richard Cochran
2024-08-15 22:06                   ` Maciek Machnikowski
2024-08-15 23:11                     ` Andrew Lunn
2024-08-16  4:13                       ` Maciek Machnikowski
2024-08-17  4:29                     ` Richard Cochran
2024-08-15  3:33       ` Richard Cochran
2024-08-15  4:16         ` Richard Cochran
2024-08-15  5:24           ` Miroslav Lichvar
2024-08-15  9:45             ` Maciek Machnikowski
2024-08-15  9:41           ` Maciek Machnikowski
2024-08-15  0:41 ` Jakub Kicinski
2024-08-15  3:42   ` Richard Cochran
2024-08-15  4:17     ` Richard Cochran
2024-08-15  9:35   ` Maciek Machnikowski
2024-08-15 10:29     ` Vadim Fedorenko
2024-08-15 11:40       ` Arinzon, David

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).