Skip to content
Snippets Groups Projects
  1. Mar 05, 2025
  2. Jul 09, 2024
  3. May 24, 2023
  4. Sep 23, 2021
  5. Sep 06, 2021
  6. May 20, 2019
    • Jean-Claude BAU's avatar
      [Feature:#33] Improve Calibration database syntax in dotconfig · 680ab8f4
      Jean-Claude BAU authored
      - Increase up to 18 the number of SFPs and Fibers
      - Add config parameter: CONFIG_N_SFP_ENTRIES (Number of SFP entries in
      the DB)
      - Add config parameter: CONFIG_N_FIBER_ENTRIES (Number of FIBER entries
      in the DB)
      - This 2 new parameters are used by HAL to parse the DB
      - Use the TX SFP wave length as a key to retreive the SFP entry in the
      DB
      680ab8f4
  7. Mar 20, 2018
  8. Jan 17, 2017
  9. Dec 01, 2016
  10. Nov 03, 2016
    • Paul Boven's avatar
      userspace/libwr: Fixes to make shw_write_sfp() actually write SFP eeproms · 579646e4
      Paul Boven authored and Adam Wujek's avatar Adam Wujek committed
      
      The SFP documentation "INF-8047.pdf" states:
      "The serial interface uses the 2-wire serial CMOS E2PROM protocol defined for
      the ATMEL AT24C01A/02/04 family of components."
      
      Upon reading that datasheet, some important details stand out:
      1) The eeprom can only write in pages, with pages being 8 or 16 bytes. Assuming
         the smallest device, you can only write 8 bytes at a time. To be safe, I'm
         assuming a pagesize of 8 bytes.
      
         This explains why we only saw stuff change in the first 8 bytes, I guess.
      
      2) A write needs to be preceded by the byte address which is a single byte for
         these devices, and then up to 8 (or 16) data bytes to be written at that
         location. If there are more bytes, or if the data wraps around the page
         binary, it will still only end up on the page belonging to that first
         address.
      
      3) After writing, you need to poll the eeprom to see if it has finished writing
         the byte. At the moment, I'm not doing that yet, instead I'm doing a 10ms
         wait which seems sufficient.
      
      Signed-off-by: default avatarPaul Boven <boven@jive.eu>
      Acked-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      579646e4
    • 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
    • Adam Wujek's avatar
      userspace/libwr: read temperatures from SFPs · de57d4ae
      Adam Wujek authored
      
      Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
      de57d4ae
  11. Aug 11, 2016
  12. Jul 07, 2016
  13. Apr 01, 2016
  14. Mar 02, 2016
  15. Jul 10, 2015
  16. Mar 04, 2015
  17. Jan 16, 2015
  18. 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
  19. Jan 04, 2015
  20. Nov 28, 2014
  21. Nov 19, 2014