[code sync] Merge code from sonic-net/sonic-platform-daemons:202412 to 202503#49
Merged
mssonicbld merged 2 commits intoAzure:202503from Sep 10, 2025
Merged
Conversation
Collaborator
mssonicbld
commented
Sep 10, 2025
<!-- Provide a general summary of your changes in the Title above --> #### Description <!-- Describe your changes in detail --> Skip VDM handling when the interface low power mode is on. #### Motivation and Context <!-- Why is this change required? What problem does it solve? If this pull request closes/resolves an open Issue, make sure you include the text "fixes #xxxx", "closes #xxxx" or "resolves #xxxx" here --> When the interface low power mode is on, we see following errors in the syslog: ERR pmon#xcvrd[76]: Failed to confirm VDM unfreeze status for port 63 ERR pmon#xcvrd[76]: Failed to unfreeze VDM stats in contextmanager for port 63 ERR pmon#xcvrd[76]: Failed to confirm VDM freeze status for port 63 ERR pmon#xcvrd[76]: Failed to freeze VDM stats in contextmanager for port 63 ERR pmon#xcvrd[76]: DOM-INFO-UPDATE: Failed to freeze VDM stats for port 63 ERR pmon#xcvrd[76]: Failed to confirm VDM unfreeze status for port 63 ERR pmon#xcvrd[76]: Failed to unfreeze VDM stats in contextmanager for port 63 To avoid the errors, we are skipping VDM handling when low power mode is on. To achieve this, a helper method is added to check for VDM status which is called before the VDM handling code block. #### How Has This Been Tested? 1. Turn on interface lpmode. 2. Verify that syslog has the above-mentioned errors for the interface. 3. Make the code changes in the pmon container. 4. Restart the xcvrd. 5. Once the interfaces are initialized, turn off and turn on the lpmode of the interface. 6. Check the syslog. Above-mentioned errors should not appear for the interface. 7. Check TRANSCEIVER_VDM_REAL_VALUE table of the interface. It should not update while the lpmode is on. 8. For 400ZR optics, TRANSCEIVER_PM table should not update while the lpmode is on. 9. Turn off lpmode of the interface. 10. See that TRANSCEIVER_VDM_REAL_VALUE and TRANSCEIVER_PM gets updated. This PR has been tested on 100G OSFP 8X Pluggable Transceiver and 400ZR QSFP-DD Double Density 8X Pluggable Transceiver. <!-- Please describe in detail how you tested your changes. Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code, etc. --> #### Additional Information (Optional) ADO: 32013738
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
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.