Hello,
the clock jump issue occurred during real usage of our system. The clock jump occurs again in 16777 seconds in case when was the link state set down and up before.
There is no time synchronization and no manipulation with other interfaces. See reproduction steps bellow and exact log for that.
HW
TMDX654IDKEVM PROC062A with PG2.0
SW
SDK PROCESSOR-SDK-LINUX-RT-AM65X_08.06.00.47
- tisdk-default-image-am65xx-evm.wic.xz
- with phc_ctl tool from linuxptp-3.1.1 compiled on IDK
Reproduction steps
1. Fresh boot with already prepared phc_ctl tool
2. Set the interface clock near to 16777 - e.g. 16750
3. Set interface link down
4. Set interface link up
5. Check the interface clock - after 16777 the clock jumps back as in related issue.
LOGArago 2021.09 am65xx-evm ttyS2
am65xx-evm login: root
root@am65xx-evm:~# cd linuxptp-3.1.1/
root@am65xx-evm:~/linuxptp-3.1.1# ./phc_ctl eth1 set 16750
phc_ctl[39.085]: set clock time to 16750.000000000 or Thu Jan 1 04:39:10 1970
root@am65xx-evm:~/linuxptp-3.1.1# ip l set eth1 down
[ 44.625597] remoteproc remoteproc9: stopped remote processor b10a000.txpru
[ 44.625632] remoteproc remoteproc8: stopped remote processor b104000.rtu
[ 44.625645] remoteproc remoteproc7: stopped remote processor b134000.pru
[ 44.660618] net eth1: stopped
root@am65xx-evm:~/linuxptp-3.1.1# ip l set eth1 up
[ 48.544972] remoteproc remoteproc7: powering up b134000.pru
[ 48.545197] remoteproc remoteproc7: Booting fw image ti-pruss/am65x-sr2-pru0-prueth-fw.elf, size 38224
[ 48.545227] remoteproc remoteproc7: unsupported resource 5
[ 48.545258] remoteproc remoteproc7: remote processor b134000.pru is now up
[ 48.545292] remoteproc remoteproc8: powering up b104000.rtu
root@am65xx-evm:~/linuxptp-3.1.1# [ 48.545411] remoteproc remoteproc8: Booting fw image ti-pruss/am65x-sr2-rtu0-prueth-fw.elf, size 30872
[ 48.545444] remoteproc remoteproc8: remote processor b104000.rtu is now up
[ 48.545469] remoteproc remoteproc9: powering up b10a000.txpru
[ 48.545605] remoteproc remoteproc9: Booting fw image ti-pruss/am65x-sr2-txpru0-prueth-fw.elf, size 37328
[ 48.545645] remoteproc remoteproc9: remote processor b10a000.txpru is now up
[ 48.551834] net eth1: started
./phc_ctl eth1 get
phc_ctl[58.413]: clock time is 16769.329253976 or Thu Jan 1 04:39:29 1970
root@am65xx-evm:~/linuxptp-3.1.1# ./phc_ctl eth1 get
phc_ctl[71.229]: clock time is 8393.537336876 or Thu Jan 1 02:19:53 1970
Regards,
Lukas