1. 05 Mar, 2019 1 commit
    • baujc's avatar
      Suppress timer PP_TO_FAULT · 765c661b
      baujc authored
      After reviewing the code with Maciej, this time-out does not seem to be
      used in a very coherent way. We decided then to remove it.
      765c661b
  2. 01 Mar, 2019 1 commit
    • baujc's avatar
      Code optimization · 25692a35
      baujc authored
      - Make externalPortConfiguration compliant with the PTP specifications
      - Optimize code for externalPortConfiguration
      - Optimize code for slaveOnly
      - Replace "CONFIG_HAS_P2P && ppi->delayMechanism==P2P" by an inline
      function
      25692a35
  3. 26 Feb, 2019 1 commit
  4. 25 Feb, 2019 1 commit
    • baujc's avatar
      Big update 2 · 515af578
      baujc authored
      . Better integrate of code optimization with PPSi Kconfig
      . PPSi Kconfig changes to simplify the code in PPSi and avoid #ifdef ..
      . Improve code optimization
      . Move some declaration in ppsi.h in other files to ligthen ppsi.h
      . Improvement of timers: global or instance dependent, dyn. allocation,
      renaming for better diagnostics, disabling allowed, ...
      . New behaviour for the PPS output generation (configurable,...)
      . Move control of the timing mode from HAL to PPSi
      . Optimization of code when a Protocol extension is not available
      . BMCA: Calculate the ebest,... only one time and then trigger all
      instances to execute the bmca state descision
      . Fix bug in the calculation of the clockIdentity to bring it into
      compliance with PTP spec 2008 document
      . Fix a bug related to Announce message received in SLAVE/UNCALIB
      . WR ext: use dynamic timer and adapt to new PPS generation
      . HA ext: Fix bug in fault injection mechanism
      515af578
  5. 06 Feb, 2019 1 commit
  6. 01 Feb, 2019 1 commit
  7. 29 Jan, 2019 3 commits
    • baujc's avatar
      Big update ... · c81db09e
      baujc authored
      - New L1Sync and PTP servo calculation (delayAsym,...)
      - Make function calls more uniforms between extensions
      - refactoring
      - Add a new state machine to enable/disable an extension and provide
      only PTP support: New timer, new hooks, ...
      - Fix bug in time format conversion
      - Code removed when an extension is not required (#ifdef XXX )
      - Align the PTP and L1Sync servo calculation (shared fct, same
      calculation,...)
      - Force only one servo running at a given time for a given instance
      - New servo reset hook : called by main loop
      - Add function to converte a time into a string
      - Force to stay in FAULTY state during 60s
      - Optimise function wrs_enable_timing_output()
      c81db09e
    • baujc's avatar
      Add possibility to remove CUSTOM profile · d456d2fd
      baujc authored
      The custom profile is usefull for the White Rabbit switch integration
      tests. It is now possible to remove it for other targets where the
      memory space is critical (nodes)
      d456d2fd
    • baujc's avatar
      Improvee detection of multiple PPSi running instances · 88d2f789
      baujc authored
      When /etc/init.d/ppsi.sh is called with the parameter 'restart', it
      happens sometimes that the restarted PPSI process detects that another
      one is running but it is not really the case. To  sove this problem, the
      PPSI process is now  checking  few times with a delay in between before
      to decide to exit.
      88d2f789
  8. 28 Jan, 2019 1 commit
    • baujc's avatar
      wrs_time_set(): Adjust seconds first · d8dfb539
      baujc authored
      When a jitter greater than 20ms is observed with peer, the seconds are
      never adjusted. The solution is then to adjust first the seconds.
      d8dfb539
  9. 25 Jan, 2019 1 commit
  10. 24 Jan, 2019 5 commits
  11. 10 Jan, 2019 1 commit
    • baujc's avatar
      Optimize unix time update in L1Sync servo · d7b4fea2
      baujc authored
      As we can get know the WR time (IRPC call) we use it instead of using
      the T4 time aproximation. Making some tests, the difference between Unix
      time and WR time is around 30us (was 20ms before with T4)
      d7b4fea2
  12. 03 Dec, 2018 2 commits
  13. 30 Nov, 2018 1 commit
  14. 29 Nov, 2018 2 commits
  15. 28 Nov, 2018 2 commits
  16. 27 Nov, 2018 5 commits
  17. 21 Nov, 2018 11 commits
    • Adam Wujek's avatar
      proto-standard/state-slave: fix warning · fd1c5d4c
      Adam Wujek authored
      Fix warning introduced in the commit:
      Implement one-step clock for HA & WR profiles
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      fd1c5d4c
    • Jean-Claude BAU's avatar
      Fix timer bugs · 88546c40
      Jean-Claude BAU authored
      - Many information were store in a common static structure (to_config).
      However depending on the PPSI instance configuration these information
      need to be stored per instance. Mainly it concerns the rand value
      (which_rand and the counter reset value). Only the timer name stay now
      in a common arrea.
      88546c40
    • Adam Wujek's avatar
      443c6dfc
    • Jean-Claude BAU's avatar
      Fix issue on Erbest computation (follow-up) · 6e033a57
      Jean-Claude BAU authored
          According to the clause 9.3.2.3, the qualification is now not
      evaluated for the ErBest foreign master.
          On ANN_RECEIPT timout, the ErBest is removed from the list of
      foreign master to avoid to jump immediately to SLAVE state
      6e033a57
    • Jean-Claude BAU's avatar
      Configuration enhancement (follow up) · 0141769d
      Jean-Claude BAU authored
          - Add new config parameters (l1SyncRxCoherencyIsRequired,...)
          - Add new profile: CUSTOM. It will be mostly used for testing
          - Fix issue on state name: "pre_master" instead of "pre-master"
      0141769d
    • Jean-Claude BAU's avatar
      Configuration enhancement · 9b169074
      Jean-Claude BAU authored
      - Add new config parameters (l1SyncRxCoherencyIsRequired,...)
      - Add new profile: CUSTOM. It will be mostly used for testing
      - Fix issue on state name: "pre_master" instead of "pre-master"
      9b169074
    • Jean-Claude BAU's avatar
      Fix issue on Erbest computation · c78f9181
      Jean-Claude BAU authored
      According to the clause 9.3.2.3, the quualification is now not evaluated
      for the ErBest foreign master.
      c78f9181
    • Jean-Claude BAU's avatar
    • Jean-Claude BAU's avatar
      Implement one-step clock for HA & WR profiles · cd3ee739
      Jean-Claude BAU authored
      The one-step clock didn't work for HA & WR profiles. This new
      implementation is based on a new hook "handle_sync" called in case of
      one-step clock mode.
      cd3ee739
    • Jean-Claude BAU's avatar
      Fix timeout issues · 2caf77d5
      Jean-Claude BAU authored
      - Fix issues introduced in last commit "Timeout management correction"
      - Code optimization
      - Protect FAULT timeout in case of timeout overload. It can append
      because the logMinDelayResponse can be changed on real-time by the
      received DELAY_RESP message
      2caf77d5
    • Jean-Claude BAU's avatar
      Fix issues with standart ptp (e2e & p2p) · ada5fb06
      Jean-Claude BAU authored
      In the ptp servo the adjustment of the time was too slow. When the
      difference of the time with the master was less than 1 second, the
      adjustment was done only with the frequency. In case if the difference
      is 0.999s, it can take a very long time to adjust the time.
      Changes made :
      - Adjust with frequency only when time difference is below 20ms
      - Check the timestamp validity before each calculation
      - Create a new function to check the timestamps and use it on all
      servos. This improve significantly the size of the code.
      - Add verification in order not to set an invalid UNIX time
      ada5fb06