<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Jason,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for your prompt reply.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The system stays on, because I can hear the fan in PSU is still running and CPU heatsink is hot, besides, the log would show "Graceful power-off timer completed" and "Host0: Moving to "On" state" after 5 minutes. Here are all logs of the power-control for your
reference. Hope this can provide more details.<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;"></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
=====</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
root@hudsonbay-obmc:~# journalctl | grep -e "power-control" -e "power control" -e "Power Control"
<div>Jul 24 10:36:06 hudsonbay-obmc systemd[1]: Starting Intel Power Control...</div>
<div>Jul 24 10:36:09 hudsonbay-obmc power-control[198]: Start Chassis power control service...</div>
<div>Jul 24 10:36:09 hudsonbay-obmc systemd[1]: Started Intel Power Control.</div>
<div>Jul 24 10:36:09 hudsonbay-obmc power-control[198]: NMI_OUT set to 0</div>
<div>Jul 24 10:36:09 hudsonbay-obmc power-control[198]: POWER_OUT set to 1</div>
<div>Jul 24 10:36:09 hudsonbay-obmc power-control[198]: RESET_OUT set to 1</div>
<div>Jul 24 10:36:09 hudsonbay-obmc power-control[198]: NMI Source Property Monitor</div>
<div>Jul 24 10:36:09 hudsonbay-obmc power-control[198]: Initializing power state.</div>
<div>Jul 24 10:36:09 hudsonbay-obmc power-control[198]: Host0: Moving to "On" state</div>
<div>Jul 24 10:36:09 hudsonbay-obmc power-control[198]: POH timer started</div>
<div>Jul 24 10:36:38 hudsonbay-obmc power-control[198]: powerStateOn: POST Complete assert event received</div>
<div>Jul 24 10:36:38 hudsonbay-obmc power-control[198]: No action taken.</div>
<div>Jul 24 10:36:41 hudsonbay-obmc power-control[198]: powerStateOn: POST Complete de-assert event received</div>
<div>Jul 24 10:36:41 hudsonbay-obmc power-control[198]: Host0: Moving to "Check for Warm Reset" state</div>
<div>Jul 24 10:36:41 hudsonbay-obmc power-control[198]: Warm reset check timer started</div>
<div>Jul 24 10:36:41 hudsonbay-obmc power-control[198]: RestartCause set to xyz.openbmc_project.State.Host.RestartCause.SoftReset</div>
<div>Jul 24 10:36:41 hudsonbay-obmc power-control[198]: Host system DC power is off</div>
<div>Jul 24 10:36:41 hudsonbay-obmc power-control[198]: POH timer canceled</div>
<div>Jul 24 10:36:41 hudsonbay-obmc power-control[198]: failed to reset ACBoot property</div>
<div>Jul 24 10:36:42 hudsonbay-obmc power-control[198]: Warm reset check timer completed</div>
<div>Jul 24 10:36:42 hudsonbay-obmc power-control[198]: powerStateCheckForWarmReset: warm reset detected event received</div>
<div>Jul 24 10:36:42 hudsonbay-obmc power-control[198]: Host0: Moving to "On" state</div>
<div>Jul 24 10:36:42 hudsonbay-obmc power-control[198]: POH timer started</div>
<div>Jul 24 10:36:42 hudsonbay-obmc power-control[198]: Host system DC power is on</div>
<div>Jul 24 10:38:16 hudsonbay-obmc power-control[198]: powerStateOn: POST Complete assert event received</div>
<div>Jul 24 10:38:16 hudsonbay-obmc power-control[198]: No action taken.</div>
<div>Jul 24 10:38:34 hudsonbay-obmc power-control[198]: PowerControl: power button pressed</div>
<div>Jul 24 10:38:34 hudsonbay-obmc power-control[198]: powerStateOn: power button pressed event received</div>
<div>Jul 24 10:38:34 hudsonbay-obmc power-control[198]: Host0: Moving to "Graceful Transition to Off" state</div>
<div>Jul 24 10:38:34 hudsonbay-obmc power-control[198]: Graceful power-off timer started</div>
<div>Jul 24 10:43:34 hudsonbay-obmc power-control[198]: Graceful power-off timer completed</div>
<div>Jul 24 10:43:34 hudsonbay-obmc power-control[198]: powerStateGracefulTransitionToOff: graceful power-off timer expired event received</div>
Jul 24 10:43:34 hudsonbay-obmc power-control[198]: Host0: Moving to "On" state<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color:rgb(255, 255, 255);display:inline !important">=====</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Chris Chen</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>寄件者:</b> openbmc <openbmc-bounces+chris.chen3=flex.com@lists.ozlabs.org> 代表 Bills, Jason M <jason.m.bills@linux.intel.com><br>
<b>寄件日期:</b> 2021年7月24日 上午 04:36<br>
<b>收件者:</b> openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org><br>
<b>主旨:</b> Re: [x86-power-control]: press the power button for a long time that can't force turn off system power</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText"><br>
<br>
On 7/23/2021 4:28 AM, Chris Chen (TPI) wrote:<br>
> Hi all,<br>
> <br>
> I am working on an ast2600 with Intel CPU.<br>
> The system power currently is able to turn on during Phosphor OpenBMC <br>
> boot up after I completed works following:<br>
> <br>
> 1. enable ACPI in u-boot<br>
> 2. set GPIOP0 ~ P3 pass-through in u-boot<br>
> 3. porting ESPI driver from AST SDK v6.01 to linux-aspeed repository<br>
> 4. add "&gpio0" with gpio-line-names which has POWER_BUTTON, POWER_OUT,<br>
> SIO_S3, SIO_S5, etc. defintion in the dts, I think the<br>
> "x86-power-control" repository required these.<br>
> 5. append "x86-power-control" and "intel-ipmi-oem" repositories to image<br>
> <br>
> However, I always only got the following logs when I pressed the power <br>
> button for a long time (> 4s).<br>
> =====<br>
> power-control[263]: PowerControl: power button pressed<br>
> power-control[263]: powerStateOn: power button pressed event received<br>
> power-control[263]: Host0: Moving to "Graceful Transition to Off" state<br>
> power-control[263]: Graceful power-off timer started<br>
> =====<br>
> <br>
> It doesn't occur "SIO_ONCONTROL value changed: 1 -> SIO power good <br>
> de-assert event received", etc. operations and then to turn off the power.<br>
> <br>
> Can anyone do me a favor to give me some clues for what I was wrong?<br>
Hi Chris,<br>
<br>
Holding the power button should force a hardware shutdown. The BMC only <br>
monitors this flow and doesn't participate.<br>
<br>
Did your system shut down correctly and you just not see the logs in <br>
BMC? Or, did the system stay on?<br>
<br>
Thanks,<br>
-Jason<br>
> <br>
> <br>
> Thank you in advance for your help.<br>
> <br>
> Regards,<br>
> Chris Chen<br>
> <br>
> Legal Disclaimer :<br>
> The information contained in this message may be privileged and <br>
> confidential.<br>
> It is intended to be read only by the individual or entity to whom it is <br>
> addressed<br>
> or by their designee. If the reader of this message is not the intended <br>
> recipient,<br>
> you are on notice that any distribution of this message, in any form,<br>
> is strictly prohibited. If you have received this message in error,<br>
> please immediately notify the sender and delete or destroy any copy of <br>
> this message!<br>
</div>
</span></font></div>
</div>
</body>
</html>