* Power Restore Policy (Intel platform)
@ 2021-06-04 3:16 吳秉昌
2021-06-04 15:06 ` Bills, Jason M
2021-06-04 18:12 ` Palanisamy, Saravanan
0 siblings, 2 replies; 3+ messages in thread
From: 吳秉昌 @ 2021-06-04 3:16 UTC (permalink / raw)
To: openbmc
Hi Teams
I am new to OpenBMC, In Power Restore Policy function, I setting "Always On” via web, and reboot the BMC (the system is power off), I expect the system will start, but it don’t.
My system is intel platform, and already install x86-power-control.
All suggestions are welcome, very thanks
BR
Paul
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Power Restore Policy (Intel platform)
2021-06-04 3:16 Power Restore Policy (Intel platform) 吳秉昌
@ 2021-06-04 15:06 ` Bills, Jason M
2021-06-04 18:12 ` Palanisamy, Saravanan
1 sibling, 0 replies; 3+ messages in thread
From: Bills, Jason M @ 2021-06-04 15:06 UTC (permalink / raw)
To: openbmc
On 6/3/2021 8:16 PM, 吳秉昌 wrote:
> Hi Teams
>
> I am new to OpenBMC, In Power Restore Policy function, I setting "Always On” via web, and reboot the BMC (the system is power off), I expect the system will start, but it don’t.
>
Hi Paul,
Welcome to OpenBMC!
In x86-power-control, the Power Restore Policy is only invoked after an
AC-boot. So, it doesn't happen just on a BMC reboot, the host has to
lose power.
x86-power-control uses a D-Bus property from the settings application to
determine if the BMC is booting from an AC recovery:
https://github.com/openbmc/x86-power-control/blob/master/power-control-x86/src/power_control.cpp#L968
"xyz.openbmc_project.Settings",
"/xyz/openbmc_project/control/host0/ac_boot",
"org.freedesktop.DBus.Properties", "Get",
"xyz.openbmc_project.Common.ACBoot", "ACBoot");
On our platforms we use a small shell script that runs on start-up to
check the resetreason from u-boot and set the "ACBoot" property accordingly:
https://github.com/Intel-BMC/openbmc/blob/intel/meta-openbmc-mods/meta-common/recipes-core/ac-boot-check/ac-boot-check/ac-boot-check.sh
> My system is intel platform, and already install x86-power-control.
>
> All suggestions are welcome, very thanks
>
> BR
> Paul
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Power Restore Policy (Intel platform)
2021-06-04 3:16 Power Restore Policy (Intel platform) 吳秉昌
2021-06-04 15:06 ` Bills, Jason M
@ 2021-06-04 18:12 ` Palanisamy, Saravanan
1 sibling, 0 replies; 3+ messages in thread
From: Palanisamy, Saravanan @ 2021-06-04 18:12 UTC (permalink / raw)
To: openbmc
[-- Attachment #1: Type: text/plain, Size: 942 bytes --]
Hi,
This functionality may not be supported by BIOS in RP.
1.) You need to set this BIOS knob:
EDKII MENU -> Platform Configuration -> PCH- IO Configuration -> State
After G3 -> S5 state -> F10(save).
I have not tried in from web interface.
I believe, below IPMI commands will do the same:
2.) In BMC Serial Console, set power restore policy to AlwaysON
# ipmitool raw 0x00 0x06 0x02
07
3.) Set power restore delay to 120 seconds
# ipmitool raw 0x30 0x54 0x00 0x78
4.) Do AC Cycle
5.) BIOS boot after 120+ seconds after bmc boot started
Thanks,
Saravanan
On 6/4/2021 8:46 AM, 吳秉昌 wrote:
> Hi Teams
>
> I am new to OpenBMC, In Power Restore Policy function, I setting "Always On” via web, and reboot the BMC (the system is power off), I expect the system will start, but it don’t.
>
> My system is intel platform, and already install x86-power-control.
>
> All suggestions are welcome, very thanks
>
> BR
> Paul
[-- Attachment #2: Type: text/html, Size: 38395 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-04 18:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 3:16 Power Restore Policy (Intel platform) 吳秉昌
2021-06-04 15:06 ` Bills, Jason M
2021-06-04 18:12 ` Palanisamy, Saravanan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).