Skip to content
Snippets Groups Projects
  1. Dec 01, 2016
  2. Nov 03, 2016
    • 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: default avatarAdam Wujek <adam.wujek@cern.ch>
      3f05b29c
  3. 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
  4. Aug 30, 2016
  5. Aug 11, 2016
  6. Jul 07, 2016
  7. Mar 02, 2016
  8. Feb 18, 2016
  9. Feb 05, 2016
  10. Jan 07, 2016
  11. Jul 28, 2015
  12. Jul 24, 2015
  13. Jul 22, 2015
  14. Jul 10, 2015
  15. Jun 30, 2015
  16. Apr 10, 2015
    • 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: default avatarAdam Wujek <adam.wujek@cern.ch>
      2fa02f9f
  17. Mar 04, 2015
    • 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: default 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: default avatarAdam Wujek <adam.wujek@cern.ch>
      147e8ea5
    • Adam Wujek's avatar
      userspace/snmpd: add portSfpID, portSfpInDB and portSfpGbE · a4fecbe6
      Adam Wujek authored
      
      Add to snmp:
      -portSfpID - PN of SFP inserted into switch port
      -portSfpInDB - report if inserted SFP is in data base
      -portSfpGbE - report if inserted SFP is 1GbE, note only 1GbE are supported by
                    FPGA
      
      update wrs_dump_shmem to display portSfpInDB and portSfpGbE flags.
      Update MIB.
      Fix typo in MIB file (ppsiGrandmaterID -> ppsiGrandmasterID)
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      a4fecbe6
    • Adam Wujek's avatar
      userspace/libwr: add vendor name to sfp structure in shmem · 686f4c25
      Adam Wujek authored
      
      Update dump_shmem accordingly.
      Increment HAL_SHMEM_VERSION due to changes in shw_sfp_caldata structure.
      Still missing matching based on vendor name and part number.
      Update hal_shmem.h in ppsi
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      686f4c25
    • Adam Wujek's avatar
      userspace/libwr: replace spaces with zeros in header read from SFP · 202451db
      Adam Wujek authored
      
      Remove spaces from read SFP header
      -vendor_name
      -vendor_pn
      -vendor_serial
      
      Don't read SFP header twice at hal_port_insert_sfp in hal_port. Before header
      was read first in function shw_sfp_read_verify_header, then indirectly by
      shw_sfp_get_cal_data
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      202451db
  18. Jan 16, 2015
  19. Jan 09, 2015
    • Alessandro Rubini's avatar
      userspace/libwr: change SFP delay_[tr]x to be signed · ceca38bc
      Alessandro Rubini authored and Adam Wujek's avatar Adam Wujek committed
      
      delta_tx and delta_rx in the SFP information are differences from
      the values in the "calibration" SFP model. Thus they are signed
      not uint32_t.  Fortunately nobody used negative values so far.
      
      I also renamed the fields, to ensure the compiler would find all uses.
      
      The commit also syncs headers to ppsi, including the changes that
      happened here but were irrelevant to there.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      ceca38bc
  20. Jan 08, 2015
  21. Jan 06, 2015
    • Alessandro Rubini's avatar
      userspace/hal: bugfix: mark a port in-use after error checking · 5628e3cc
      Alessandro Rubini authored
      bug introduced in c45f9161
      
      .
      
      The new check for dotconfig params was added after setting
      port->in_use to 1.  Thus, at each loop, the hal was calling
      
         ioctl(6, SIOCGIFFLAGS, {ifr_name="", ???}) = -1 ENODEV (No such device)
      
      but that ENODEV was after a call to modprobe for the "" interface.
      Actually this command:
      
          /sbin/modprobe -q -- netdev-
      
      By means of /sbin/modprobe being the string in /proc/sys/kernel/modprobe .
      But modprobe is busybox, so over NFS we had a zillion stat() accesses
      for ld.so, uclibc.so and busybox.
      
      Thanks Adam for noting the NFS traffic increase at that commit.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      5628e3cc
  22. Jan 04, 2015
  23. Nov 28, 2014
    • Alessandro Rubini's avatar
      userspace: hal and libwr: change prototypes for exports · fdf43f19
      Alessandro Rubini authored
      
      This has no effect on the code functionality.
      
      Even if it affects libwr, this is a hal-only change.  The functions
      in libwr that the hal itself uses, now receive a pointer to ports[],
      which is thus back a static pointer within wrsw_hal/hal_ports.c.
      
      This change allows moving the RPC queries to be shared memory lookups,
      by using the ports[] pointer in the client; so both the client and
      the server can access the same shared mamory using libwr functions.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      fdf43f19