- Mar 04, 2015
-
-
Adam Wujek authored
Note threshold level is not implemented in .config. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Create new branch for temperature sensors wrsTemperature (1.3.6.1.4.1.96.100.8) 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
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Replace define I2C_SFP_H with I2C_IO_H It was not possible to include i2c_io.h and i2c_sfp.h at the same time Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
split wrsPtp from wrSwitchMIB 3 (1.3.6.1.4.1.96.100.3) into: --wrsPtpGlobals (wrSwitchMIB 6 (1.3.6.1.4.1.96.100.6)), old wrsPtpGlobals --wrsPortsTable (wrSwitchMIB 7 (1.3.6.1.4.1.96.100.7)), old wrsPtp.ptpPort rename wrsPstats into wrsPstatsTable Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
PTP related objects should be called WR-SWITCH-MIB::ptp* instead of WR-SWITCH-MIB::ppsi*. People need to know it's PTP related, not necessary that the running PTP engine is PPSi. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
To report when invalid SFP configuration is detected and actions has to be taken. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Until now snmpd and wr_mon reported mode only as master or slave. However, mode can be also non-wr or auto. changed: -wr_mon -snmp -MIB -dump_shmem Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Remove note about extra item after wrs tables (bug fixed already) Add example how to print all objects exported by wrs Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Rename portSfpID into portSfpPN, which keeps part number (like AXGE-3454-0531). Add portSfpVN to keep Vendor name (like Axcen). Add portSfpVS to keep Vendor serial number (like AX12030003038). Update MIB. 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
There is no need to report port_locked, peer_id (and later sfp info, etc.) for disabled ports. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
SFP matching is done by in order: -vendor name, part number, serial -vendor name, part number -part number If .config's entry (i.e. serial) is not empty match will happen only with specific serial. Additionally: -Change default defines in Kconfig -Update user manual with matching info -Remove entry from wrs-todo about matching SFP vendor 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>
-
Adam Wujek authored
add to snmpd and MIB: -WR-SWITCH-MIB::ppsiDeltaTxM -WR-SWITCH-MIB::ppsiDeltaRxM -WR-SWITCH-MIB::ppsiDeltaTxS -WR-SWITCH-MIB::ppsiDeltaRxS Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Update needed because wr_mon uses now shmem to get ppsi status. Note that is still uses ipc for enable/disable tracking. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Since there is no more parsing of wr_mon name field is not needed. All data are read from shmem. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
-update snmp do use ppsi's shmem -update WR-SWITCH-MIB.txt -update makefile -removed wr_mon parsing It looks like ppsi's servo state provided in servo_state_name is not current state but previous Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Double values printed by ipc with shmem to verify readings. IPC to be removed soon. No need do update snmp's part of wr_mon since it will be removed (snmp will use shmem directly). Include implementation of shmem locks for read. It was seen that phase setpoint read via shmem sometimes differs from value read via ipc. However it shmem's value is more recent. Assignment of ipc's cur_setpoint in ppsi's servo is done before setting to new value. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
dump_many_fields shall check if pointer to dump is valid. It is simpler than checking if all wrs_shm_follow were successful. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Dump entire struct wr_servo_state_t Add global_ext_data to pp_globals Remove temporary WRS_PPSI_SHMEM_VERSION Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
since this structure is included in ppsi.h Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Changes include: - lift of ppsi commit - temporarly define WRS_PPSI_SHMEM_VERSION in wrs_dump_shmem.c since dumper requires structure updates Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Now by default wrs_dump_shmem prints only valid rtu entries. To dump all use "-a" parameter. Note that rtu has 2048 htab and 4096 vlan entries. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
At the end of pstats and ppsi tables extra item was printed. 0 or null as an output from function netsnmp_extract_iterator_context shall be interpreted as no more elements instead of element 0 as it was so far. Fixed ppsi and pstats tables. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Until now, ipc client was created in HAL to check if another HAL instance is running. It has been changed to use shmem for the same purpose. To prevent error from linker, order of linking libraries had to be changed. Additionally developer manual was updated. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Update needed due to moving from rpc calls to shared memory. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Feb 19, 2015
-
-
Adam Wujek authored
Removed unused minipc calls: -check_running -reset_port -calibration_cmd Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Change waiting for shm lock. Until now, after read attempt there was usleep/sleep then check if data was read correctly. Now wait in sleep/usleep only on not consistent data read. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Using not compatible versions of shm data can produce unpredictable results. To be save always check version of shm after opening it. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
After moving from mimipc to shm, function halexp_client_init is not used. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Remove opening hal's shm in hal_client.c since it is not used further. Only caller of function halexp_client_try_connect (wr_phytool) opens shm anyway. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Read locks needed to have consistent data reads. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-