1. 27 Feb, 2017 2 commits
  2. 01 Dec, 2016 1 commit
  3. 03 Nov, 2016 1 commit
  4. 30 Sep, 2016 1 commit
    • Adam Wujek's avatar
      arch-wrs: in shmem, use pointers to structs intead of void pointers · 18b0f27d
      Adam Wujek authored
      Commit based on the commit from wrs-switch-sw described below.
      Apply changes to the arch-wrs/wrs-startup.c to follow declaration change of
      wrs_shm_alloc.
      
      userspace/libwr: in shmem, use pointers to structs intead of void pointers
      
      In shared memory functions take as parameters pinters to structures instead
      of void pointers. By this compiler will warn when wrong type of pointer is
      passed. For example when pointer to the data in shmem is passed instead of
      pointer to the header.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      18b0f27d
  5. 14 Sep, 2016 3 commits
    • Adam Wujek's avatar
      arch-wrs: check shmem consistency in wrs_shm_get_and_check · d5e619c5
      Adam Wujek authored
      Commit based on the commit from wrs-switch-sw repo described below. It does
      not have impact on PPSI, just for consistency.
      
      userspace/libwr: check shmem consistency in wrs_shm_get_and_check
      
      Check the consistency of shmem during opening with wrs_shm_get_and_check.
      It was possible that sequence number was increased during the opening, but it
      was interpreted as version error.
      
      Add defines describing different return errors.
      
      This change is backward compatible.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      d5e619c5
    • Adam Wujek's avatar
      arch-wrs: improve locking of shmem · 15076cb6
      Adam Wujek authored
      Commit based on the commit from wrs-switch-sw described below.
      
      userspace/libwr: improve locking of shmem
      
      Keep explicitly lock bit in the sequence variable as a LSB bit.
      This solution is backward compatible. The difference is only when shmem is
      lock twice. Before it was treated as unlocked, now still as a lock.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      15076cb6
    • Adam Wujek's avatar
      arch-wrs: Print error message on multiple shmem locks · 0f620301
      Adam Wujek authored
      Commit based on the commit mentioned below from wr-switch-sw repo.
      It required to add a header wrs-msg.h to support "pr_error" function.
      "pr_error" will be printed as regular error, all other pr_* are ignored.
      
      userspace/libwr: Print error message on multiple shmem locks
      
      Print error message when shmem is locked or unlocked multiple times.
      To be precise it will print error only on even locks or unlocks.
      
      Move the increment of sequence before checking the flags to simplify further
      if-conditions.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      0f620301
  6. 25 Aug, 2016 1 commit
  7. 10 Jul, 2015 1 commit
  8. 01 Jul, 2015 1 commit
  9. 26 Jun, 2015 1 commit
  10. 18 Jun, 2015 1 commit
  11. 26 Feb, 2015 2 commits
  12. 11 Feb, 2015 2 commits
  13. 05 Feb, 2015 1 commit
  14. 16 Jan, 2015 4 commits
  15. 09 Jan, 2015 1 commit
  16. 03 Jan, 2015 1 commit
  17. 18 Dec, 2014 1 commit
  18. 05 Dec, 2014 2 commits
  19. 04 Dec, 2014 2 commits
    • Alessandro Rubini's avatar
      arch-wrs: replace some RPC with shared memory access · 513151b2
      Alessandro Rubini authored
      The HAL process, in the white rabbit switch, is now exporting data
      structures in shared memory. Thus, we don't need to "get_port_state"
      by RPC, and accessing shared memory is enough.  This change in ppsi
      involves the following changes:
      
      arch-wrs/wrs-startup.c: offer global hal_ports[] for others to use
      (yes, globals are bad, I know...)
      
      arch-wrs/include/ppsi-wrs.h: provide pp_wrs_lookup_port
      
      time-wrs/wrs-socket.c: use shmem. This means some values are now
      hardwired as constants, because they were passed as such from the hal.
      
      arch-wrs/main-loop.c: verify link up or down in the shared mem status
      
      arch-wrs/wrs-calibration.c: wrs_read_calibration_data uses shmem
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      513151b2
    • Alessandro Rubini's avatar
      arch-wrs: added shmem code from libwr · dbb08dae
      Alessandro Rubini authored
      This is respinning a previous commit, based on the new shmem in libwr
      after the feedback and patches by Adam. More headers are inserted,
      as they are included by the ones we use.
      
      hal_shmem.h has one 1-line modification to account for the different
      include path in ppsi, as opposed to wr-switch-sw.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      dbb08dae
  20. 27 Nov, 2014 2 commits
  21. 11 Nov, 2014 1 commit
  22. 15 Nov, 2013 1 commit
  23. 04 Nov, 2013 4 commits
    • Alessandro Rubini's avatar
      white rabbit: locking_poll() prototype change · 38ba8fa5
      Alessandro Rubini authored
      The locking_poll operation needs to differentiate between slave
      and grandmaster mode (we use this in the wrpc to change the clock
      class, according to whether we are locked to the 10MHz or not).
      
      The WR-Switch implementation is missing at this point.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      38ba8fa5
    • Alessandro Rubini's avatar
      white rabbit: fold enable_timing_output in operations · 561ae15f
      Alessandro Rubini authored
      This is the last bit of the overhaul made by the previous commit,
      and has no technical effect. (In a perfect world, the previous commit
      would have been one per function, to easily find errors, but I had not
      enough time; this is different because it was a two-level call).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      561ae15f
    • Alessandro Rubini's avatar
      white rabbit: use wr_operations, not aliases · 48b25f3c
      Alessandro Rubini authored
      This is a massive change, but one that we needed since time 0.
      Aliases were a bad choice, while use of an operation structure shows
      better the symmetry between the two white rabbit implementations.
      But, mainly, maintainance is easier.
      
      I really needed this because I need to change one prototype, to
      add support for wrpc acting as grandmaster.
      
      There are still some asymmetries to be fixed, but the thing is
      acceptable at this point. While I was at it, I removed some
      WR_DSPORT(ppi) using a local pointer "wrp".
      
      The code after this commit is shorter by a dozen bytes or so,
      both on wrpc and wrs.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      48b25f3c
    • Alessandro Rubini's avatar
      headers: include wr-api.h in wr architectures · b71150bf
      Alessandro Rubini authored
      Currently implementations of WR functions do not include wr-api.h.  I
      need such consistency check to have compiler help in creating the
      wr_operations structures.  Anyways, files should always include its
      own header.
      
      I add wr-api.h in arch.h for laziness, so I get all files for sure.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      b71150bf
  24. 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
  25. 05 Jun, 2013 2 commits