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

[Mellanox] Block setting the watchdog in the case that watchdog period is longer than the max period supported by the platform #18980

Merged
merged 1 commit into from
May 22, 2024

Conversation

keboliu
Copy link
Collaborator

@keboliu keboliu commented May 16, 2024

Why I did it

Currently the platform API will arm the watchdog w/o checking the required watchdog period. If the watchdog period is longer than the max period supported by the platform, it will cause issue on some specific platform.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Verify whether the required watchdog period is longer than the max period supported, if yes then return failure.

How to verify it

test with watchdog util to set the watchdog period to different values including larger than the max supported period, all case passed.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202311

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

…than the max period supported by the platform

Signed-off-by: Kebo Liu <kebol@nvidia.com>
@keboliu
Copy link
Collaborator Author

keboliu commented May 20, 2024

/azpw run ms_conflict

@mssonicbld
Copy link
Collaborator

/AzurePipelines run ms_conflict

Copy link

No pipelines are associated with this pull request.

@liat-grozovik liat-grozovik merged commit 90ade42 into sonic-net:master May 22, 2024
11 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request May 23, 2024
…d is longer than the max period supported by the platform sonic-net#18980)

- Why I did it
Currently the platform API will arm the watchdog w/o checking the required watchdog period. If the watchdog period is longer than the max period supported by the platform, it will cause issue on some specific platform.

- How I did it
Verify whether the required watchdog period is longer than the max period supported, if yes then return failure.

- How to verify it
test with watchdog util to set the watchdog period to different values including larger than the max supported period, all case passed.

Signed-off-by: Kebo Liu <kebol@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #19053

mssonicbld pushed a commit that referenced this pull request May 23, 2024
…d is longer than the max period supported by the platform #18980)

- Why I did it
Currently the platform API will arm the watchdog w/o checking the required watchdog period. If the watchdog period is longer than the max period supported by the platform, it will cause issue on some specific platform.

- How I did it
Verify whether the required watchdog period is longer than the max period supported, if yes then return failure.

- How to verify it
test with watchdog util to set the watchdog period to different values including larger than the max supported period, all case passed.

Signed-off-by: Kebo Liu <kebol@nvidia.com>
@keboliu keboliu deleted the master_fix_wd_capability branch May 24, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants