[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240813125602.155827-1-maciek@machnikowski.net>
Date: Tue, 13 Aug 2024 12:55:59 +0000
From: Maciek Machnikowski <maciek@...hnikowski.net>
To: maciek@...hnikowski.net
Cc: netdev@...r.kernel.org,
richardcochran@...il.com,
jacob.e.keller@...el.com,
vadfed@...a.com,
darinzon@...zon.com,
kuba@...nel.org
Subject: [RFC 0/3] ptp: Add esterror support
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
Powered by blists - more mailing lists