-
Notifications
You must be signed in to change notification settings - Fork 55
Update commands to gen5 #347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
This file contains hidden or 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
The loopback set function sub command loopback type is updated to follow the gen 5 spec. Added gen5 speed to list of supported loopback speeds in help message.
Set command for loopback mode RX->TX now functions correctly and does not disable itself, instead enabling correct loopback flows following the diag version of the command.
…htec-user into update-commands-to-gen5
Add the AER event generate commands in the diag library. This command allow the generation of AER events without the use of data. The existing implementation only supports the generation of error events associated with Corrected Error (CE). Modifications in diag modules (CLI and Library).
Include the inject header file for switchtec library to invoke the link inject error options.
Modify the argument -e to the tlp lcrc error injection. When user sets -e to 1, then the tlp lcrc error injection is enabled when user sets -e to 0, then the tlp lcrc error injection is disabled
Existing switchtec utility functions were implemented specifically for Gen4 switch. The command and output data formats were modified for Gen5 switches. This commit takes care of using the correct command options and the output format specific to Gen5. The switchtec utility library can determine the version (Gen5/Gen4) at run and call the version specific functions. Port Equalization commands supported under diag options are 1. port-eq-txcoeff 2. port-eq-txfslf 3. port-eq-txtable The -P (previous) equalization values are not currently supported in the Gen5 version due to firmware change requirement.
Added gen5 eye command to original eye command and added gen5 detection as part of the function. Removed gen 5 command
Renamed equalization functions to not break current API implementations by users , and retain naming structure from previous ver. Seperated gen5 versus regular function call defaulted to gen4 now uses function get_gen to determine the generation of device and then calls the appropriate function. default function is gen4 version.
This reverts commit e42fe44.
Update the loopback code to add a new function to handle gen 5 loopback seperatly due to the changes compared to gen4. Renamed types for gen5 to better reflect spec. Added checking for ensuring there is no crossover between the gen 4 / 5 arguements. Added check for only gen4 args on a gen5 system. Added arguements for the parallel option and the external option and added additional information in the help option to show the arguement supports gen 4 / gen 5.
Added support for the MRPC pattern generator and monitor set/get commands Now correctly sets the sub command ID to the correct version depending on gen or not. New command line arg with the pattern gen function for the link speed that the pattern generator command needs in the gen5 spec.
689d815 to
3304e0c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Various commands updated to support gen 5, and added support for new commands introduced in gen5.
Updated:
New: