IPMI set CurrentHostState property
Register an IPMI handler to receive the command from BIC
netFn: 0x38 cmd: 0x0C
BIC sends the GPIO value for host power state to BMC
On: 0x1
Off: 0x0
This handler starts the corresponding target to set
"CurrentHostState" property
On: obmc-host-startmin@$slot.target
Off: obmc-host-stop@@$slot.target
Test Case:
Set "RequestedHostTransition" property on phosphor-state-manager
to On/Off/Reboot/ForceWarmReboot and check the host status
Signed-off-by: Bonnie Lo <Bonnie_Lo@wiwynn.com>
Change-Id: I891f38d7e836238fa3ba8287df5a855cf2d9a8d9
2 files changed