[Intel-wired-lan] [PATCH iwl-net 04/10] idpf: negotiate PTP capabilies and get PTP clock

Willem de Bruijn willemdebruijn.kernel at gmail.com
Thu Nov 14 23:26:10 UTC 2024


Milena Olech wrote:
> PTP capabilities are negotiated using virtchnl command. Add get
> capabilities function, direct access to read the PTP clock time and
> direct access to read the cross timestamp - system time and PTP clock
> time. Set initial PTP capabilities exposed to the stack.
> 
> Reviewed-by: Alexander Lobakin <aleksander.lobakin at intel.com>
> Signed-off-by: Milena Olech <milena.olech at intel.com>

Tested-by: Willem de Bruijn <willemb at google.com>

- Brought up a device
- Verified the virtchannel capability negotiation
- Verified /dev/ptp0 becomes availabe
- Read the device clock using clock_gettime(FD_TO_CLOCKID(fd), &ts)
- Verified clock is full 64b (i.e., not a 32b truncated that rolls over)



More information about the Intel-wired-lan mailing list