Skip to content

Conversation

@BenReed161
Copy link
Collaborator

@BenReed161 BenReed161 commented May 25, 2025

Various commands updated to support gen 5, and added support for new commands introduced in gen5.

Updated:

  • loopback
  • pattern gen
  • port eq settings
  • link error injection
  • eye catpure support

New:

  • add aer event generation
  • tlp lcrc error injection

Note: add support for gen5 pattern monitor / generator commit also includes a change to add the switchtec_diag_loopback_set_gen5 function to inc/switchtec/switchtec.h

Copy link
Collaborator

@kelvin-cao kelvin-cao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit message "Modify the argument -e to the tlp lcrc error injection. ..." suggests it's not a new command. Please remove.

@BenReed161 BenReed161 force-pushed the add-update-commands-to-gen5 branch 8 times, most recently from f36ce49 to 0190760 Compare June 2, 2025 18:45
@BenReed161 BenReed161 force-pushed the add-update-commands-to-gen5 branch 7 times, most recently from a41b6c9 to 86f255e Compare June 6, 2025 19:29
Update loopback set function sub command loopback type to follow the
gen 5 spec. Add gen5 speed to list of supported loopback speeds in help
message.

Update the loopback code to add a new function to handle gen 5 loopback
seperatly due to the changes compared to gen4.

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.
@BenReed161 BenReed161 force-pushed the add-update-commands-to-gen5 branch 3 times, most recently from ef163d8 to c91898a Compare June 9, 2025 16:44
Add the AER event generate commands in the diag library. This command
allow the generation of AER events without the use of data.
Update to support additional events, (prev. only supports the
generation of error events associated with Corrected Error (CE).)
@BenReed161 BenReed161 force-pushed the add-update-commands-to-gen5 branch from c91898a to e7eb675 Compare June 10, 2025 16:29
Chetana2791 and others added 2 commits June 10, 2025 09:37
Add new link error injection commands introduced with gen5 allows the
user to inject a link error into a physical port.
List of Errors:
 - DLLP
 - DLLP CRC
 - TLP LCRC
 - TLP seq num err
 - ACK/NAK err
 - Credit timeout err

Include the inject header file for switchtec library to invoke
the link inject error options.
Add support for Gen 5 for existing port eq commands.

Port Equalization commands supported with the changes
1. port-eq-txcoeff
2. port-eq-txfslf
3. port-eq-txtable

Change port eq txfslf to print the width of the current port instead of
the negotiated link width to match tx coeff command for gen5. This
change is to match the MRPC gen5 spec.
(The -P (previous) equalization values are not currently supported in
the Gen5 version due to firmware change requirement.)
@BenReed161 BenReed161 force-pushed the add-update-commands-to-gen5 branch 3 times, most recently from 8aa009f to 5f977aa Compare June 10, 2025 17:01
@BenReed161 BenReed161 force-pushed the add-update-commands-to-gen5 branch from 5f977aa to eafd518 Compare June 10, 2025 17:24
Chetana2791 and others added 2 commits June 10, 2025 10:28
Updated eye command gen5 mrpc.

Add gen5 eye mrpc calls to original switchtec user eye command and
added gen5 detection as part of the function.

Added additional API function for calling the gen5 read functionality
for reading the status since the gen5 eye observe has no output unlike
gen4 to denote the status.
Add support for the MRPC pattern generator and monitor set/get commands.
Sets the sub command ID to the correct version depending on gen.
New command line arg with the pattern gen function for the link speed
that the pattern generator command needs in the gen5 spec.
@BenReed161 BenReed161 force-pushed the add-update-commands-to-gen5 branch from eafd518 to f91084e Compare June 10, 2025 17:28
Copy link
Collaborator

@kelvin-cao kelvin-cao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks.

@kelvin-cao kelvin-cao merged commit 7f82f0b into Microsemi:master Jun 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants