#
a1c0e5c7 |
| 21-Jun-2024 |
Pavithra Barithaya <pavithrabarithaya07@gmail.com> |
clang-tidy: Enable readability-convert-member-functions-to-static
This check finds non-static member functions that can be made static because the functions don’t use this. This check also triggers
clang-tidy: Enable readability-convert-member-functions-to-static
This check finds non-static member functions that can be made static because the functions don’t use this. This check also triggers readability-static-accessed-through -instance check as we are trying to access a static member function through an instance.
Change-Id: I887b514a8478abedc24d5495d057b9d3e7dc9bdf Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
show more ...
|
#
7e969cb9 |
| 23-Aug-2023 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: use non-deprecated namespaces
The sdbusplus repository has deprecated some namespaces and they are currently only enabled with the SDBUSPP_REMOVE_DEPRECATED_NAMESPACE guard. Switch to the
sdbus++: use non-deprecated namespaces
The sdbusplus repository has deprecated some namespaces and they are currently only enabled with the SDBUSPP_REMOVE_DEPRECATED_NAMESPACE guard. Switch to the new namespace names.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9f67e74a02616d8ea2241c18758308f2b669672d
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 ...
|
#
211d972d |
| 07-Apr-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sched-host-tran: support multi-host
The State.Host objects are now templated, so the ScheduledHostTransition similarly needs to be templated.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Cha
sched-host-tran: support multi-host
The State.Host objects are now templated, so the ScheduledHostTransition similarly needs to be templated.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I60751dbe5fff5e3c0c2c7a19515524cf5f6bc8f7
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 ...
|
#
ef7abe19 |
| 25-Feb-2020 |
Carol Wang <wangkair@cn.ibm.com> |
sched-host-tran: handle with BMC time changing
Handle with different processes when BMC time is changed after scheduled time is set.
Tested: Case1: BMC time is changed to be later than current time
sched-host-tran: handle with BMC time changing
Handle with different processes when BMC time is changed after scheduled time is set.
Tested: Case1: BMC time is changed to be later than current time but still earlier than scheduled time 1. Get current time # date Tue Feb 25 07:07:44 UTC 2020 # date +%s 1582614271 2. Schedule time, do host transition after at 07:20:00 around # busctl get-property xyz.openbmc_project.State.ScheduledHostTransition \ /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582615256 3. Change BMC time to 07:19:00 around # busctl set-property xyz.openbmc_project.Time.Manager \ /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed \ t 1582615136000000 # date Tue Feb 25 07:19:20 UTC 2020 # date +%s 1582615187 4. Host transition is done after 1 minute around, instead of waiting 13 mins around.
Case2: BMC time is changed after scheduled time is reached Following Case1, the scheduled time is reached already, 1. Change BMC time to 07:10:00 around # busctl set-property xyz.openbmc_project.Time.Manager \ /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed \ t 1582614600000000 2. APP shows "The function Scheduled Host Transition is disabled", because the scheduled time is reached already and the scheduled time has been set to 0 after host transition is triggered.
Case3: BMC time is changed to be bigger than scheduled time before scheduled time is reached 1. Set scheduled time 07:08:00 around # busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \ /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582787314 2. Change BMC time to 07:10:00 around # busctl set-property xyz.openbmc_project.Time.Manager \ /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed \ t 1582787434000000 3. It will do host transition as requested.
Case4: BMC time is changed to be earlier than current time 1. Set scheduled time 07:10:00 around # busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \ /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582787434 2. Change BMC time to 07:08:00 around # busctl set-property xyz.openbmc_project.Time.Manager \ /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed \ t 1582787314000000 3. App will wait 2 minutes more to do host transition.
Change-Id: I23228be944d1b2f71161317228c8b16d7f5ca4eb Signed-off-by: Carol Wang <wangkair@cn.ibm.com>
show more ...
|
#
6a5db3d3 |
| 20-Feb-2020 |
Carol Wang <wangkair@cn.ibm.com> |
sched-host-tran: implement host transition process
Set the scheduled time and host transition to trigger power on/off.
Tested: 1. Check the state first $ curl -k -H "X-Auth-Token: $token" https://
sched-host-tran: implement host transition process
Set the scheduled time and host transition to trigger power on/off.
Tested: 1. Check the state first $ curl -k -H "X-Auth-Token: $token" https://$bmc/xyz/openbmc_project/state/host0 { "data": { "AttemptsLeft": 3, "BootProgress": "xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified", "CurrentHostState": "xyz.openbmc_project.State.Host.HostState.Off", "OperatingSystemState": "xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive", "RequestedHostTransition": "xyz.openbmc_project.State.Host.Transition.Off", "RequestedTransition": "xyz.openbmc_project.State.Host.Transition.On", "ScheduledTime": 0 }, "message": "200 OK", "status": "ok" } 2. Set a time in future # busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \ /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582184830 # busctl get-property xyz.openbmc_project.State.ScheduledHostTransition \ /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582184830 3. Check the state again after scheduled time Jan 15 06:38:20 WS-Seq-FW-2 phosphor-host-state-manager[442]: Host State transaction request $ curl -k -H "X-Auth-Token: $token" https://$bmc/xyz/openbmc_project/state/host0 { "data": { "AttemptsLeft": 3, "BootProgress": "xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified", "CurrentHostState": "xyz.openbmc_project.State.Host.HostState.Running", "OperatingSystemState": "xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive", "RequestedHostTransition": "xyz.openbmc_project.State.Host.Transition.On", "RequestedTransition": "xyz.openbmc_project.State.Host.Transition.On", "ScheduledTime": 0 }, "message": "200 OK", "status": "ok" } 4. Set quested transition to off # busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \ /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.ScheduledHostTransition RequestedTransition \ s "xyz.openbmc_project.State.Host.Transition.Off" # busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \ /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582250580 $ curl -k -H "X-Auth-Token: $token" https://$bmc/xyz/openbmc_project/state/host0 { "data": { "AttemptsLeft": 3, "BootProgress": "xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified", "CurrentHostState": "xyz.openbmc_project.State.Host.HostState.Off", "OperatingSystemState": "xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive", "RequestedHostTransition": "xyz.openbmc_project.State.Host.Transition.Off" "RequestedTransition": "xyz.openbmc_project.State.Host.Transition.Off", "ScheduledTime": 0 }, "message": "200 OK", "status": "ok" }
Change-Id: Ib9f3a3984005d9187a9b98603ec1598d8992869e Signed-off-by: Carol Wang <wangkair@cn.ibm.com>
show more ...
|
#
4ca6f3f4 |
| 19-Feb-2020 |
Carol Wang <wangkair@cn.ibm.com> |
sched-host-tran: handle with the scheduled time
Add the basic process to handle with the scheduled time
Tested: 1. Scheduled time is 0 # busctl set-property xyz.openbmc_project.State.ScheduledHos
sched-host-tran: handle with the scheduled time
Add the basic process to handle with the scheduled time
Tested: 1. Scheduled time is 0 # busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \ /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1 ------ Feb 19 08:09:47 witherspoon phosphor-scheduled-host-transition[28263]: \ The function Scheduled Host Transition is disabled. 2. Scheduled time is the past # busctl set-property xyz.openbmc_project.State.ScheduledHostTransition \ /xyz/openbmc_project/state/host0 \ xyz.openbmc_project.State.ScheduledHostTransition ScheduledTime t 1582100042 ------ Failed to set property ScheduledTime on interface xyz.openbmc_project.State.\ ScheduledHostTransition: Scheduled time is in the past Feb 19 08:14:42 witherspoon phosphor-scheduled-host-transition[28263]: \ Scheduled time is earlier than current time. Fail to do host transition. Feb 19 08:14:42 witherspoon phosphor-scheduled-host-transition[28263]: \ Scheduled time is in the past
Change-Id: I0b6a98dcb6d0e70336bf42fc88a633abf3e64633 Signed-off-by: Carol Wang <wangkair@cn.ibm.com>
show more ...
|