1. 21 Nov, 2018 1 commit
    • Jean-Claude BAU's avatar
      High Accuracy - Second implementation · a45008ca
      Jean-Claude BAU authored
      This implementation does not include yet the possibility to declare 2
      exclusive instances on a same port (WR & HA)
      - Some structures are renamed with the suffix _t to make it more
      readable.
      - Some variables are renamed  to be more clear
      - Implementation of masterOnly, slaveOnly and externalPortConfiguration
      - All extension specific includes (XX-api.h) is now automatically
      included in ppsi.h and do not need to be included in other files.
      a45008ca
  2. 21 Jul, 2017 1 commit
  3. 20 Jul, 2017 1 commit
    • Sven Meier's avatar
      bmc & cleanup: fixes after the audit portings · 8633ced3
      Sven Meier authored
      The audit portings changed the timely behaviour of the ppsi which cause wrong behaviours,
      the timeout scheme was changed to only reset timeouts where needed and in all non PTP
      states. UTC offset is now fetched from the system where supported, link up/down is now
      considered in the BMC, also some state changes where cleaned up to be out of the BMC, e.g.
      state changes based on timeouts between PreMaster and Master or between Uncalibrated and Slave.
      8633ced3
  4. 25 Oct, 2016 1 commit
  5. 20 Sep, 2016 1 commit
    • Alessandro Rubini's avatar
      Support E2E build without P2P. Saves 5kB in wrpc-sw · 3542ae48
      Alessandro Rubini authored
      Here in ppsi,
      
        ./MAKEALL wrpc_defconfig wrpc_pdelay_defconfig
      
      shows a very small difference, but most pdelay code is then
      discarded by the wrpc-sw link time, due to --gc-sections.
      This is the result:
      
         laptopo% ./MAKEALL spec_defconfig spec_pdelay_defconfig
         ##### Building with 'spec_defconfig'
         /opt/lm32-gcc-4.5.3/bin/lm32-elf-ar: creating libsdbfs.a
            text    data     bss     dec     hex filename
           87688    3492    6352   97532   17cfc wrc.elf
         ##### Building with 'spec_pdelay_defconfig'
         /opt/lm32-gcc-4.5.3/bin/lm32-elf-ar: creating libsdbfs.a
            text    data     bss     dec     hex filename
           93140    3492    6360  102992   19250 wrc.elf
      
      What is missing now is the run-time choice between e2e and p2p. Later....
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      3542ae48
  6. 16 May, 2016 1 commit
    • Alessandro Rubini's avatar
      pdelay: fix init, audit frame formats · 0a50c6d3
      Alessandro Rubini authored
      This commit ensures all architectures do the proper things to work
      with either end-to-end and peer-to-peer, and all frames use the
      proper addresses
      
       * we avoid ifdef by using HAS_PTP and HAS_E2E
       * no need to -D config items in Makefile
       * wrpc now correctly sets ppg->delay_mech at startup
       * the simulator now correctly sets ppg->delay_mech at startup
       * bare archs correctly set ppg->delay_mech at startup
       * bare archs properly use one or the other multicast address
       * pp_instance_cfg->delay_mech is removed as not yet used
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      0a50c6d3
  7. 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
  8. 06 Jul, 2015 3 commits
  9. 26 Jun, 2015 1 commit
  10. 05 Dec, 2014 1 commit
    • Alessandro Rubini's avatar
      general: move buffers our of pp_instance, and make them smaller · d93b31c7
      Alessandro Rubini authored
      In order to fit all pp_instance items withing WRS shared memory,
      we need to make them a little smaller.  Thus, the tx and rx buffers
      are now allocated separately.  And, while I am at it, I make them
      smaller, because 128 bytes are more than enough for PTP with
      extensions (all frames are under 100 bytes). Given we are always
      showr of memory in wrpc-sw, this is benefical.
      
      As a side effect, clean up some out-of-memory exit paths, and fix a
      use-before-check buglet in arch-unix (no, we never go out of memory,
      but the check was wrong).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      d93b31c7
  11. 07 Nov, 2014 4 commits
  12. 22 Sep, 2014 1 commit
  13. 02 Mar, 2014 2 commits
  14. 06 Nov, 2013 1 commit
  15. 04 Nov, 2013 2 commits
  16. 16 Oct, 2013 3 commits
    • Alessandro Rubini's avatar
      general: get rid of old pp_diag_verbosity · 0bbea921
      Alessandro Rubini authored
      We are already not using "const" verbosity in wrpc-sw, which is our most
      size-constrained architecture. So remove this legacy support.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      0bbea921
    • Pietro Fezzardi's avatar
      cmdline: added "-C <config>" option · c3a762b8
      Pietro Fezzardi authored
      This option sets configuration options from command line,
      as specified in CONFIG_ITEM.
      CONFIG_ITEM must be a valid configuration string, so you'll likely
      need to quote it on the command line.
      
      The semicolon can be used as a separator, to stick several
      configuration items in the same argument.  This option can also be
      used more than once on the same command line, to set different
      parameters. If used twice to set the same parameter, the last value
      overrides previous values -- and later config files, specified with
      "-f" may override -C values.
      c3a762b8
    • Alessandro Rubini's avatar
      config: fold back config-file parsing into command line parsing · ad1297dc
      Alessandro Rubini authored
      This undoes part of the strangeness we had in configuration files. Now
      "-f" is recognized on the command line, and more than one file can be
      specified. Only if no file is found, the default one is used
      (wr-switch looks in /wrc/etc/ppsi.conf first).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      ad1297dc
  17. 05 Oct, 2013 2 commits
  18. 19 Sep, 2013 1 commit
    • Alessandro Rubini's avatar
      main loops: discard wrong application of UTC offset · e89573a3
      Alessandro Rubini authored
      We definitely need to take care of currentUtcOffset, but the current
      implementation was wrong: it only used it in modifying receive stamps,
      thus achieving completely wrong tuples.
      
      It's the receive function that must apply the utcOffset, or not,
      according to how it timestamps frames.  Similarly, it's the time
      setting functions that must use utcOffset, or not, according to whether
      the time is utc (e.g.: unix) or tai (e.g.: wr).
      
      So this just removes a wrong attempt, waiting for good stuff to be written.
      Anyways, the utcOffset reported by the master is kept in data structures
      and passed over to slaves.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e89573a3
  19. 11 Sep, 2013 1 commit
  20. 31 Jul, 2013 1 commit
    • Alessandro Rubini's avatar
      general: rephrase copyright notices (no tech effect) · 23033d8a
      Alessandro Rubini authored
      This changes all "Name Surname for CERN" to "Copyright CERN, author
      Name Surname".  This is trivial and makes no change, with a few
      expections:
      
      - all trivial Makefiles that had "for CERN" lines have now no
      attributions, as they are trivial anyways.
      
      - a few unrepresented files have not the copyright notice (especially
      ptpdump, that I wrote in 2012).
      
      - a few "for CERN" remain in subprojects, where I didn't touch anyrhing
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      23033d8a
  21. 23 May, 2013 2 commits
  22. 15 May, 2013 1 commit
  23. 03 May, 2013 2 commits
  24. 23 Apr, 2013 5 commits