On 2018-08-02 11:35, Richard Cochran wrote:
On Thu, Aug 02, 2018 at 11:33:18AM +0800, l...@codeaurora.org wrote:
but how can we verify this issue is about the driver?
Because no other user of ptp4l has the problems you describe?
Really. Fix your driver.
I will check the driver carefully, would you please also tell me how the
abnormal frequency(204799934) calculated in Linuxptp as below log?
I print this debug info in the kernel function scaled_ppm_to_ppb(), many
thanks.
ptp4l[188.933]: clock_synchronize master offset -8 s2 freq
-7 path delay 3752
ptp4l[189.763]: bc_event received a message:9
ptp4l[189.932]: bc_event received a message:0
ptp4l[189.933]: port_syfufsm p-[ 189.935781] ********tx->freq: -60,
ppb: -1
[ 189.941048] **********kernel adjfreq get ppb: -1
syfu: 0 event :0
ptp4l[189.933]: bc_event received a message:8
ptp4l[189.933]: port_syfufsm p->syfu: 1 event :3
ptp4l[189.933]: port_synchronize t1 158731084875t2 158731088629c1
0c2 0t1c 158731084875
ptp4l[189.933]: tsproc_update_offset tsp->mode:0
ptp4l[189.933]: tsproc_update_offset t1 158731084875t2 158731088629delay
3752
ptp4l[189.933]: clock_synchronize master offset 2 s2 freq
+1 path delay 3752
ptp4l[189.943]: bc_event received a message:b
ptp4l[190.483]: bc_event received a message:9
ptp4l[190.932]: bc_event received a message:0
ptp4l[190.933]: port_syfufsm p-[ 190.935800] ********tx->freq:
204799934, ppb: 3124999
[ 190.941071] **********kernel adjfreq get ppb: 3124999
syfu: 0 event :0
ptp4l[190.933]: bc_event received a message:8
ptp4l[190.933]: port_syfufsm p->syfu: 1 event :3
ptp4l[190.933]: port_synchronize t1 159731113930t2 159533160040c1
0c2 0t1c 159731113930
ptp4l[190.933]: tsproc_update_offset tsp->mode:0
ptp4l[190.933]: tsproc_update_offset t1 159731113930t2 159533160040delay
3752
ptp4l[190.933]: clock_synchronize master offset -197957642 s2 freq
-3124999 path delay 3752
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users