Thread (10 messages) 10 messages, 6 authors, 2025-08-08

Re: [RFC PATCH net-next] ptp: Introduce PTP_SYS_OFFSET_EXTENDED_TRUSTED ioctl

From: David Woodhouse <dwmw2@infradead.org>
Date: 2025-07-24 14:08:56

On Thu, 2025-07-24 at 14:56 +0300, David Arinzon wrote:
The proposed PTP_SYS_OFFSET_EXTENDED_TRUSTED ioctl fulfills both
objectives by extending each PHC timestamp with two quality
indicators:

- error_bound: a device-calculated value (in nanoseconds)
  reflecting the maximum possible deviation of the timestamp from
  the true time, based on internal clock state.

- clock_status: a qualitative state of the clock, with defined
  values including:
  1. Unknown: the clock's synchronization status cannot be
     reliably determined.
  2. Initializing: the clock is acquiring synchronization.
  3. Synchronized: The clock is actively being synchronized and
     maintained accurately by the device.
  4. FreeRunning: the clock is drifting and not being
     synchronized and updated by the device.
  5. Unreliable: the clock is known to be unreliable, the
     error_bound value cannot be trusted.
Should this also include a 'type' field matching vmclock & virtio-rtc?
Especially if it's a smeared type, that is a (contra-)indication of the
quality of the clock.

Julien, I assume you're happy that this is *maxerror* and we completely
ignore esterror which should never exist anyway?

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help