- Dec 01, 2016
-
-
Adam Wujek authored
For port configured as none, non-wr, auto use the same orange color. Before none and auto were represented with the same color as master (yellow). Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It might happen that the reader of shmem ignores the lock, but at least shall check the version of HAL. When it is not 0 then we can be sure HAL's shmem is initialized. However, don't relay on this behaviour. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Nov 03, 2016
-
-
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 <adam.wujek@cern.ch>
-
- Sep 30, 2016
-
-
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 <adam.wujek@cern.ch>
-
- Aug 30, 2016
-
-
Adam Wujek authored
--add struct shw_sfp_header sfp_header_raw to the struct hal_port_calibration. --Increase HAL_SHMEM_VERSION to 9 due to the above --add a parameter to the wrs_sfp_dump to dump eeprom directly from the SFP or saved data from HAL Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Aug 11, 2016
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Print correct role after role matching Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Hal creates shmem before waiting for SoftPLL to lock. By this other programs waiting for HAL's shmem can start. Please note that after this fix PPSi does not create shmem before lock. It waits for HALs minipc server to be ready. Before shmem is created, read hal mode first. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jul 07, 2016
-
-
Adam Wujek authored
Postpone the printout of the fibers alpha. Alpha is known after fiber match, not after SFP match as it was before. Also print RX/TX wave lengths of SFPs. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Mar 02, 2016
-
-
- Feb 18, 2016
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Feb 05, 2016
-
-
Adam Wujek authored
HAL didn't read "fiber=" parameter of port from the dot-config Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jan 07, 2016
-
-
Adam Wujek authored
Delay bring up of wr interfaces to be able to configure VLANs first. Otherwise some network traffic can be passed befre VLANs are configured corectly. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jul 28, 2015
-
-
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jul 24, 2015
-
-
Grzegorz Daniluk authored
We need it for some copper SFPs, e.g. Cisco MGBT1
-
- Jul 22, 2015
-
-
Alessandro Rubini authored
And force the compiler to complain. It used to be on by default, bah.... Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Meanwhile, this cleans up declaration of functions that were not prototypes in wrsw_hal. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jul 10, 2015
-
-
Adam Wujek authored
hal_mode can be: --TIME_GM (Grand-Master) --TIME_FM (Free-Running Master) --TIME_BC (Boundary Clock) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Until now when SFP was removed its info stayed in HAL's shmem Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
From now, turn left LED on when link is up. Depending on the configured function LED will have the following color: --orange for port configured as non-wr --green for slave --yellow for master and other cases (like wrong configuration) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jun 30, 2015
-
-
Adam Wujek authored
Move reading of temperature sensors' tresholds from hal to snmp. Thresholds were and still are read from dot-config. update: --hal --hal_shmem header --snmpd --wr_mon --wrs_dump_shmem --uplift ppsi (update hal_shmem header) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Apr 10, 2015
-
-
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 <adam.wujek@cern.ch>
-
- Mar 04, 2015
-
-
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 <adam.wujek@cern.ch>
-
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 <adam.wujek@cern.ch>
-
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:
Adam Wujek <adam.wujek@cern.ch>
-
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:
Adam Wujek <adam.wujek@cern.ch>
-
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:
Adam Wujek <adam.wujek@cern.ch>
-
- Jan 16, 2015
-
-
Adam Wujek authored
hal_port_lookup was redundant with hal_lookup_port. File hal_shmem.c is not needed anymore. add const qualifier to name parameter of hal_lookup_port function Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Function hal_port_get_exported_state, fills structure hal_port_state with data that are not available in SHM. It just assigns defines. These defines are private to HAL, and assignment should be done in HAL. Similar problem is for wrpc. There is a wrapper function that pretends to be HAL. All HAL info should be filled in that function. Fields added: --uint32_t clock_period; --uint32_t t2_phase_transition; --uint32_t t4_phase_transition; Additionally updated wrs_dump_shmem.c to dump new fields and the version number of HAL SHM. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jan 09, 2015
-
-
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:
Alessandro Rubini <rubini@gnudd.com>
-
- Jan 08, 2015
-
-
Adam Wujek authored
Release write lock when HAL's shm is populated with correct data. Requires commit: "userspace/libwr: shmem init-time lock" Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jan 06, 2015
-
-
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:
Alessandro Rubini <rubini@gnudd.com>
-
- Jan 04, 2015
-
-
Alessandro Rubini authored
If no specific alpha is passed in configuration, we can't even know if it is positive or negative. 0 is a safe default, and it is the exact correct value for dual-fiber situations. The next commit, which adds documentation, explains the thing better. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This replicates the bevaviour of previous code, unchanged. Only, Kconfig is now used to specify the alpha for the pair of wavelengths being used. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit uses dot-config (previous commit), in exactly the same way as previous code. No change in behaviour is there, as confirmed by looking at shared memory values. As a side effect, the ports as listed in shared memory (wrs_dump_shmem) are in the right order instead of random order (this was due to use of lua's hash functions). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 28, 2014
-
-
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:
Alessandro Rubini <rubini@gnudd.com>
-