#
9a286db2 |
| 17-Jan-2024 |
Patrick Williams <patrick@stwcx.xyz> |
reduce dbus string constants
There are a large number of dbus constants scattered throughout the code that could/should be obtained from phosphor-dbus-interface values. Perform minor refactoring to
reduce dbus string constants
There are a large number of dbus constants scattered throughout the code that could/should be obtained from phosphor-dbus-interface values. Perform minor refactoring to greatly reduce the number of string constants.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie8700bc90611d21eee7160f4686bc978fe0a0eb4
show more ...
|
#
f053e6fe |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I41103c892db258a85640aa1442acd9a295c8a847
show more ...
|
#
c328a4cf |
| 18-Mar-2022 |
Potin Lai <potin.lai@quantatw.com> |
discover-system-state: add multi-host support
Add HostObjects class to fetch paths of settings d-bus objects under /xyz/openbmc_project/control/hostX .
Signed-off-by: Potin Lai <potin.lai@quantatw.
discover-system-state: add multi-host support
Add HostObjects class to fetch paths of settings d-bus objects under /xyz/openbmc_project/control/hostX .
Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I1dc55ec389e94e6c85aa7031b304f8c4ed15dc71
show more ...
|
#
35ca2e34 |
| 09-Feb-2021 |
Andrew Geissler <geissonator@yahoo.com> |
power-restore: one-time support
The one_time PowerRestorePolicy property was introduced so system owners could utilize the feature for one time type scenarios without rewriting all of the logic on t
power-restore: one-time support
The one_time PowerRestorePolicy property was introduced so system owners could utilize the feature for one time type scenarios without rewriting all of the logic on their own.
IBM wishes to utilize the one_time power restore policy to cause an automatic power on after an in-band firmware update.
The one_time setting is defined by default within meta-phosphor here: https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/40948
Testing: - Set one time and verify it's the one used and then reset to default busctl set-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host0/power_restore_policy/one_time xyz.openbmc_project.Control.Power.RestorePolicy PowerRestorePolicy s xyz.openbmc_project.Control.Power.RestorePolicy.Policy.AlwaysOff
busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host0/power_restore_policy/one_time xyz.openbmc_project.Control.Power.RestorePolicy PowerRestorePolicy s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.AlwaysOff"
phosphor-discover-system-state
Feb 25 19:44:11 witherspoon phosphor-discover-system-state[495]: One time set, use it and reset to default
busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host0/power_restore_policy/one_time xyz.openbmc_project.Control.Power.RestorePolicy PowerRestorePolicy s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.None"
- Verify when one time setting is at default it is ignored busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host0/power_restore_policy/one_time xyz.openbmc_project.Control.Power.RestorePolicy PowerRestorePolicy s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.None"
phosphor-discover-system-state
Feb 25 19:47:08 witherspoon phosphor-discover-system-state[498]: One time not set, check user setting of power policy Feb 25 19:47:08 witherspoon phosphor-discover-system-state[498]: Host power is off, processing power policy
- Verify the one time power on path busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host0/power_restore_policy/one_time xyz.openbmc_project.Control.Power.RestorePolicy PowerRestorePolicy s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.AlwaysOn"
phosphor-discover-system-state
Feb 25 20:14:15 witherspoon phosphor-discover-system-state[504]: One time set, use it and reset to default Feb 25 20:14:15 witherspoon phosphor-discover-system-state[504]: Host power is off, processing power policy Feb 25 20:14:15 witherspoon phosphor-discover-system-state[504]: power_policy=ALWAYS_POWER_ON, powering host on
busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host0/power_restore_policy/one_time xyz.openbmc_project.Control.Power.RestorePolicy PowerRestorePolicy s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.None"
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I13715ad2fda1f7aa0d170e506570e85f1cef8722
show more ...
|
#
e87db709 |
| 22-Oct-2020 |
Andrew Geissler <geissonator@yahoo.com> |
autoreboot: one-time object support
The new one_time D-Bus object is utilized for setting RebootPolicy for a single boot. phosphor-state-manager will always look at this object first for reboot poli
autoreboot: one-time object support
The new one_time D-Bus object is utilized for setting RebootPolicy for a single boot. phosphor-state-manager will always look at this object first for reboot policy, if it is the default of true, then phosphor-state-manager will then look at the persistent user setting under the non one_time object path.
See the following commit for more info: https://github.com/openbmc/meta-phosphor/commit/7d29e7a2c135e91b222c57c66bb7ca61aae6398e
Tested: Via some debug statements, confirmed that Path variables are both updated with correct settings object.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I8ef882633237529e03070607542b9acc218dffc6
show more ...
|
#
e426b589 |
| 28-May-2020 |
Andrew Geissler <geissonator@yahoo.com> |
clang-format: update to latest from docs repo
This is from openbmc/docs/style/cpp/.clang-format
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I5b80bb568451706afb6d268b41e1a5357a
clang-format: update to latest from docs repo
This is from openbmc/docs/style/cpp/.clang-format
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I5b80bb568451706afb6d268b41e1a5357a2ca6db
show more ...
|
#
514474dd |
| 12-Sep-2019 |
Andrew Geissler <geissonator@yahoo.com> |
cppcheck: Make settings constructor explicit
This change fixes this cppcheck warning: Struct 'Objects' has a constructor with 1 argument that is not explicit.
Signed-off-by: Andrew Geissler <geisso
cppcheck: Make settings constructor explicit
This change fixes this cppcheck warning: Struct 'Objects' has a constructor with 1 argument that is not explicit.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I6bcb550626dd6b2de4b0dd44592e4ac0050ab22d
show more ...
|
#
58a18013 |
| 19-Jan-2018 |
Andrew Geissler <geissonator@yahoo.com> |
Apply clang code format to this state repo
Change-Id: I232af39d8ded90fa3eb37b74d1435ddbf19fffb1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
#
a646edd4 |
| 25-Jul-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Add API to retrieve settings
Add API to retrieve all settings objects of interest to this repo, in one shot.
Change-Id: Ie74d39f4d6b1d262e6e5721208efc94003eee46c Signed-off-by: Deepak Kodihalli <dk
Add API to retrieve settings
Add API to retrieve all settings objects of interest to this repo, in one shot.
Change-Id: Ie74d39f4d6b1d262e6e5721208efc94003eee46c Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|