Re: [Linuxptp-users] linuxptp servo can't converge

2022-09-03 Thread Hamilton Alex
I think i have found the cause. my DPLL is accessed by SPI, though frequency adjustment is only writing to one register, it takes about 1.2 seconds! so everytime after servo calculates the the ppb, it takes 1.2 seconds to make ppb change, during that time, the master offset has already shifted a l

Re: [Linuxptp-users] linuxptp servo can't converge

2022-09-02 Thread Hamilton Alex
what i have verified is: 1. Use syncE mode, so don't need to adjust frequency, use linuxptp to adjust phase offset only, everything works fine. 2. manually test frequency adjust function and it works well, let the board run in freerun mode, can manually adjust frequency and phase to make phase offs

Re: [Linuxptp-users] linuxptp servo can't converge

2022-09-02 Thread Richard Cochran
On Sat, Sep 03, 2022 at 08:09:14AM +0800, Hamilton Alex wrote: > I didn't use custom vendor linux driver, Zarlink provided steps to adjust > its DPLL frequency and I implement > it by my self. Oh, well, in that case, probably your own custom driver has a bug. Good luck, Richard ___

Re: [Linuxptp-users] linuxptp servo can't converge

2022-09-02 Thread Hamilton Alex
Hi, Richard: thanks for the help. Zarlink DPLL is widely used in many companies, so hardware itself has no issue. I didn't use custom vendor linux driver, Zarlink provided steps to adjust its DPLL frequency and I implement it by my self. the function to adjust frequency is ok, as I can let the boar

Re: [Linuxptp-users] linuxptp servo can't converge

2022-09-02 Thread Richard Cochran
On Fri, Sep 02, 2022 at 08:38:08AM +0800, Hamilton Alex wrote: > Hi, my friends: > I got an issue for linux ptp servo. my board is using zarlink DPLL, I'm not familiar with "zarlink DPLL". I guess this is using a custom vendor Linux driver? If so, your issue is likely a bug in the driver and/or