Re: [Linuxptp-users] phc2sys always creates a -37000000011ns between system clock and phc

2023-11-29 Thread Richard Cochran
On Wed, Nov 29, 2023 at 10:27:54PM +0800, paulzhn via Linuxptp-users wrote: > I'm wondering why the offset exists. - Linux system clock is in UTC timescale. - PHC is in TAI timescale. HTH, Richard ___ Linuxptp-users mailing list Linuxptp-users@lists.

[Linuxptp-users] phc2sys always creates a -37000000011ns between system clock and phc

2023-11-29 Thread paulzhn via Linuxptp-users
Hi, I want to sync my PHC clock with system clock as the source, so I executed the command: ptp4l -i ens2f1np1 -m phc2sys -a -r -r -m The phc2sys seems running correctly: $phc2sys -a -r -r -m phc2sys[7362514.851]: reconfiguring after port state change phc2sys[7362514.851]: selecting ens2f1np

Re: [Linuxptp-users] phc2sys stuck with very high offset

2023-06-16 Thread Nemo Crypto
This is helpful, thank you Ed. Thanks, Nemo On Friday, 16 June, 2023 at 03:08:38 pm GMT-4, Ed Branch wrote: TLDR: It could also be the GM. I see this on embedded networks, ie. the whole network including the GM is on the same power switch, it all comes up together, and none of the

Re: [Linuxptp-users] phc2sys stuck with very high offset

2023-06-16 Thread Ed Branch
TLDR: It could also be the GM. I see this on embedded networks, ie. the whole network including the GM is on the same power switch, it all comes up together, and none of the RTC's have battery backup. Maybe the "GM" is just another embedded computer that gets time from GPS or something like

Re: [Linuxptp-users] phc2sys stuck with very high offset

2023-06-16 Thread Nemo Crypto
Thank you Ed! I am using -w option but not -S. I now understand why the clock step is not happening. But with -w phc2sys should start only after ptp4l, isn't it? If yes, then why would this happen - "the clock has jumped from the epoch after phc2sys started". The only way is probably that "-w" o

Re: [Linuxptp-users] phc2sys stuck with very high offset

2023-06-16 Thread Ed Branch
You need either of: 1) a battery backup for the real-time clock so that it starts at a reasonable time. 2) Use -w option to phc2sys so that it waits until ptp4l is synchronized. 3) Use the -S option to phc2sys so that it steps the clock if the offset is above some threshold. By default, phc2

[Linuxptp-users] phc2sys stuck with very high offset

2023-06-15 Thread Nemo Crypto
Hi LinuxPTPUsers, I have this weird problem sometimes with phc2syc. Please look at the log below, ptp4l service is perfectly okay. But the phc2sys is stuck (although it measures the offset correctly) and not adjusting the system time for some reason. Why would this happen? Waiting for more than

Re: [Linuxptp-users] phc2sys time offset is abnormal

2023-06-12 Thread egg car
Hi, >Q1, I have learned the rms, and how can I get the offset value in the log > of ptp4l? If you want to see the raw offset value, you should turn 'summary_interval' down, in ptp4l.conf, when summary_interval - sync_interval <= 0, the stats output raw measurement value instead of rms val

Re: [Linuxptp-users] phc2sys time offset is abnormal

2023-06-12 Thread egg car
Hi, > Q1, I can only find rms value in log of ptp4l, but no offset value. And this > rms value does not converge. Is it normal? How can I get offset log? The rms value is the statistic value of offset. It depends on whether your test suites supports hwtimestamp or only software timestamp, and the

[Linuxptp-users] phc2sys time offset is abnormal

2023-06-12 Thread 这个🍊 不太冷 via Linuxptp-users
Hi,    I am using a embeded board, which contains a mcu and a soc. Two chips communicate through a switch chip. The mcu works as ptp master, the soc works as slave. The period of sync&follow up message is 0.125s.     Here is log of ptp slave:    # ptp4l -i vlan12 -f automotive-slave.cfg -m      

Re: [Linuxptp-users] phc2sys exists with a Connection Timed Out error

