1. 01 Dec, 2016 2 commits
  2. 03 Nov, 2016 1 commit
    • Adam Wujek's avatar
      userspace/wrsw_hal: save Diagnostic Monitoring data from SFP in HAL · 3f05b29c
      Adam Wujek authored
      Kconfig:
      --add CONFIG_READ_SFP_DIAG_ENABLE
      libwr:
      --add the function shw_sfp_update_dom to update only needed values in the future
      --increase HAL_SHMEM_VERSION due to the changes in structures
      wrs_dump_shmem
      --add new fields
      HAL:
      --read DOM (Diagnostic Monitoring data) from SFP's eeprom at plug and once
        per second
      PPSI:
      --uplift hal shmem header
      wrs_sfp_dump:
      --support reading SFP's DOM from HAL
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      3f05b29c
  3. 30 Sep, 2016 1 commit
    • 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: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      1b6788cb
  4. 30 Aug, 2016 2 commits
  5. 11 Aug, 2016 4 commits
  6. 07 Jul, 2016 3 commits
  7. 02 Mar, 2016 3 commits
  8. 24 Feb, 2016 2 commits
  9. 18 Feb, 2016 1 commit
  10. 05 Feb, 2016 4 commits
  11. 07 Jan, 2016 1 commit
  12. 11 Aug, 2015 1 commit
    • 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: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      37bdfd74
  13. 28 Jul, 2015 1 commit
  14. 24 Jul, 2015 1 commit
  15. 22 Jul, 2015 2 commits
  16. 10 Jul, 2015 3 commits
  17. 06 Jul, 2015 1 commit
  18. 30 Jun, 2015 1 commit
  19. 29 Jun, 2015 1 commit
  20. 18 Jun, 2015 2 commits
  21. 10 Apr, 2015 1 commit
    • Adam Wujek's avatar
      userspace/wrsw_hal: fix reading dotconfig · 2fa02f9f
      Adam Wujek authored
      Null is returned when there is unsuccessful read from dotconfig
      (function libwr_cfg_get). Function atoi rely on valid string passed as
      parameter. If dotconfig parameter does not exist, atoi will crash wrsw_hal.
      Added checking whether valid string is returned from libwr_cfg_get.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      2fa02f9f
  22. 04 Mar, 2015 2 commits
    • Adam Wujek's avatar
      userspace/wrsw_hal: add temperature thresholds to Kconfig · 77b50830
      Adam Wujek authored
      Added menu "Management configuration" to Kconfig with:
      -moved options from "Local Network Configuration":
       --SNMP_TRAPSINK_ADDRESS
       --SNMP_TRAP2SINK_ADDRESS
       --SNMP_RO_COMMUNITY
       --SNMP_RW_COMMUNITY
      -added threshold levels:
       --SNMP_TEMP_THOLD_FPGA
       --SNMP_TEMP_THOLD_PLL
       --SNMP_TEMP_THOLD_PSL
       --SNMP_TEMP_THOLD_PSR
      
      Update user manual.
      Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      77b50830
    • 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: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
      147e8ea5