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. 25 Oct, 2016 1 commit
  3. 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
  4. 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
  5. 06 Jul, 2015 1 commit
  6. 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
  7. 07 Nov, 2014 2 commits
  8. 22 Sep, 2014 1 commit
  9. 02 Mar, 2014 2 commits
  10. 06 Nov, 2013 1 commit
  11. 04 Nov, 2013 2 commits
  12. 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
  13. 05 Oct, 2013 2 commits
  14. 11 Sep, 2013 1 commit
  15. 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
  16. 03 May, 2013 2 commits
  17. 23 Apr, 2013 4 commits
  18. 08 Apr, 2013 1 commit
  19. 02 Apr, 2013 2 commits
  20. 18 Mar, 2013 2 commits
  21. 07 Mar, 2013 1 commit
  22. 05 Mar, 2013 2 commits
  23. 04 Mar, 2013 3 commits
    • Alessandro Rubini's avatar
      general: time operations are now per-instance · 7837d938
      Alessandro Rubini authored
      This commit moves the time operations inside the instance.  It
      allows to have different time operations for each instance, which will be
      useful in the future. For example, one ethernet card may White Rabbit,
      and another may not be.
      
      This commit, like moving network operations inside ppi, requires a
      change in wrpc-sw.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      7837d938
    • Alessandro Rubini's avatar
      general: network operations are now per-instance · 82de2e3a
      Alessandro Rubini authored
      This commit moves the network operations inside the instance.  It
      allows to have different operations for each instance, which will be
      useful in the future. For example, one ethernet card may have hardware
      timestamping and another may not.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      82de2e3a
    • Alessandro Rubini's avatar
      arch-bare-*: unify common code · 4220b51a
      Alessandro Rubini authored
      This unifies all bare-linux common code. It's an out-of-context commit
      (as I'm not adding bare-arm today) but I prefer to avoid doing the same
      change twice in things that are going to change these days.
      
      BTW: this commit introduces no changes in the binary files generated,
      with the exception of a small difference between i386 and x86-64 in
      the receive buffer.  This keeps the x86-64 version but i386 was not
      working anyways (and still doesn't work).  That bug fix is in my queue,
      but I've other things to do first with ppsi.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      4220b51a
  24. 02 Mar, 2013 1 commit
    • Alessandro Rubini's avatar
      general: fix sent_seq_id in ppi structure · 493dee1e
      Alessandro Rubini authored
      The structure was separately allocated with a size of 16.  This avoids
      the alloc and makes the array the right size from the enum of message
      types. We thus a remove a number of magic "16" in the code.
      wrpc-sw must be updated too, in order to use this commit.
      
      There's still a problem: the code claims the number to be "last sent",
      but actually the value is incremented after sending. I'll need to pass
      again on this thing.
      
      ps: I changed name from "sent_seq_id" to "sent_seq" to the compiler
      complains for previous users, otherwise undetectable.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      493dee1e
  25. 28 Feb, 2013 1 commit