[nexthop] watchdog implementation: temporary workaround to arm 2 watchdogs - #28518
Conversation
Signed-off-by: domingo-nexthop <domingo@nexthop.ai>
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
This PR has backport request for branch(es): 202512. ---Powered by SONiC BuildBot
|
|
This PR has backport request label(s) for branch(es): msft-202512, but is missing required test information. Please make sure you tick the tested branch(es) in the Tested branch section and provide test evidence (e.g., 202512: <test result>) in the Test result section as well in your PR description. ---Powered by SONiC BuildBot
|
Signed-off-by: domingo-nexthop <domingo@nexthop.ai>
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
This PR has backport request for branch(es): 202511,202512,202605. ---Powered by SONiC BuildBot
|
|
This PR has backport request label(s) for branch(es): 202511,202605, but is missing required test information. Please make sure you tick the tested branch(es) in the Tested branch section and provide test evidence (e.g., 202511: <test result>) in the Test result section as well in your PR description. ---Powered by SONiC BuildBot
|
|
@deerao02 Can you help review and check the fix can fix the test failure we discussed? |
deerao02
left a comment
There was a problem hiding this comment.
After I applied this patch and tried on the DUT, the originally failing tests passed but it also caused some instability. The arm-cycle tests now crash the platform_api_server. The workaround might need hardening
…hdogs (#28518) * temporary workaround to arm watchdog power cycle countdown Signed-off-by: domingo-nexthop <domingo@nexthop.ai> * arm watchdog with 300 seconds instead of 360 Signed-off-by: domingo-nexthop <domingo@nexthop.ai> --------- Signed-off-by: domingo-nexthop <domingo@nexthop.ai> rebuild-source: sonic-net/sonic-buildimage#28518 @ aabecd9 [case: upstream:merged]
|
Cherry-pick PR to msft-202512: Azure/sonic-buildimage-msft#2883 |
Why I did it
This is a temporary workaround to arm hardware watchdog that triggers power cycle. The workaround is needed until full SW support of both watchdog 1 and 2.
Also updates the arm value to 300 seconds as this is what platform_tests
/test_hw_watchdog.py expects
Work item tracking
How I did it
Arm watchdog 2 by writing to
0x1d8register before arming watchdog 1.How to verify it
Arm watchdog using
watchdogutil. sonic-mgmt testtests/platform_tests/api/test_watchdog.pyWhich release branch to backport (provide reason below if selected)
Tracking issue/work item for backport/cherry-pick request (GitHub issue or Microsoft ADO):
Failure type:
Tested branch
Test result
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)