- Mar 05, 2025
-
-
Adam Wujek authored
Before it was in the reverse order. Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
Adam Wujek authored
Add match reason to wrs_dump_shmem as sfp_match_flags. Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
- Jul 09, 2024
-
-
Adam Wujek authored
Please note, this commit changes the order in which options bytes are displayed. Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
Fabian Mauchle authored
Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
- May 24, 2023
-
-
Fabian Mauchle authored
-
Fabian Mauchle authored
-
- Sep 23, 2021
-
-
Adam Wujek authored
After reset of the CPU (ARM) GPIO pins are set as input. During configuration they were set to 0, which had a meaning to the i2c transfer if the last transfer before reset was not completed (e.g. by the switch restart). Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
Adam Wujek authored
The I2C transfer can be interrupted by a restart of a switch. An I2C slave is not aware about an ARM restart so it expect the continuation of the transfer. Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
- Sep 06, 2021
-
-
Adam Wujek authored
This commit reduces the size of periodic read for each SFP from 256B to 16B. Since the I2C transfer are bit-banged, this commit reduces CPU utilization if monitoring of SFPs is used (CONFIG_READ_SFP_DIAG_ENABLE). Signed-off-by:
Adam Wujek <dev_public@wujek.eu>
-
- May 20, 2019
-
-
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
-
- Mar 20, 2018
-
-
Adam Wujek authored
Based on https://ta.snia.org/higherlogic/ws/public/download/294/SFF-8472.PDF Paragraph 9.2 item 4 and 5. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jan 17, 2017
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 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>
-
- Nov 03, 2016
-
-
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:
Paul Boven <boven@jive.eu> Acked-by:
Adam Wujek <adam.wujek@cern.ch>
-
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>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Aug 11, 2016
-
-
Adam Wujek authored
To be used by a tool wrs_sfp_dump Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jul 07, 2016
-
-
Adam Wujek authored
Zero also sfp->rx_wl (not only sfp->tx_wl) when wl_txrx not found for specific SFP entry. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Apr 01, 2016
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Also be more verbosive about errors Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Mar 02, 2016
-
-
- Jul 10, 2015
-
-
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>
-
- Mar 04, 2015
-
-
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>
-
- Jan 16, 2015
-
-
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 04, 2015
-
-
Alessandro Rubini authored
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
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. However, the alpha value is not part of the SFP definition any more, but it is part of the fiber type (later commits). So it is currently hardwired in the code, matching previous config values. The data structures are slightly changed, so the version in shared memory is increased too. wrs_dump_shmem is updated at the same time and ppsi is updated to get the new headers. As a side effect, this uses calloc() instead of malloc(), and sets a sensible (though unused) value in the "flags" field of the sfp data. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 28, 2014
-
-
Alessandro Rubini authored
This is a completely automatic pass, before we start making order in this library (note: there is a missing semicolon in pps_gen.c:82 but it will be fixed in a later commit -- the bug is in the macro being called, so the missing semicolon is ok for the compiler). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 19, 2014
-
-
Alessandro Rubini authored
This commit makes no changes, as shown by "git diff -w" before committing, but blank spaces at end-of-line make my editor scream (because I'm pedanting in not pushing those to the kernel). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-