Skip to content
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

Support for reading RX_FREQUENCY_OFFSET_PPM, RX_SNR and FEC_CORRECTED_BITS with SAI #1847

Merged
merged 1 commit into from
Aug 27, 2023

Conversation

harshitgulati18
Copy link
Contributor

This change includes support for reading the following PHY layer diagnostics in SAI -

  1. RX_FREQUENCY_OFFSET_PPM - Per lane frequency offset observed at the receiver serdes

  2. RX_SNR - Per lane Signal to Noise ratio observed at the receiver serdes
Note that the units chosen (value reported as a U16 in units of 1/256dB) to represent this value in SAI is similar to how transceiver management standards like SFF-8636 and CMIS represent them.

  3. TOTAL FEC CORRECTED BITS - Represents the total bits corrected by the FEC (Forward Error Correction) as a monotonically incrementing counter. Note that SAI today has support for reading FEC Corrected codewords and symbols, but not the total corrected bits. The corrected bits counter will help in providing an accurate representation of the bit error rate on a link.

These are some useful diagnostics for debugging a link down or a link flap issue.

@harshitgulati18 harshitgulati18 marked this pull request as ready for review August 15, 2023 14:42
@harshitgulati18 harshitgulati18 force-pushed the phy_diags_aug_2023 branch 3 times, most recently from eea6da6 to 7537895 Compare August 17, 2023 05:06
Copy link
Contributor

@JaiOCP JaiOCP left a comment

Choose a reason for hiding this comment

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

Approving on behalf of Jamie Rakow (Broadcom).

@rlhui
Copy link
Collaborator

rlhui commented Aug 24, 2023

there's conflicts

@kcudnik
Copy link
Collaborator

kcudnik commented Aug 24, 2023

please fix build errors, maybe squash commit and force push will be required

@harshitgulati18 harshitgulati18 force-pushed the phy_diags_aug_2023 branch 2 times, most recently from d8ded6e to 37182af Compare August 24, 2023 23:41
Signed-off-by: harshitgulati18 <hgulati@fb.com>
@harshitgulati18
Copy link
Contributor Author

Resolved the conflicts and the build errors

@rlhui rlhui merged commit f5e1591 into opencomputeproject:master Aug 27, 2023
3 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