Hello,

I have been running ptp4l on various intel FPGA Arria 10 SoC
implementations, including one with the 10Gb MAC and a few with the HPS
EMAC (stmmicro 1GbE) and it's all working very well.  One issue we're
seeing is, if our A10 slave has been sync'd with a GM clock, and then that
GM goes away (power cycled or even cable disconnected/reconnected) - our
A10 ptp4l app won't resync to that same GM.  When the cable is
reconnected, ptp4l does indeed select that same GM briefly as the BMC, but
then it loses it upon announce receipt timeout expires and it never comes
back.  I tried higher thresholds for annoucereceipttimeout, but it didn't
help.  Here is a print at logging level 6 of the sequence.  It starts
synchronized then at ptp4l[1320.551] I disconnect the cable - and then
reconnect it about 15 seconds later.  

 

Any help or insight would be greatly appreciated.   

 

Thank you,

John

 

ptp4l[1288.410]: rms    9 max   18 freq -12944 +/-  12 delay   258 +/-   0

ptp4l[1292.430]: rms    8 max   18 freq -12946 +/-  10 delay   258 +/-   1

ptp4l[1296.450]: rms    8 max   19 freq -12944 +/-  11 delay   259 +/-   0

ptp4l[1300.455]: rms    8 max   18 freq -12943 +/-  11 delay   258 +/-   1

ptp4l[1304.478]: rms    8 max   15 freq -12945 +/-  11 delay   256 +/-   1

ptp4l[1308.498]: rms    9 max   20 freq -12941 +/-  12 delay   256 +/-   0

ptp4l[1312.514]: rms    9 max   15 freq -12942 +/-  12 delay   259 +/-   1

ptp4l[1316.532]: rms    7 max   17 freq -12942 +/-   9 delay   260 +/-   0

ptp4l[1320.551]: port 1: SLAVE to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES

ptp4l[1320.551]: selected best master clock d88039.fffe.d8b76f

ptp4l[1320.551]: assuming the grand master role

[ 1320.839868] stmmaceth ff800000.ethernet eth0: Link is Down

ptp4l[1320.840]: port 1: link down

ptp4l[1320.840]: port 1: MASTER to FAULTY on FAULT_DETECTED
(FT_UNSPECIFIED)

ptp4l[1320.940]: selected best master clock d88039.fffe.d8b76f

ptp4l[1320.940]: assuming the grand master role

[ 1337.840004] stmmaceth ff800000.ethernet eth0: Link is Up - 1Gbps/Full -
flow control off

ptp4l[1337.838]: port 1: link up

ptp4l[1337.926]: port 1: FAULTY to LISTENING on INIT_COMPLETE

ptp4l[1338.200]: clockcheck: clock jumped forward or running faster than
expected!

ptp4l[1340.936]: port 1: LISTENING to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES

ptp4l[1340.936]: selected best master clock d88039.fffe.d8b76f

ptp4l[1340.936]: assuming the grand master role

ptp4l[1341.238]: port 1: new foreign master 000496.fffe.9abb7f-4

ptp4l[1343.241]: selected best master clock 000496.fffe.9abb7f

ptp4l[1343.241]: running in a temporal vortex

ptp4l[1343.241]: port 1: MASTER to UNCALIBRATED on RS_SLAVE

ptp4l[1344.110]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED

ptp4l[1344.228]: rms 17456413559 max 57012408588 freq +1011056 +/- 5703716
delay   261 +/-   2

ptp4l[1345.607]: port 1: SLAVE to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES

ptp4l[1345.607]: selected best master clock d88039.fffe.d8b76f

ptp4l[1345.607]: assuming the grand master role

 

_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to