Thanks for the pointers!
Continuing my multi-domain experiment, I have another question:
Regarding use of PTP time in user space:
I guess I will only be able to make use of one domain "the standard way"
(i.e. use phc2sys to synchronize CLOCK_REALTIME, and then use standard
Linux clock system calls with CLOCK_REALTIME).
Is there a best practice when it comes to using a second domain? Can one
use a PHC clock id with any system call that uses clock ids (e.g. the
timerfd family)? Or are these only expected to work with clock_gettime &
co? And is this different for virtual PHCs?
Would a "free running" instance of ptp4l for the 2nd domain be more
useful in user space, rather than going the virtual PHC route?
Any help/tips would be appreciated! Thanks in advance.
JP
-----Original Message-----
From: Richard Cochran <richardcoch...@gmail.com>
Sent: Friday, August 06, 2021 9:37 AM
To: JP <j...@umantec.net>
Cc: linuxptp-users@lists.sourceforge.net
Subject: Re: [Linuxptp-users] Multidomain PTP
On Thu, Aug 05, 2021 at 03:49:15PM +0200, JP wrote:
> Is it possible to do PTP on multiple domains, at the same time,
using ptp4l?
yes
> I assume I'd run a separate instance for each domain, both using the
same
> interface, and explicitly tell each instance which PHC to synchronise
> to/from?
Up until recently, you couldn't really do two domains on the same
interface unless both ptp4l instances were "free running".
Now with the new PHC vclock feature in the Linux kernel, you can have
as many domains (and ptp4l instances) all using the same interface as
you want.
For those interested in these patches, the submitted cover letter can be
found here on lore:
https://lore.kernel.org/netdev/20210625093513.38524-1-yangbo...@nxp.com/
HTH,
Richard
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users