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] Update SN2201 sai profile and platform reboot script #10978

Merged
merged 3 commits into from
Jun 7, 2022

Conversation

keboliu
Copy link
Collaborator

@keboliu keboliu commented May 30, 2022

Why I did it

  1. SN2201 sai profile needs to be updated according to the latest hardware.
  2. In the reboot script, need to use the common symbol link of the power_cycle sysfs instead of directly accessing it due to SN2201 sysfs is different than other platforms.
  3. echo 1 > $SYSFS_PWR_CYCLE will trigger the reboot immediately, the following sleep 3 and echo 0 > $SYSFS_PWR_CYCLE will never be executed, can be removed.

How I did it

  1. Replace the SN2201 sai profile with the latest one.
  2. In the platform_reboot script, replace the direct sysfs path with the symbol link path.
  3. Remove the redundant code from platform_reboot

How to verify it

Perform reboot on all the Nvidia platforms, and check all can be rebooted successfully.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Link to config_db schema for YANG module changes

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

stephenxs
stephenxs previously approved these changes May 30, 2022
@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@keboliu spped in sai xml is a bitmask. can you please add a note of the bitmask and explain what this value means?

@stephenxs
Copy link
Collaborator

@keboliu spped in sai xml is a bitmask. can you please add a note of the bitmask and explain what this value means?

Hi @liat-grozovik the note is listed in the first port. but we do not repeat it in each port.

                <!-- (BITMASK) 3 - 1Gb, 28700 - 10Gb , 939524096 - 25Gb , 98368 - 40Gb , 3221225472 - 50Gb , 11534336 - 100Gb, 1024 - 10MB_T, 2048 - 100MB_TX, 131072 - 1000MB_T  -->
                <port-speed>131072</port-speed>

@keboliu
Copy link
Collaborator Author

keboliu commented Jun 1, 2022

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Kebo Liu <kebol@nvidia.com>
Signed-off-by: Kebo Liu <kebol@nvidia.com>
Signed-off-by: Kebo Liu <kebol@nvidia.com>
@liat-grozovik liat-grozovik merged commit a3895c3 into sonic-net:master Jun 7, 2022
@keboliu keboliu deleted the update_for_sn2201 branch June 8, 2022 05:28
yxieca pushed a commit that referenced this pull request Jun 9, 2022
- Why I did it
1. SN2201 sai profile needs to be updated according to the latest hardware.
2. In the reboot script, need to use the common symbol link of the power_cycle sysfs instead of directly accessing it due to SN2201 sysfs is different than other platforms.
3. echo 1 > $SYSFS_PWR_CYCLE will trigger the reboot immediately, the following sleep 3 and echo 0 > $SYSFS_PWR_CYCLE will never be executed, can be removed.

- How I did it
1. Replace the SN2201 sai profile with the latest one.
2. In the platform_reboot script, replace the direct sysfs path with the symbol link path.
3. Remove the redundant code from platform_reboot

- How to verify it
Perform reboot on all the Nvidia platforms, and check all can be rebooted successfully.

Signed-off-by: Kebo Liu <kebol@nvidia.com>
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.

5 participants