Skip to contentSkip to conversation

Power Restore Policy (Intel platform)

DISCUSSION 吳秉昌 3 participants 3 messages Jun 4, 2021

lore
Share & tools
lore

吳秉昌

author
#0 lore raw

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

#1 lore raw
Quoted 4 lines · 吳秉昌

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

Quoted 7 lines

My system is intel platform, and already install x86-power-control.

All suggestions are welcome, very thanks

BR
Paul

#2 lore raw
In reply to 吳秉昌

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

Quoted 10 lines · 吳秉昌

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