• Alessandro Rubini's avatar
    wr-servo: loose track_phase when big offset · 5c5c8039
    Alessandro Rubini authored
    Even if we count failure events for SNMP (in the switch), we actually
    never generate them.  The code has always been tracking phase for
    any offset smaller than one clock tick (8ns or 16ns), but we'd better
    jump in phase (and leave TRACK_PHASE servo state) and this is a failure.
    
    With this commit, to loos track_phase in wrpc you can just force
    the setpoint far enough from the calculated one: e.g.
    
      [..] cko:2 setp:929 [...]
    
      wrc# pll sps 0 500
    
      [...]  ss:'SYNC_PHASE' [...] cko:431 setp:1367 [...]
    
    then it takes 15 iterations to converge, but that's because the
    calculations the first time (as shown) are wrong. A real glitch
    loosing track_phase would be recovered in 3 iterations.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    5c5c8039
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...