Skip to content
Snippets Groups Projects
  1. Jan 21, 2025
  2. May 08, 2023
  3. Mar 31, 2020
  4. Oct 11, 2019
  5. Jun 26, 2019
    • Maciej Lipinski's avatar
      [issue #194] add facility to wrs_msg and <facility*8+priority> to output msgs · 8c9ef674
      Maciej Lipinski authored
      Logger can interpret get log facility & level (error, info, etc) from
      log message if such info is provided properly. I.e. it needs to be
      enclosed in <> and the first thing in the message. The wrs-msg.c file
      in the libwr was changed such that the log facility & level ares properly
      printed in log messages, and thus later properly interpreted by the syslog
      elastic search on the server. For this, wrs_msg lib needs to know the
      faciltiy of the application that uses it. Thus, the wrs_msg_init()
      function was updated (in the library and all its calls in applications)
      8c9ef674
  6. Dec 02, 2016
  7. Dec 01, 2016
  8. Sep 30, 2016
    • Adam Wujek's avatar
      userspace/wrsw_hal: add locking shmem on write · 1b6788cb
      Adam Wujek authored
      
      Lock HAL's shmem on write to let a reader know about potential inconsistent
      data
      
      List below indicates which functions requires a lock (marked as "UPDATE").
      minipc:
      --halexp_lock_cmd:
        --hal_port_enable_tracking - not
        --hal_port_start_lock - UPDATE
        --hal_port_check_lock - not
      --halexp_pps_cmd
        --rts_adjust_phase - not
        --shw_pps_gen_adjust - not
        --shw_pps_gen_busy - not
        --hal_port_pshifter_busy - not
        --shw_pps_gen_enable_output - not
      
      hal_port_update_all:
      --poll_rts_state - not
      --hal_port_poll_sfp:
        --shw_sfp_module_scan - not
        --hal_port_insert_sfp - UPDATE
        --hal_port_remove_sfp - UPDATE
      --hal_port_fsm - UPDATE
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      1b6788cb
  9. Aug 11, 2016
  10. Mar 02, 2016
  11. Feb 24, 2016
  12. Feb 18, 2016
  13. Feb 05, 2016
  14. Aug 11, 2015
    • Adam Wujek's avatar
      userspace/wrsw_hal: bugfix not updating temperatures in wr_mon/HAL · 37bdfd74
      Adam Wujek authored
      
      There was a problem with calculating fan timeout in libwr. Problem occurs when
      there was a jump back in time. Since gettimeofday was used, delta for timeout
      calculation became negative.
      One solution was to use monotonic clock like in main function of HAL, or use
      the same timeout calculations as main function. Second solution was chosen
      since it is much simpler.
      
      --remove calculation of fan/temperature read timeout in function
        shw_update_fans
      --remove function shw_pwm_update_timeout and variable fan_update_timeout from
        libwr/fan.c as not needed anymore
      --remove function shw_get_tics from libwr/util.c and libwr/util.h (not needed
        anymore)
      --remove SHW_FAN_UPDATETO_DEFAULT from libwr/fan.h (not needed anymore)
      --increase PORT_FAN_MS_PERIOD to 250ms (trade-off 200ms of port update and 500ms
        of temperatures update)
      --remove increasing t1 in HAL;s main, since t1 was overwritten anyway by t2.
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      37bdfd74
  15. Jul 22, 2015
  16. Jul 06, 2015
  17. Jun 29, 2015
  18. Jun 18, 2015
  19. Mar 04, 2015
    • Adam Wujek's avatar
      userspace: export temperature from sensors to HAL's shmem · 147e8ea5
      Adam Wujek authored
      
      HAL at update of fan speed reads Switch's temperature sensors.
      Sensors read:
      -FPGA
      -PLL (was read before to drive PWM for fan)
      -Power supply left
      -Power supply right
      
      Additionally:
      -add hal_temp_sensors structure to hal shmem, add current temperature and
       threshold values (to be implemented in later commits)
      -increment HAL_SHMEM_VERSION
      -update hal_shmem.h in ppsi
      -update dump_shmem with new structure, add specific type for temperature
       sensors
      -in hal_ports.c
       --rename struct wrs_shm_head *head to struct wrs_shm_head *hal_shmem_hdr
       --remove void *hal_port_shmem as not needed,
       --make struct hal_shmem_header *hal_shmem extern, defined in hal_main.c
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      147e8ea5
  20. Jan 16, 2015
  21. Jan 06, 2015
  22. Jan 04, 2015
  23. Nov 28, 2014