Tool/software:
Hi,
A question arose when I was trying out the TSN PTP feature on TI AM64x EVM.
On the grandmaster:
phc2sys -a -rr --transportSpecific=1 &
ptp4l -P -2 -H -i eth1 -f /root/ptp/gPTP.cfg --step_threshold=1 -m -q -p /dev/ptp0
On the slave:
phc2sys -a -r --transportSpecific=1 &
ptp4l -P -2 -H -i eth0 -s -f /root/ptp/gPTP.cfg --step_threshold=1 -m -q -p /dev/ptp0
ptp4l[235.449]: selected /dev/ptp0 as PTP clock
ptp4l[235.490]: port 1 (eth0): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[235.490]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[235.490]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[238.840]: selected local clock 641c10.fffe.24678f as best master
ptp4l[239.178]: port 1 (eth0): new foreign master 70ff76.fffe.1fe2de-1
ptp4l[241.178]: selected best master clock 70ff76.fffe.1fe2de
ptp4l[241.178]: port 1 (eth0): LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[241.820]: port 1 (eth0): UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[242.445]: rms 877146033535543168 max 1754292067071086848 freq +3697 +/- 1944 delay 35 +/- 0
ptp4l[243.446]: rms 779 max 1127 freq +6797 +/- 883 delay 34 +/- 0
ptp4l[244.446]: rms 1088 max 1144 freq +8516 +/- 295 delay 34 +/- 0
ptp4l[245.447]: rms 685 max 999 freq +8875 +/- 130 delay 34 +/- 0
ptp4l[246.447]: rms 137 max 222 freq +8148 +/- 180 delay 34 +/- 0
ptp4l[247.448]: rms 390 max 432 freq +7461 +/- 182 delay 34 +/- 0
ptp4l[248.448]: rms 365 max 442 freq +7078 +/- 31 delay 34 +/- 0
ptp4l[249.449]: rms 139 max 236 freq +7160 +/- 69 delay 34 +/- 0
ptp4l[250.449]: rms 67 max 111 freq +7196 +/- 68 delay 34 +/- 0
ptp4l[251.450]: rms 444 max 539 freq +7995 +/- 323 delay 34 +/- 0
ptp4l[252.450]: rms 580 max 744 freq +8773 +/- 122 delay 34 +/- 0
ptp4l[253.451]: rms 266 max 365 freq +7848 +/- 242 delay 34 +/- 0
ptp4l[254.453]: rms 170 max 235 freq +7718 +/- 108 delay 35 +/- 0
ptp4l[255.453]: rms 126 max 219 freq +7842 +/- 177 delay 35 +/- 0
ptp4l[256.453]: rms 227 max 255 freq +8293 +/- 67 delay 35 +/- 0
ptp4l[257.454]: rms 497 max 762 freq +8901 +/- 409 delay 35 +/- 0
ptp4l[258.454]: rms 418 max 763 freq +9271 +/- 261 delay 35 +/- 0
ptp4l[259.454]: rms 383 max 475 freq +8247 +/- 250 delay 36 +/- 0
ptp4l[260.455]: rms 640 max 765 freq +7331 +/- 227 delay 35 +/- 0
ptp4l[261.455]: rms 260 max 403 freq +7383 +/- 61 delay 35 +/- 0
ptp4l[262.456]: rms 117 max 183 freq +7405 +/- 69 delay 35 +/- 0
ptp4l[263.456]: rms 186 max 264 freq +7147 +/- 50 delay 35 +/- 0
ptp4l[264.457]: rms 389 max 494 freq +7932 +/- 327 delay 35 +/- 0
ptp4l[265.457]: rms 185 max 416 freq +7954 +/- 151 delay 35 +/- 0
ptp4l[266.458]: rms 314 max 446 freq +8382 +/- 161 delay 35 +/- 0
ptp4l[267.458]: rms 148 max 246 freq +8174 +/- 203 delay 35 +/- 0
ptp4l[268.459]: rms 179 max 357 freq +7949 +/- 218 delay 35 +/- 0
ptp4l[269.460]: rms 468 max 594 freq +7174 +/- 265 delay 35 +/- 0
ptp4l[270.462]: rms 249 max 381 freq +7101 +/- 126 delay 34 +/- 0
ptp4l[271.462]: rms 244 max 301 freq +7764 +/- 124 delay 34 +/- 0
ptp4l[272.463]: rms 182 max 316 freq +7698 +/- 233 delay 34 +/- 0
ptp4l[273.463]: rms 193 max 270 freq +7259 +/- 79 delay 35 +/- 0
ptp4l[274.464]: rms 204 max 314 freq +7091 +/- 162 delay 35 +/- 0
ptp4l[275.464]: rms 300 max 339 freq +6654 +/- 50 delay 35 +/- 0
ptp4l[276.465]: rms 151 max 235 freq +6691 +/- 125 delay 35 +/- 0
ptp4l[277.465]: rms 97 max 185 freq +6700 +/- 112 delay 35 +/- 0
ptp4l[278.466]: rms 111 max 164 freq +6537 +/- 42 delay 34 +/- 0
ptp4l[279.466]: rms 129 max 194 freq +6849 +/- 97 delay 34 +/- 0
ptp4l[280.466]: rms 118 max 250 freq +6749 +/- 165 delay 35 +/- 0
ptp4l[281.467]: rms 414 max 457 freq +7531 +/- 187 delay 35 +/- 0
ptp4l[282.468]: rms 294 max 432 freq +7747 +/- 59 delay 35 +/- 0
ptp4l[283.468]: rms 213 max 383 freq +7342 +/- 287 delay 35 +/- 0
ptp4l[284.469]: rms 340 max 397 freq +6726 +/- 58 delay 36 +/- 0
Qustion:
Does the rms offset between grandmaster and slave look reasonable? If not, how can we fix it?