2023-05-18 Thread Bernie Elayda
We are just what is using what is there in the source code for phc2sys. the code in question is in the sysoff.c file: 44 static int sysoff_precise(int fd, int64_t *result, uint64_t *ts) 45 { 46 struct ptp_sys_offset_precise pso; 47 memset(&pso, 0, sizeof(pso)); 48 if (

Re: [Linuxptp-users] phc2sys exists with a Connection Timed Out error

2023-05-18 Thread Jacob Keller
On 5/18/2023 3:16 PM, Bernie Elayda wrote: > And more detail on the Ethernet driver used on our NUC(duplicating previous > info for completeness, too) > > Ubutnu 18.04 with kernel 5.4.0-generic > System-manufacturer : Intel(R) Client Systems > System-product-name : NUC10i7FNH > Bios-release-

Re: [Linuxptp-users] phc2sys exists with a Connection Timed Out error

2023-05-18 Thread Bernie Elayda
This is probably more useful than just 'intel NUC i7':: System-manufacturer : Intel(R) Client Systems System-product-name : NUC10i7FNH Bios-release-date : 04/09/2021 Bios-version : FNCML357.0052.2021.0409.1144 Let me know if you need more detailed info. regards,bernardo On Thu, May 18, 2023

Re: [Linuxptp-users] phc2sys exists with a Connection Timed Out error

2023-05-18 Thread Bernie Gmail
an Intel i7 NUC running Ubutnu 18.04 with kernel 5.4.0-generic Sent from fruit phone > On May 18, 2023, at 10:20 AM, Jacob Keller wrote: > >  > >> On 5/18/2023 9:14 AM, Bernie Elayda wrote: >> Hello, I have an update. I obtained the HEAD for linuxptp yesterday and >> re-ran my setup. Unfort

Re: [Linuxptp-users] phc2sys exists with a Connection Timed Out error

2023-05-18 Thread Jacob Keller
On 5/18/2023 9:14 AM, Bernie Elayda wrote: > Hello, I have an update. I obtained the HEAD for linuxptp yesterday and > re-ran my setup. Unfortunately, phc2sys failed again with a Connection > timed out: > > phc2sys[470789.265]: CLOCK_REALTIME phc offset -63 s2 freq -9645 > delay 0

Re: [Linuxptp-users] phc2sys exists with a Connection Timed Out error

2023-05-18 Thread Bernie Elayda
Hello, I have an update. I obtained the HEAD for linuxptp yesterday and re-ran my setup. Unfortunately, phc2sys failed again with a Connection timed out: phc2sys[470789.265]: CLOCK_REALTIME phc offset -63 s2 freq -9645 delay 0 phc2sys[470790.265]: CLOCK_REALTIME phc offset -797

Re: [Linuxptp-users] phc2sys exists with a Connection Timed Out error

2023-05-17 Thread Bernie Gmail
Thank you! We have the HEAD and re-running our test overnight. Will report back on our results tomorrow regards,bernardo Sent from fruit phone > On May 17, 2023, at 3:24 AM, Miroslav Lichvar wrote: > > On Fri, May 12, 2023 at 04:28:40PM -0700, Bernie Elayda wrote: >> phc2sys will stop but p

Re: [Linuxptp-users] phc2sys exists with a Connection Timed Out error

2023-05-17 Thread Miroslav Lichvar
On Fri, May 12, 2023 at 04:28:40PM -0700, Bernie Elayda wrote: > phc2sys will stop but ptp4l will continue to run. This error appears to > originate from the sysoff_precise function;Doesn't this error just mean > when attempting to read PTP_SYS_OFFSET_PRECISE the kernel was just busy? > Wouldn't i

[Linuxptp-users] phc2sys exists with a Connection Timed Out error

2023-05-12 Thread Bernie Elayda
Hello, We are using linuxtptp 3.1.1 on an Intel i7 NUC running Ubutnu 18.04 with kernel 5.4.0-generic.. We have linuxptp running on the Intel NUC configured as an OC. Our grandmaster is a 3rd party device. This is all running on a stand-alone network dedicated to PTP. Every few hours, our phc2sys

[Linuxptp-users] phc2sys struck on "waiting for ptp4l"

2022-07-12 Thread ramesh t via Linuxptp-users
Hello, Have connected Server to a switch. The switch act as a Boundary clock and provides timing to the server using ptp. On the server, we are running ptp4l and phc2sys process. As part of testing, we are doing disable and enable of PTP on the switch.  Sometimes we are observing phc2sys proces

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-30 Thread Miroslav Lichvar
On Wed, Mar 30, 2022 at 01:41:18AM +0300, Vladimir Oltean wrote: > I think your comparison between NTP and PTP is a bit flawed because they > serve different purposes, PTP being there for 'precise' synchronization > rather than following the time of day. I don't think they are that different. But

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-29 Thread Vladimir Oltean
Hi Miroslav, On Tue, Mar 29, 2022 at 09:10:59AM +0200, Miroslav Lichvar wrote: > On Fri, Mar 25, 2022 at 02:45:04AM +0200, Vladimir Oltean wrote: > > In general, we all seem to agree that the initial PTP time is largely > > irrelevant until you start looking at it for some particular reason > > (d

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-29 Thread Chris Caudle
> In the Master I didn't use phc2sys in my first tests, > and I was getting -300ms latency values between > the two setups. That is a different issue than first described. I was referring to the problem of the date from the master being set to 2018 rather than the current date. I do not remember

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-29 Thread Miroslav Lichvar
On Fri, Mar 25, 2022 at 02:45:04AM +0200, Vladimir Oltean wrote: > In general, we all seem to agree that the initial PTP time is largely > irrelevant until you start looking at it for some particular reason > (debugging). Or at least, almost everyone seems to agree. I remember > Miroslav Lichvar ar

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-28 Thread Keller, Jacob E
> -Original Message- > From: Vladimir Oltean > Sent: Thursday, March 24, 2022 6:13 PM > To: Keller, Jacob E > Cc: ch...@chriscaudle.org; linuxptp-users@lists.sourceforge.net > Subject: Re: [Linuxptp-users] phc2sys not synchr. to right time and date > > On Fr

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-26 Thread Richard Cochran
On Sat, Mar 26, 2022 at 10:25:43AM +, Federico Murciano wrote: > Do you have concrete instrucctions that I could try in master and > slave in order to correct this? Do you think it is possible that due > to the setups where I just plug in the device to electricity and > other setup that is plu

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-26 Thread Federico Murciano
ted Artificial Intelligence Laboratory Chief Executive Director: Prof. Dr. Dr. h.c. Sahin Albayrak Von: Chris Caudle <6807.ch...@pop.powweb.com> Gesendet: Donnerstag, 24. März 2022 21:04 An: linuxptp-users@lists.sourceforge.net Betreff: Re: [Linuxpt

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Vladimir Oltean
acob E > > > Cc: ch...@chriscaudle.org; linuxptp-users@lists.sourceforge.net > > > Subject: Re: [Linuxptp-users] phc2sys not synchr. to right time and date > > > > > > On Fri, Mar 25, 2022 at 12:27:53AM +, Keller, Jacob E wrote: > > > > > (

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Vladimir Oltean
On Fri, Mar 25, 2022 at 12:52:02AM +, Keller, Jacob E wrote: > > -Original Message- > > From: Vladimir Oltean > > Sent: Thursday, March 24, 2022 5:45 PM > > To: Keller, Jacob E > > Cc: ch...@chriscaudle.org; linuxptp-users@lists.sourceforge.net &g

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Keller, Jacob E
> -Original Message- > From: Vladimir Oltean > Sent: Thursday, March 24, 2022 5:45 PM > To: Keller, Jacob E > Cc: ch...@chriscaudle.org; linuxptp-users@lists.sourceforge.net > Subject: Re: [Linuxptp-users] phc2sys not synchr. to right time and date > > On Fr

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Vladimir Oltean
On Fri, Mar 25, 2022 at 12:27:53AM +, Keller, Jacob E wrote: > > (there might be other reasons why his setup is working, but) > > Some kernel Ethernet drivers have a bad habit of writing the current > > (UTC) system time (derived from the battery-backed RTC) into the PHC > > current (TAI) time

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Keller, Jacob E
> -Original Message- > From: Vladimir Oltean > Sent: Thursday, March 24, 2022 11:10 AM > To: ch...@chriscaudle.org > Cc: linuxptp-users@lists.sourceforge.net > Subject: Re: [Linuxptp-users] phc2sys not synchr. to right time and date > > On Thu, Mar 24, 2022 at

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Keller, Jacob E
> -Original Message- > From: Federico Murciano > Sent: Thursday, March 24, 2022 3:02 AM > To: Keller, Jacob E ; linuxptp- > us...@lists.sourceforge.net > Cc: Sebastian Peters > Subject: AW: phc2sys not synchr. to right time and date > > Hi Jacob, > > Thank you for your answer. That i

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Chris Caudle
> I can also see in the Master devices this difference in its clocks: > from 32 seconds to 31 in the RTC time: > I did hwclock -w and still get this values None of that has anything to do with the PTP hardware clock (PHC) in the network controller. The system clock runs on the system processor, th

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Federico Murciano
; Gesendet: Mittwoch, 23. März 2022 18:33 An: linuxptp-users@lists.sourceforge.net Betreff: Re: [Linuxptp-users] phc2sys not synchr. to right time and date > From: Federico Murciano > Subject: [Linuxptp-users] phc2sys not synchr. to right time and date > Message-ID: <1648054395763.43...

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Federico Murciano
ctor: Prof. Dr. Dr. h.c. Sahin Albayrak Von: Vladimir Oltean Gesendet: Donnerstag, 24. März 2022 19:09 An: ch...@chriscaudle.org Cc: linuxptp-users@lists.sourceforge.net Betreff: Re: [Linuxptp-users] phc2sys not synchr. to right time and date On Thu, Mar 24,

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Vladimir Oltean
On Thu, Mar 24, 2022 at 09:14:08AM -0500, Chris Caudle wrote: > On Thu, March 24, 2022 5:02 am, > linuxptp-users-requ...@lists.sourceforge.net wrote: > > From: Federico Murciano > > Subject: Re: [Linuxptp-users] phc2sys not synchr. to right time and > > date > >

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Chris Caudle
On Thu, March 24, 2022 5:02 am, linuxptp-users-requ...@lists.sourceforge.net wrote: > From: Federico Murciano > Subject: Re: [Linuxptp-users] phc2sys not synchr. to right time and > date > Message-ID: <1648115598945.22...@dai-labor.de> > Thank you for your answer. Yes

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Federico Murciano
, Jacob E Mi 23.03.2022 18:39 -Original Message- From: Federico Murciano Sent: Wednesday, March 23, 2022 10:13 AM To: linuxptp-users@lists.sourceforge.net Cc: Sebastian Peters Subject: Re: [Linuxptp-users] phc2sys Federico Murciano Mi 23.03.2022 18:15 Hey agai, I also tried using

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-24 Thread Federico Murciano
; Gesendet: Mittwoch, 23. März 2022 18:33 An: linuxptp-users@lists.sourceforge.net Betreff: Re: [Linuxptp-users] phc2sys not synchr. to right time and date > From: Federico Murciano > Subject: [Linuxptp-users] phc2sys not synchr. to right time and date > Message-ID: <1648054395763.43...

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-23 Thread Chris Caudle
> From: Federico Murciano > Subject: [Linuxptp-users] phc2sys not synchr. to right time and date > Message-ID: <1648054395763.43...@dai-labor.de> > sudo phc2sys -s enp0s31f6 -O 0 -m That is on the slave computer? What is the phc2sys options and output messages on the maste

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-23 Thread Keller, Jacob E
> -Original Message- > From: Federico Murciano > Sent: Wednesday, March 23, 2022 10:13 AM > To: linuxptp-users@lists.sourceforge.net > Cc: Sebastian Peters > Subject: Re: [Linuxptp-users] phc2sys not synchr. to right time and date > > edge2@

Re: [Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-23 Thread Federico Murciano
yrak Von: Federico Murciano Gesendet: Mittwoch, 23. März 2022 17:53 An: linuxptp-users@lists.sourceforge.net Cc: Sebastian Peters Betreff: [Linuxptp-users] phc2sys not synchr. to right time and date Hello everyone, I am trying to sync different Ubuntu computers to the ptp ma

[Linuxptp-users] phc2sys not synchr. to right time and date

2022-03-23 Thread Federico Murciano
Hello everyone, I am trying to sync different Ubuntu computers to the ptp master clock from another device connected to each of them. The setup is very easy: Ubuntu Laptop as Slave <-> Ubuntu device with GPS signal as Master The problem is that for one system, everything is working right, b

[Linuxptp-users] phc2sys offset problem

2021-11-24 Thread Federico Murciano
Hey everyone, I have been trying for a while to set up my master-slave PTP sync but in the slave I can see an offset. When I ask for the date in the slave and the master they have around 36 seconds difference. If I do not run this command after synchronizing with ptp4l, the slave is 36 secon

[Linuxptp-users] phc2sys S1 phase

2021-11-22 Thread ramesh t via Linuxptp-users
hi, phc2sys has 3 phases 1) unlock (s0, SERVO_UNLOCKED  2) time-sync (s1, SERVO_JUMP) 3) freq-sync (s2, SERVO_LOCKED) Based on the log capture below: Nov 10 03:49:05 phc2sys: [21956.824] CLOCK_REALTIME phc offset         8 s2 freq   +9775 delay   2252 Nov  4 12:50:40 ptp4l: [21957.406] rms    3

Re: [Linuxptp-users] phc2sys: why set CLOCK_TAI offset only when UTC offset is traceable?

2021-11-08 Thread Vladimir Oltean
On Mon, Nov 08, 2021 at 06:44:28AM -0800, Richard Cochran wrote: > On Sun, Nov 07, 2021 at 04:22:52PM +0200, Vladimir Oltean wrote: > > On Sun, Nov 07, 2021 at 04:19:55PM +0200, Vladimir Oltean wrote: > > > On Sun, Nov 07, 2021 at 05:55:43AM -0800, Richard Cochran wrote: > > > > On Sun, Nov 07, 202

Re: [Linuxptp-users] phc2sys: why set CLOCK_TAI offset only when UTC offset is traceable?

2021-11-08 Thread Richard Cochran
On Sun, Nov 07, 2021 at 04:22:52PM +0200, Vladimir Oltean wrote: > On Sun, Nov 07, 2021 at 04:19:55PM +0200, Vladimir Oltean wrote: > > On Sun, Nov 07, 2021 at 05:55:43AM -0800, Richard Cochran wrote: > > > On Sun, Nov 07, 2021 at 01:32:59PM +0200, Vladimir Oltean wrote: > > > > 1. ptp4l in the rol

Re: [Linuxptp-users] phc2sys: why set CLOCK_TAI offset only when UTC offset is traceable?

2021-11-07 Thread Vladimir Oltean
On Sun, Nov 07, 2021 at 04:19:55PM +0200, Vladimir Oltean wrote: > On Sun, Nov 07, 2021 at 05:55:43AM -0800, Richard Cochran wrote: > > On Sun, Nov 07, 2021 at 01:32:59PM +0200, Vladimir Oltean wrote: > > > 1. ptp4l in the role of a GM appears to listen for GRANDMASTER_SETTINGS_NP > > >PTP mana

Re: [Linuxptp-users] phc2sys: why set CLOCK_TAI offset only when UTC offset is traceable?

2021-11-07 Thread Vladimir Oltean
On Sun, Nov 07, 2021 at 05:55:43AM -0800, Richard Cochran wrote: > On Sun, Nov 07, 2021 at 01:32:59PM +0200, Vladimir Oltean wrote: > > 1. ptp4l in the role of a GM appears to listen for GRANDMASTER_SETTINGS_NP > >PTP management messages on the local r/w UDS socket and that's how it > >upda

Re: [Linuxptp-users] phc2sys: why set CLOCK_TAI offset only when UTC offset is traceable?

2021-11-07 Thread Richard Cochran
On Sun, Nov 07, 2021 at 01:32:59PM +0200, Vladimir Oltean wrote: > 1. ptp4l in the role of a GM appears to listen for GRANDMASTER_SETTINGS_NP >PTP management messages on the local r/w UDS socket and that's how it >updates its ANNOUNCE message contents. Who is supposed to construct and >

[Linuxptp-users] phc2sys: why set CLOCK_TAI offset only when UTC offset is traceable?

2021-11-07 Thread Vladimir Oltean
phc2sys sets the CLOCK_TAI offset of the kernel since commit commit fefd5b4b05039ea0a0770291b12b0eb931079970 Author: Miroslav Lichvar Date: Wed Jun 18 15:44:49 2014 +0200 Set TAI offset of system clock. When synchronizing the system clock and the PTP UTC offset is valid and tracea

Re: [Linuxptp-users] phc2sys quick start

2021-08-19 Thread Keller, Jacob E
> -Original Message- > From: JP > Sent: Thursday, August 19, 2021 6:51 AM > To: linuxptp-users@lists.sourceforge.net > Subject: [Linuxptp-users] phc2sys quick start > > Hi, > > Apologies if this has been asked before. > > I'm trying to get phc2

[Linuxptp-users] phc2sys quick start

2021-08-19 Thread JP
Hi, Apologies if this has been asked before. I'm trying to get phc2sys to sync CLOCK_REALTIME to a NIC as quickly as possible.  The best I can achieve is something between 50-100ms. After some experimentation I have come up with this incantation:     phc2sys -s interface_name

[Linuxptp-users] phc2sys

2021-05-19 Thread Coughlin, David S
We are running ptp4l on our grandmaster clock. It has a ptp device, which the kernel identifies, which is not attached to a particular interface device. We use an upstream ICD-GPS-153 receiver to provide 1PPS and timestamps. I wrote some code for ts2phc to interface with this device. It beha

Re: [Linuxptp-users] phc2sys jump into huge value

2021-05-01 Thread ramesh t via Linuxptp-users
hi Jake, Thanks for your response. Not sure I follow here. You mean BC as in the boundary clock you're connected to? >> Yes. You could possibly filter or average the delay to remove outliers, but I am not sure how this impacts things. Other experts on this list are probably better to answer that.

Re: [Linuxptp-users] phc2sys jump into huge value

2021-04-29 Thread Jacob Keller
On 4/29/2021 8:04 AM, ramesh t wrote: > hello Jake, > > Did time profiling using time ticks.  > Under the problem condition, observing clock_gettime of interface > connected to BC is taking more time ticks. This results in phc offset > jumping to 4 digit value momentarily. Also i'm not sure if r

Re: [Linuxptp-users] phc2sys jump into huge value

2021-04-29 Thread Jacob Keller
On 4/28/2021 7:00 PM, ramesh t wrote: > hi Jake, > >> enp104s0f1 phc offset         3 s2 freq  -11417 delay   3568 >> enp104s0f1 phc offset     -4973 s2 freq  -16393 delay  19341* <<> enp104s0f1 phc offset      4977 s2 freq   -7934 delay   3594* >> enp104s0f1 phc offset      1471 s2 freq   -

Re: [Linuxptp-users] phc2sys jump into huge value

2021-04-29 Thread ramesh t via Linuxptp-users
hi Richard, We have core pinned the ptp4l and phc2sys process to run on non system cores. Do think chrt is required? Please suggest. Thanks for your support. Regards,Ramesh On Thursday, April 29, 2021, 08:45:26 PM GMT+5:30, Richard Cochran wrote: On Thu, Apr 29, 2021 at 03:04:07PM +000

Re: [Linuxptp-users] phc2sys jump into huge value

2021-04-29 Thread Richard Cochran
On Thu, Apr 29, 2021 at 03:04:07PM +, ramesh t via Linuxptp-users wrote: > Did time profiling using time ticks. Under the problem condition, > observing clock_gettime of interface connected to BC is taking more > time ticks. This results in phc offset jumping to 4 digit value > momentarily. Al

Re: [Linuxptp-users] phc2sys jump into huge value

2021-04-29 Thread ramesh t via Linuxptp-users
hello Jake, Did time profiling using time ticks. Under the problem condition, observing clock_gettime of interface connected to BC is taking more time ticks. This results in phc offset jumping to 4 digit value momentarily. Also i'm not sure if reading across numa is triggering this issue. Pleas

Re: [Linuxptp-users] phc2sys jump into huge value

2021-04-28 Thread ramesh t via Linuxptp-users
hi Jake, > enp104s0f1 phc offset         3 s2 freq  -11417 delay   3568 > enp104s0f1 phc offset     -4973 s2 freq  -16393 delay  19341* << > enp104s0f1 phc offset      4977 s2 freq   -7934 delay   3594* > enp104s0f1 phc offset      1471 s2 freq   -9947 delay   3591* > enp104s0f1 phc offset   

Re: [Linuxptp-users] phc2sys jump into huge value

2021-04-28 Thread Jacob Keller
On 4/28/2021 12:01 AM, ramesh t via Linuxptp-users wrote: > hi, > > In our system, we have 3-4 ptp4l services running as master (C1 mode) > providing clock to external device. Our system is synced using ptp > support/slave connected to a BC. From the synced slave/support > interface, phc2sys is

[Linuxptp-users] phc2sys jump into huge value

2021-04-28 Thread ramesh t via Linuxptp-users
hi, In our system, we have 3-4 ptp4l services running as master (C1 mode) providing clock to external device. Our system is synced using ptp support/slave connected to a BC. From the synced slave/support interface, phc2sys is used to sync master interface. All the master and slave ptp4l and phc2

Re: [Linuxptp-users] phc2sys phc offset jump observed on remote end restart

2021-03-23 Thread ramesh t via Linuxptp-users
hi Richard, Email in sent folder seems to be fine. But the email received seems to have become unreadable. I'm re-attaching the email below. I hope this looks fine. Also, have attached same as text file. Regards,Ramesh hello,  Have a testline where ptp4l application is running as master on a ser

Re: [Linuxptp-users] phc2sys phc offset jump observed on remote end restart

2021-03-23 Thread Richard Cochran
On Tue, Mar 23, 2021 at 05:33:39PM +, ramesh t via Linuxptp-users wrote: > hello, > Please suggest. Your mailer has totally mangled the logs, making them unreadable. Fix that, and then maybe somebody will respond. Thanks, Richard > Regards,Ramesh > On Tuesday, March 23, 2021, 02:23:06

Re: [Linuxptp-users] phc2sys phc offset jump observed on remote end restart

2021-03-23 Thread ramesh t via Linuxptp-users
hello, Please suggest. Regards,Ramesh On Tuesday, March 23, 2021, 02:23:06 PM GMT+5:30, ramesh t via Linuxptp-users wrote: hello, Have a testline where ptp4l application is running as master on a server and is connected to remote end running ptp as support/slave unit. When the remote e

[Linuxptp-users] phc2sys phc offset jump observed on remote end restart

2021-03-23 Thread ramesh t via Linuxptp-users
hello, Have a testline where ptp4l application is running as master on a server and is connected to remote end running ptp as support/slave unit. When the remote end application is restarted, the interface between ptp master and support/slave ptp is going down. This is resulting in phc2sys jumpin

Re: [Linuxptp-users] Phc2sys offset issue

2021-01-18 Thread Richard Cochran
On Mon, Jan 18, 2021 at 08:08:58PM +0100, Maheen Iqbal wrote: > Thanks a lot. Is it possible to reduce the offset of the phc2sys. Probably not, unless you want to buy special hardware. Sorry, Richard ___ Linuxptp-users mailing list Linuxptp-users@list

Re: [Linuxptp-users] Phc2sys offset issue

2021-01-18 Thread Maheen Iqbal
Hi, Thanks a lot. Is it possible to reduce the offset of the phc2sys. -Maheen On Sun, Jan 17, 2021 at 10:24 PM Richard Cochran wrote: > On Sun, Jan 17, 2021 at 04:51:19PM +0100, Maheen Iqbal wrote: > > ptp4l[7405.869]: rms 19 max 27 freq -95696 +/- 18 delay -1 +/- 0 > > ptp4l[7406.869]: rms 18

Re: [Linuxptp-users] Phc2sys offset issue

2021-01-17 Thread Richard Cochran
On Sun, Jan 17, 2021 at 04:51:19PM +0100, Maheen Iqbal wrote: > ptp4l[7405.869]: rms 19 max 27 freq -95696 +/- 18 delay -1 +/- 0 > ptp4l[7406.869]: rms 18 max 29 freq -95715 +/- 13 delay 1 +/- 0 > but when I am running the phc2sys with the below mentioned command the > offset is around 3 to 4 dig

[Linuxptp-users] Phc2sys offset issue

2021-01-17 Thread Maheen Iqbal
Hi, I synchronized the ptp clock with the below mentioned command and it seems that it is synchronized sudo /usr/sbin/ptp4l -m -f /etc/linuxptp/ptp4l.conf_as_final ptp4l[7344.881]: selected /dev/ptp0 as PTP clock ptp4l[7344.920]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[7344.952]:

Re: [Linuxptp-users] Phc2sys Offset and Frequency Explodes Periodically

2021-01-14 Thread Jacob Keller
On 1/14/2021 11:30 AM, Ankur Sharma wrote: > Hi Jacob, Linux PTP members, > > We saw that we have an e1000e module installed on the systems where we > are seeing phc2sys offset spikes. > The device you listed is using the igb driver module, not e1000e. > _Output of *lsmod | grep ptp*_ > ptp  

Re: [Linuxptp-users] Phc2sys Offset and Frequency Explodes Periodically

2021-01-14 Thread Ankur Sharma
Hi Jacob, Linux PTP members, We saw that we have an e1000e module installed on the systems where we are seeing phc2sys offset spikes. *Output of lsmod | grep ptp* ptp19231 7 igb,e1000e,mlx4_en,mlx5_core We tried to create the setup in our lab with the above kernel and OS ver

Re: [Linuxptp-users] Phc2sys Offset and Frequency Explodes Periodically

2021-01-07 Thread Ankur Sharma
Hi Jacob, Here are the additional details you requested: *ethtool -i eno1 OUTPUT:* driver: igb version: 5.6.0-k firmware-version: 3.25, 0x85cc expansion-rom-version: bus-info: :06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supp

Re: [Linuxptp-users] Phc2sys Offset and Frequency Explodes Periodically

2021-01-07 Thread Jacob Keller
On 1/7/2021 2:58 PM, Ankur Sharma wrote: > Hi, > > We are using PTP4L to synchronize the physical hardware clock on our > intel interface from the external PTP master. Also we are using PHC2SYS > to synchronize system clock using the Physical hardware clock on intel > interface. However, we see

[Linuxptp-users] Phc2sys Offset and Frequency Explodes Periodically

2021-01-07 Thread Ankur Sharma
Hi, We are using PTP4L to synchronize the physical hardware clock on our intel interface from the external PTP master. Also we are using PHC2SYS to synchronize system clock using the Physical hardware clock on intel interface. However, we see that the phc2sys process shows an explosion of offset a

Re: [Linuxptp-users] phc2sys with ptp_kvm and mutiport mellanox NICs

2020-07-22 Thread Hussamuddin Nasir via Linuxptp-users
Yes i can get it working with multiple instances of phc2sys, but was not sure that was the best way to move forward. Also does any one have experience using the ptp_kvm module (/dev/ptp_kvm) as a source PHC. I was looking at the latest devel linuxptp code that has a new program called "ts2phc"

Re: [Linuxptp-users] phc2sys with ptp_kvm and mutiport mellanox NICs

2020-07-21 Thread Miroslav Lichvar
On Tue, Jul 21, 2020 at 08:43:10PM -0400, nasir via Linuxptp-users wrote: > > No. I am passing in both ports to the KVM. The KVM sees three ptpt > devices. One is using  the ptp_kvm module and the other two are the > mellanox NICS. I am trying to sync the mellanox clocks using ptp_kvm > as source

Re: [Linuxptp-users] phc2sys with ptp_kvm and mutiport mellanox NICs

2020-07-21 Thread nasir via Linuxptp-users
ptp device in the command as its destination deviceSent from my Samsung Galaxy smartphone. Original message From: Jacob Keller Date: 7/21/20 7:28 PM (GMT-05:00) To: linuxptp-users@lists.sourceforge.net Subject: Re: [Linuxptp-users] phc2sys with ptp_kvm and mutiport mellanox NICs

Re: [Linuxptp-users] phc2sys with ptp_kvm and mutiport mellanox NICs

2020-07-21 Thread Jacob Keller
On 7/21/2020 3:24 PM, Hussamuddin Nasir via Linuxptp-users wrote: > Hello folks, > >  I am using Mellanox Connect X5 dual port 100G card whose PTP clock > devices (/dev/ptp0, /dev/ptp1) were synced using ptp4l and phc2sys via a > PTP Appliance. We now install a KVM on the physical host and se

[Linuxptp-users] phc2sys with ptp_kvm and mutiport mellanox NICs

2020-07-21 Thread Hussamuddin Nasir via Linuxptp-users
Hello folks,  I am using Mellanox Connect X5 dual port 100G card whose PTP clock devices (/dev/ptp0, /dev/ptp1) were synced using ptp4l and phc2sys via a PTP Appliance. We now install a KVM on the physical host and setup the Mellanox NIC as pass thru to the KVM. The KVM has the module ptp_kvm

Re: [Linuxptp-users] phc2sys with REALTIMECLOCK

2020-04-20 Thread Richard Cochran
On Mon, Apr 20, 2020 at 07:58:53AM +, Christian Leeb wrote: > - I'd rather claim that typically all clocks of a SoC are derived from > a single crystal oscillator. For our TI Sitara based HW this is certainly the > case. I can only say, well done! However, most ARM boards I've seen a

Re: [Linuxptp-users] phc2sys with REALTIMECLOCK

2020-04-20 Thread Christian Leeb
sourceforge.net; Henrik Pind ; Erdahl, Michael Subject: Re: [Linuxptp-users] phc2sys with REALTIMECLOCK CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. On Fri, Apr 17, 2020 at 0

Re: [Linuxptp-users] phc2sys with REALTIMECLOCK

2020-04-17 Thread Richard Cochran
On Fri, Apr 17, 2020 at 06:47:57AM +, Christian Leeb wrote: > ok. So far. But the CLOCK_REALTIME is not added to list of dst clocks! As a > consequence, CLOCK_REALTIME is not synced anymore. > > phc2sys[1530254.251]: eth0 phc offset-89483 s0 freq -9955 > phc2sys[1530256.350]: eth0 phc

[Linuxptp-users] phc2sys with REALTIMECLOCK

2020-04-17 Thread Christian Leeb
Hi, I have a boundary clock with ports eth0 and pru10: ptp4l config (most important params shown): [eth0] boundary_clock_jbod 1 [pru10] boundary_clock_jbod 1 GMC is connected to pru10, nothing connected to eth0. I start ptp4l and phc2sys: ptp4l -f phc2sys -arm Everything goes well: phc2sys[

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-09 Thread Keller, Jacob E
> -Original Message- > From: Richard Cochran > Sent: Friday, December 06, 2019 8:25 PM > To: Hutchinson, Brian > Cc: Keller, Jacob E ; linuxptp- > us...@lists.sourceforge.net > Subject: Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pm

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Richard Cochran
On Fri, Dec 06, 2019 at 10:22:07PM +, Hutchinson, Brian via Linuxptp-users wrote: > I've been "aware" of systemd for a long time (and the holy wars > around it) but to date have always used sysV init on embedded > devices so this is first project with systemd so I have a bit of a > learning c

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Richard Cochran
On Fri, Dec 06, 2019 at 07:58:03PM +, Hutchinson, Brian via Linuxptp-users wrote: > It all works now! You are the man!!! +1 Nice call, Jake! I was scratching my head on this one... Thanks, Richard ___ Linuxptp-users mailing list Linuxptp-user

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Hutchinson, Brian via Linuxptp-users
> -Original Message- > From: Keller, Jacob E > Sent: Friday, December 6, 2019 5:15 PM > To: Hutchinson, Brian (US) ; linuxptp- > us...@lists.sourceforge.net > Subject: RE: phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing > > > -Original Message- > > From: Hutchinso

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Keller, Jacob E
> -Original Message- > From: Hutchinson, Brian > Sent: Friday, December 06, 2019 2:04 PM > To: Keller, Jacob E ; linuxptp- > us...@lists.sourceforge.net > Subject: RE: phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing > > > -Original Message- > > From: Keller, Jacob

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Hutchinson, Brian via Linuxptp-users
> -Original Message- > From: Keller, Jacob E > Sent: Friday, December 6, 2019 4:57 PM > To: Hutchinson, Brian (US) ; linuxptp- > us...@lists.sourceforge.net > Subject: RE: phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing > > > -Original Message- > > From: Hutchinso

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Keller, Jacob E
> -Original Message- > From: Hutchinson, Brian > Sent: Friday, December 06, 2019 1:49 PM > To: Keller, Jacob E ; linuxptp- > us...@lists.sourceforge.net > Subject: RE: phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing > > > > > > Out of curiosity, what version of linuxptp

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Hutchinson, Brian via Linuxptp-users
> > Out of curiosity, what version of linuxptp are you using? it looks like the -f > option is documented on master. > > Thanks, > Jake > I started out with whatever was in Yocto Sumo (2.5) release (I think it was linuxptp 1.8) but quickly realized that it didn't support the G.8275.2 profile

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Keller, Jacob E
nal Message- > > > From: Hutchinson, Brian via Linuxptp-users > > us...@lists.sourceforge.net> > > > Sent: Friday, December 06, 2019 8:32 AM > > > To: linuxptp-users@lists.sourceforge.net > > > Subject: [Linuxptp-users] phc2sys stuck ... "Waiting for

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Keller, Jacob E
gt; > > From: Hutchinson, Brian via Linuxptp-users > > us...@lists.sourceforge.net> > > > Sent: Friday, December 06, 2019 8:32 AM > > > To: linuxptp-users@lists.sourceforge.net > > > Subject: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l...&quo

Re: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Hutchinson, Brian via Linuxptp-users
tchinson, Brian via Linuxptp-users > us...@lists.sourceforge.net> > > Sent: Friday, December 06, 2019 8:32 AM > > To: linuxptp-users@lists.sourceforge.net > > Subject: [Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and > > pmc returns nothing > &g

[Linuxptp-users] phc2sys stuck ... "Waiting for ptp4l..." and pmc returns nothing

2019-12-06 Thread Hutchinson, Brian via Linuxptp-users
Hi, So I think I have ptp4l running ok: ethtool -T eth0 Time stamping parameters for eth0: Capabilities: hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE) software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE) hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)

Re: [Linuxptp-users] phc2sys in fail status

2019-10-02 Thread ganganathr
EALTIME -c eno2 -w" [root@localhost ~]# Best Regards, Ganganath -Original Message- From: Miroslav Lichvar Sent: Wednesday, October 2, 2019 04:15 PM To: gangana...@lankabell.net Cc: linuxptp-users@lists.sourceforge.net Subject: Re: [Linuxptp-users] ph

Re: [Linuxptp-users] phc2sys in fail status

2019-10-02 Thread Miroslav Lichvar
On Wed, Oct 02, 2019 at 04:02:44PM +0530, gangana...@lankabell.net wrote: > [root@localhost /]# cat /etc/timemaster.conf > # Configuration file for timemaster > > [ptp4l.conf] > includefile /etc/ptp4l.conf Oh, I see. ptp4l doesn't support an "includefile" option. The content of /etc/ptp4l.co

  1   2   >