1. 01 Dec, 2016 2 commits
  2. 21 Nov, 2016 3 commits
  3. 03 Nov, 2016 1 commit
  4. 25 Oct, 2016 1 commit
  5. 20 Sep, 2016 7 commits
  6. 22 Aug, 2016 1 commit
  7. 16 Aug, 2016 1 commit
  8. 25 Jul, 2016 1 commit
  9. 16 May, 2016 11 commits
  10. 11 May, 2016 6 commits
  11. 31 Mar, 2016 1 commit
  12. 29 Feb, 2016 1 commit
    • 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
  13. 23 Nov, 2015 1 commit
  14. 09 Oct, 2015 1 commit
    • Alessandro Rubini's avatar
      wr-servo: TRACK_PHASE now monitors delays to zero it · e052a9be
      Alessandro Rubini authored
      During track-phase we used to find the setpoint and then track changes in
      the master-to-slave delay, thus not zeroing any initial error that may
      happen (e.g. the initial sample was more jittery than average).
      
      Now we use the clock offset as correction source. Setpoint is
      adjusted by 1/4th of the current offset, to smooth a little the jitter.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e052a9be
  15. 08 Oct, 2015 1 commit
    • Alessandro Rubini's avatar
      wr-servo: fix a synchronization bug · 4070caf1
      Alessandro Rubini authored
      This is likely the result of my cleanup of wr-servo, where I forgot
      some pieces.
      
      Greg collected some interesting logs in wrpc where the setpoint
      was calculated wrongly. This fixes the thing and removes some redundancy.
      
      I "git diff" order:
      
      - avoid WR_UNINITIALIZED, really unused. Do what's needed at
        wr_servo_init() time
      
      - adjust phase to 0 at init time, where s->cur_setpoint is set (we
        really should set and use in a single unified place)
      
      - set delta_ms_prev before entering TRACK_PHASE, not earlier where it
        doesn't fit
      
      - avoid extra checks of non-zero offset.seconds and
      offset.nanoseconds, because they are checked at the beginning anyways.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      4070caf1
  16. 01 Sep, 2015 1 commit
    • Alessandro Rubini's avatar
      general: cleanup prototypes · 1acf50d1
      Alessandro Rubini authored
      This adds -Wstrict-prototypes -Wmissing-prototypes and takes actions
      accordingly.
      
      Some of the solutions are ugly, especially in the bare architectures,
      but I prefer to be warned if I take dangerous paths wrt prototypes while
      writing further code.
      
      I'm upset by those two not being included in -Wall, as they used to.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      1acf50d1