-
Notifications
You must be signed in to change notification settings - Fork 176
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
Comment out tx power validation check and program the passed value #389
Conversation
eeprom write function. Signed-off-by: Abhishek Dosi <[email protected]>
if tx_power > max_prog_tx_output_power or tx_power < min_prog_tx_output_power: | ||
raise ValueError('Provisioned TX power out of range. Max: %.1f; Min: %.1f dBm.' | ||
%(max_prog_tx_output_power, min_prog_tx_output_power)) | ||
#Comment out validation for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abdosi can you remove the code itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prgeor updated.
MSFT ADO: 24669442 |
@yxieca , @StormLiangMS , can you help cherry-pick this bug fix to the needed branches accordingly? |
) * Comment out power validation check and program the passed value to the eeprom write function. Signed-off-by: Abhishek Dosi <[email protected]> * Update c_cmis.py --------- Signed-off-by: Abhishek Dosi <[email protected]>
@yxieca, please let us know if this can be cherry-picked cleanly into 202205. If not, we will have to raise a 202205 specific PR for it... |
) * Comment out power validation check and program the passed value to the eeprom write function. Signed-off-by: Abhishek Dosi <[email protected]> * Update c_cmis.py --------- Signed-off-by: Abhishek Dosi <[email protected]>
@yxieca , can you also approve this for 202211 so we can mark the ADO as complete. Thanks! |
* Fixes for the following issues: - Lack of getKeys() impl in mock swsscommon table class in sonic-pcied - Fixed a 'set' bug in pcied that was uncovered by new code flows * Removed mocked table instances per prgeor review comments
* Revert "Fixes for the issues uncovered by sonic-pcied unit tests (sonic-net#389)" This reverts commit 76baca3. * Revert "Added PCIe transaction check for all peripherals on the bus (sonic-net#331)" This reverts commit d73808c. * Fixes for the issues uncovered by sonic-pcied unit tests (sonic-net#389) * Fixes for the following issues: - Lack of getKeys() impl in mock swsscommon table class in sonic-pcied - Fixed a 'set' bug in pcied that was uncovered by new code flows * Removed mocked table instances per prgeor review comments
What I did:
Comment out tx power validation check and program the passed value to eeprom write function
MSFT ADO: 17893499
Why I did:
For some of our 400G ZR optics calibrated value of tx power is not in min and max range of advertised value which causes xcvrd to crash and then links do not come up . This fix is short term solution to skip the validation check.
How I verify:
After this change not seeing xcvrd crash.