forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[device/celestica/x86_64-cel_silverstone-r0] Fix QSFP-DD support (#92)
* Add sysfs for XCVR interrupt event status * implement get_transceiver_change_event in sfutil of silverstone * add cmis init script * update perssion for cmis-init script * clean cmis init code * clean sfputil code * SilverStone: fix QSFPDD support Signed-off-by: Dante Su <[email protected]> * skip cmis_init if module absent, add error message upon retry timeout Signed-off-by: Dante Su <[email protected]> * Silverstone-128x100: fix the naming defect in port_config.ini Signed-off-by: Dante Su <[email protected]> * sfputil: automatically perform QSFP-DD software reset if module state != ModuleReady for 3+ seconds Signed-off-by: Dante Su <[email protected]> * sfputil: always perform a software reset upon QSFPDD module insertion * sfputil.py: add extra delays for init sequence * sfputil.py: Monitoring the QSFP-DD initialization state, and reinitiate it if necessary Signed-off-by: Dante Su <[email protected]> * sfputil.py: drop the QSFPDD software reset from the insertion event In the current implementation, the SFP change events are actually software simulated by polling the presence flags, and the INSERTION events will be be generated upon pmon restart and reboot. And hence, significant packet drops could be observed upon both pmon restart and a warm-reboot, as we'll always fire a software reset to the transceivers. i.e. It's better to drop the QSFPDD software reset from the insertion event Signed-off-by: Dante Su <[email protected]> * sfputil.py: clean up Signed-off-by: Dante Su <[email protected]> * sfputil.py: address review comments 1. Add sanity check to application advertisement decoder to prevent infinite loop 2. Create a function wrapper for module-specific CMIS init Signed-off-by: Dante Su <[email protected]> * device/celestica/x86_64-cel_silverstone-r0: drop cmis-init.sh Signed-off-by: Dante Su <[email protected]> Co-authored-by: Wirut Getbamrung <[email protected]>
- Loading branch information
Showing
3 changed files
with
455 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.