Re: [Intel-wired-lan] [RFC PATCH 1/4] ptp: add PTP_SYS_OFFSET_EXTENDED ioctl

2018-10-29 Thread Miroslav Lichvar
On Fri, Oct 26, 2018 at 03:16:47PM -0700, Vinicius Costa Gomes wrote: > > + case PTP_SYS_OFFSET_EXTENDED: > > + if (!ptp->info->gettimex64) { > > + err = -EOPNOTSUPP; > > + break; > > + } > > + sysoff_extended = memdup_user((void

Re: [Intel-wired-lan] [RFC PATCH 1/4] ptp: add PTP_SYS_OFFSET_EXTENDED ioctl

2018-10-26 Thread Vinicius Costa Gomes
Hi Miroslav, Miroslav Lichvar writes: > The PTP_SYS_OFFSET ioctl, which can be used to measure the offset > between a PHC and the system clock, includes the total time that the > gettime64 function of a driver needs to read the PHC timestamp. > > This typically involves reading of multiple PCI