Searched hist:"77 a91831" (Results 1 – 2 of 2) sorted by relevance
/openbmc/phosphor-state-manager/ |
H A D | chassis_state_manager.hpp | 77a91831 Wed May 11 11:11:03 CDT 2022 Andrew Geissler <geissonator@yahoo.com> call auto power restart when chassis power recovers
When the power status transitions from bad to good, call the Auto Power-on Restart (APR) functionality to see if the system should be automatically powered back on.
In most cases, a power issue to the system will result in the BMC losing power as well. The APR functionality already runs as a part of the BMC boot. However there are a few situations where the chassis power may need to be turned off but the BMC will continue to operate on standby power. This commit addresses that scenario, where once the chassis power can be turned back on, the BMC runs the APR logic.
This allows systems to get up and running automatically after brownout and UPS battery low issues.
Note that a change to phosphor-state-manager-systemd-links.inc is required here to make the APR service a WantedBy vs. RequiredBy relationship. Restarting a service that is required by multi-user.target restarts all the other oneshot service in multi-user.target which is not wanted here. This change will be included with the bump of this function.
Tested: - Verified system called APR when CurrentPowerStatus went from UninterruptiblePowerSupply to Good - Verified system did not power on when APR was not set to AlwaysOn - Verified system did power on when APR was set to AlwaysOn
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: If9a5e1a91eb8da6e39e021900ad07848eebbdd02
|
H A D | chassis_state_manager.cpp | 77a91831 Wed May 11 11:11:03 CDT 2022 Andrew Geissler <geissonator@yahoo.com> call auto power restart when chassis power recovers
When the power status transitions from bad to good, call the Auto Power-on Restart (APR) functionality to see if the system should be automatically powered back on.
In most cases, a power issue to the system will result in the BMC losing power as well. The APR functionality already runs as a part of the BMC boot. However there are a few situations where the chassis power may need to be turned off but the BMC will continue to operate on standby power. This commit addresses that scenario, where once the chassis power can be turned back on, the BMC runs the APR logic.
This allows systems to get up and running automatically after brownout and UPS battery low issues.
Note that a change to phosphor-state-manager-systemd-links.inc is required here to make the APR service a WantedBy vs. RequiredBy relationship. Restarting a service that is required by multi-user.target restarts all the other oneshot service in multi-user.target which is not wanted here. This change will be included with the bump of this function.
Tested: - Verified system called APR when CurrentPowerStatus went from UninterruptiblePowerSupply to Good - Verified system did not power on when APR was not set to AlwaysOn - Verified system did power on when APR was set to AlwaysOn
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: If9a5e1a91eb8da6e39e021900ad07848eebbdd02
|