Re: [Linuxptp-devel] [PATCH] Add source only option to phc2sys autoconfiguration

2022-11-28 Thread Richard Cochran
On Wed, Oct 12, 2022 at 01:45:35PM +0200, Jakub Raczynski wrote: > Implementation of two-way gPTP synchronization requires two phc2sys instances: > - one synchronizing CLOCK_REALTIME->phc when in Master (phc2sys -a -rr), > - second synchronizing phc->ntpshm when in Slave state (phc2sys -a -r -E >

Re: [Linuxptp-devel] [PATCH] Add source only option to phc2sys autoconfiguration

2022-11-28 Thread Richard Cochran
On Fri, Oct 14, 2022 at 09:29:10AM +0200, Jakub Raczyński wrote: > --- a/phc2sys.c 2022-10-14 09:24:53.643279501 +0200 > +++ b/phc2sys.c 2022-10-14 09:17:27.256854202 +0200 > @@ -558,11 +558,11 @@ > rt->state = PS_SLAVE; > } else if (rt) { > if (rt->state != PS_MASTER) { > - rt->state = PS_

Re: [Linuxptp-devel] [PATCH] Add source only option to phc2sys autoconfiguration

2022-10-14 Thread Jakub Raczyński
> 14.10.2022 09:29 Jakub Raczyński > napisał(a): > > > > > After some thought, my patch was huge overkill. The correct solution (with > same result) should be as in following patch. > > I don't see a point in forcing CLOCK_REALTIME being master and completely > ignoring current portSt

Re: [Linuxptp-devel] [PATCH] Add source only option to phc2sys autoconfiguration

2022-10-14 Thread Jakub Raczyński
After some thought, my patch was huge overkill. The correct solution (with same result) should be as in following patch. I don't see a point in forcing CLOCK_REALTIME being master and completely ignoring current portState. This patch is supposed to fix that. --- a/phc2sys.c 2022-10-14 0

Re: [Linuxptp-devel] [PATCH] Add source only option to phc2sys autoconfiguration

2022-10-12 Thread Jakub Raczyński
> 12.10.2022 15:20 Jakub Raczyński > napisał(a): > > > > > > > > > > 12.10.2022 14:38 Erez wrote: > > > > > > > > > > > > > > > > > > > > On Wed, 12 Oct 2022 at 13:48, Jakub Raczynski > > > > wrote: > > > Current implementatio

Re: [Linuxptp-devel] [PATCH] Add source only option to phc2sys autoconfiguration

2022-10-12 Thread Jakub Raczyński
> 12.10.2022 14:38 Erez wrote: > > > > > > > > > > On Wed, 12 Oct 2022 at 13:48, Jakub Raczynski > > wrote: > > Current implementation of flag "-a -rr" for phc2sys selects CLOCK_REALTIME > > for > > both directions of PTP synchronization.

Re: [Linuxptp-devel] [PATCH] Add source only option to phc2sys autoconfiguration

2022-10-12 Thread Erez
On Wed, 12 Oct 2022 at 13:48, Jakub Raczynski < j.raczyn...@elpromaelectronics.com> wrote: > Current implementation of flag "-a -rr" for phc2sys selects CLOCK_REALTIME > for > both directions of PTP synchronization. This may be impractical for Network > Not really sure what you are talking about,

[Linuxptp-devel] [PATCH] Add source only option to phc2sys autoconfiguration

2022-10-12 Thread Jakub Raczynski
Current implementation of flag "-a -rr" for phc2sys selects CLOCK_REALTIME for both directions of PTP synchronization. This may be impractical for Network Time Servers which use alternative sources of synchronization, that usually have clock adjusted by ntpd/chrony. For gPTP Grandmaster in Time Ser