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

Add DPU dark-mode definition for SmartSwitch PMON #1818

Closed
wants to merge 1 commit into from

Conversation

vvolam
Copy link
Contributor

@vvolam vvolam commented Sep 30, 2024

Add DPU dark-mode definition and default value

@KrisNey-MSFT
Copy link

Changes approved, @prgeor would you want to merge?

Copy link
Contributor

@prgeor prgeor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rameshraghupathy can you review?

Copy link
Contributor

@prgeor prgeor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vvolam can you elaborate the flow for honoring the flow for the graceful handling of DPU dark mode.

For dark mode to be enabled by default, platform needs to have either admin disabled by default. How is the flow handled if 'admin' disabled is missing in the config DB?

Please provide following details as to how/which context the following are done

  1. Detecting DPU needs to be in ADMIN down/UP
  2. Graceful shutdown of sonic host services on the DPU
  3. Invoking the platform API to do the admin down to be implemented by each platform vendor

@@ -74,11 +74,14 @@ The picture below highlights the PMON vertical and its association with other lo
#### Use case
* Switch: Day0 setup, Maintenance, RMA
* DPU: Day0, Day1-N Provisioning, Maintenance, RMA
#### DPU dark mode
* When a DPU is in dark mode, it remains powered down and does not consume any power.
* Dark mode is enabled by default, but can be configured through the platform's config_db if needed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be appropriate to say "When a DPU is in dark mode, it remains powered down and does not consume power"
"Dark mode is enabled by default, but the platform can be configure to boot in light up mode with one or more DPUs"

* DPU "admin_status: up" is set in the configDB. When not explicitly configured the default is "up".
* The switch PMON gets the admin up notification from the configDB
* If the DPU's "admin_status: down" in the configDB, the DPU will remain powered down. The default setting is "down".
* If the DPU "admin_status: up" is set in the configDB, the switch PMON receives an admin-up notification from the configDB.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the DPU "admin_status: up" or if "admin_status: down" is not configured in the configDB, the switch PMON receives an admin-up notification from the configDB.

Copy link
Contributor

@rameshraghupathy rameshraghupathy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prgeor Added my comments (minor) just to be precise.

@prgeor
Copy link
Contributor

prgeor commented Oct 28, 2024

@vvolam are we planning to merge this?

@vvolam
Copy link
Contributor Author

vvolam commented Oct 28, 2024

@prgeor These changes are clubbed with #1709. I am closing this PR.

@vvolam vvolam closed this Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants