Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65DF5C4743C for ; Fri, 4 Jun 2021 18:15:00 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 811CE613FA for ; Fri, 4 Jun 2021 18:14:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 811CE613FA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FxWBp3dqnz309T for ; Sat, 5 Jun 2021 04:14:58 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=saravanan.palanisamy@linux.intel.com; receiver=) X-Greylist: delayed 64 seconds by postgrey-1.36 at boromir; Sat, 05 Jun 2021 04:14:36 AEST Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FxWBN6TkTz2ymZ for ; Sat, 5 Jun 2021 04:14:36 +1000 (AEST) IronPort-SDR: o36FqntAnyCFEugg8OwhznPY/44Q+/4w7k8NX6NI2JwM0IlIS2mCUGmWS81RSE4uAjoUNTtaQH xgPuCuGcT6WA== X-IronPort-AV: E=McAfee;i="6200,9189,10005"; a="265504830" X-IronPort-AV: E=Sophos;i="5.83,248,1616482800"; d="scan'208,217";a="265504830" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2021 11:13:05 -0700 IronPort-SDR: k55bn4vePF1mzUjrJtvkizyvXCKJsdLxUdnNUUs75Vl6DVI07yghWIuEm1sdgSXGKdS5zy5Ykr rjn6csCwXcXA== X-IronPort-AV: E=Sophos;i="5.83,248,1616482800"; d="scan'208,217";a="439269992" Received: from palanisa-mobl3.gar.corp.intel.com (HELO [10.213.66.17]) ([10.213.66.17]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2021 11:13:03 -0700 Subject: Re: Power Restore Policy (Intel platform) To: openbmc@lists.ozlabs.org References: <88E210B7-A803-41D9-8261-6F291B092641@gmail.com> From: "Palanisamy, Saravanan" Message-ID: <3036a512-b204-8b9b-17a4-4efd424bffe1@linux.intel.com> Date: Fri, 4 Jun 2021 23:42:59 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <88E210B7-A803-41D9-8261-6F291B092641@gmail.com> Content-Type: multipart/alternative; boundary="------------CACD75E94E180BE282B7C7FC" Content-Language: en-US X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" This is a multi-part message in MIME format. --------------CACD75E94E180BE282B7C7FC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------CACD75E94E180BE282B7C7FC Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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
--------------CACD75E94E180BE282B7C7FC--