diff options
| author | Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> | 2023-08-18 12:00:50 +0300 |
|---|---|---|
| committer | Patrick Williams <patrick@stwcx.xyz> | 2023-10-07 00:56:48 +0300 |
| commit | b42abfebd1a42e8d076278a9b0d7a103c6f0d492 (patch) | |
| tree | f022047cd791acb157771310aaeca5fdc246a52c /meta-openembedded/meta-python/recipes-devtools/python/python3-bitstring_4.1.2.bb | |
| parent | ae2ca299d0dc0ec881da37560fb2f45caebf25ad (diff) | |
| download | openbmc-b42abfebd1a42e8d076278a9b0d7a103c6f0d492.tar.xz | |
meta-facebook: yosemite4: Support host power control
Description:
Support following host power control
- host power on
- host power off
- host power cycle
- host power reset
Design:
Do host power control using PLDM effecters' state command to BIC
Test Case:
Do host power on/off/cycle/reset by phosphor-state-manager
Test Log:
root@yosemite4:~# busctl set-property xyz.openbmc_project.State.Host1 /xyz/openbmc_project/state/host1 xyz.openbmc_project.State.Host RequestedHostTransition s "xyz.openbmc_project.State.Host.Transition.Off"
root@yosemite4:~# journalctl --since "10 second ago"
...
Jul 31 00:13:30 yosemite4 phosphor-host-state-manager[543]: Host state transition request of xyz.openbmc_project.State.Host.Transition.Off
...
Jul 31 00:13:30 yosemite4 host-poweroff[849]: pldmtool: Tx: 85 02 39 00 00 01 00 02
root@yosemite4:~# busctl set-property xyz.openbmc_project.State.Host1 /xyz/openbmc_project/state/host1 xyz.openbmc_project.State.Host RequestedHostTransition s "xyz.openbmc_project.State.Host.Transition.On"root@yosemite4:~# journalctl --since "10 second ago"
...
Jul 31 00:14:38 yosemite4 phosphor-host-state-manager[543]: Host state transition request of xyz.openbmc_project.State.Host.Transition.On
...
Jul 31 00:14:38 yosemite4 host-poweron[862]: pldmtool: Tx: 86 02 39 00 00 01 00 01
root@yosemite4:~# busctl set-property xyz.openbmc_project.State.Host1 /xyz/openbmc_project/state/host1 xyz.openbmc_project.State.Host RequestedHostTransition s "xyz.openbmc_project.State.Host.Transition.Reboot"
root@yosemite4:~# journalctl --since "10 second ago"
...
Jul 31 00:14:57 yosemite4 phosphor-host-state-manager[543]: Host state transition request of xyz.openbmc_project.State.Host.Transition.Reboot
...
Jul 31 00:14:57 yosemite4 host-powercycle[877]: pldmtool: Tx: 87 02 39 00 00 01 00 03
root@yosemite4:~# busctl set-property xyz.openbmc_project.State.Host1 /xyz/openbmc_project/state/host1 xyz.openbmc_project.State.Host RequestedHostTransition s "xyz.openbmc_project.State.Host.Transition.ForceWarmReboot"
root@yosemite4:~# journalctl --since "10 second ago"
...
Jul 31 00:18:03 yosemite4 phosphor-host-state-manager[543]: Host state transition request of xyz.openbmc_project.State.Host.Transition.ForceWarmReboot
...
Jul 31 00:18:03 yosemite4 host-powerreset[925]: pldmtool: Tx: 89 02 39 00 00 01 00 04
Change-Id: I289061863817883aa21ff03f10c1d81037d9aadb
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-bitstring_4.1.2.bb')
0 files changed, 0 insertions, 0 deletions
