All of lore.kernel.org
 help / color / mirror / Atom feed
* Trigger conditions for beeps in x86-power-control
@ 2019-11-27  3:46 P. K. Lee (李柏寬)
  2019-11-27  7:09 ` P. K. Lee (李柏寬)
  0 siblings, 1 reply; 3+ messages in thread
From: P. K. Lee (李柏寬) @ 2019-11-27  3:46 UTC (permalink / raw)
  To: jason.m.bills; +Cc: openbmc

Hi Bills,

I observed that the beep sound was triggered by receiving the psPpowerOKDeAssert event in the state of powerStateOn, 
but my machine does not have the SIO_S5 GPIO events, so I need to add a judgment when a beep sound is needed.

The question is, is the forced shutdown (pressing the power button for more than 4 seconds) included in "DC power is unexpectedly lost" mentioned in the comment?

Thanks,
P.K.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trigger conditions for beeps in x86-power-control
  2019-11-27  3:46 Trigger conditions for beeps in x86-power-control P. K. Lee (李柏寬)
@ 2019-11-27  7:09 ` P. K. Lee (李柏寬)
  2019-11-27  9:38   ` P. K. Lee (李柏寬)
  0 siblings, 1 reply; 3+ messages in thread
From: P. K. Lee (李柏寬) @ 2019-11-27  7:09 UTC (permalink / raw)
  To: jason.m.bills; +Cc: openbmc

Hi Bills,

Sorry I found that I said the wrong event, not the powerButtonPressed event, but the soft shutdown.

In the absence of SIO_S5 monitoring, when there was no case of postCompleteDeAssert in the state of powerStateOn, the beep function will be called because the soft shutdown in the OS and it was switched to psPowerOKDeAssert.

Now the soft shutdown in the OS will switch to postCompleteDeAssert but it will trigger a soft reset, and finally the host shutdown and the power state is on.

Regards,
P.K.

> On Nov 27, 2019, at 11:46, P. K. Lee (李柏寬) <P.K.Lee@quantatw.com> wrote:
> 
> Hi Bills,
> 
> I observed that the beep sound was triggered by receiving the psPpowerOKDeAssert event in the state of powerStateOn, 
> but my machine does not have the SIO_S5 GPIO events, so I need to add a judgment when a beep sound is needed.
> 
> The question is, is the forced shutdown (pressing the power button for more than 4 seconds) included in "DC power is unexpectedly lost" mentioned in the comment?
> 
> Thanks,
> P.K.
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Trigger conditions for beeps in x86-power-control
  2019-11-27  7:09 ` P. K. Lee (李柏寬)
@ 2019-11-27  9:38   ` P. K. Lee (李柏寬)
  0 siblings, 0 replies; 3+ messages in thread
From: P. K. Lee (李柏寬) @ 2019-11-27  9:38 UTC (permalink / raw)
  To: jason.m.bills; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 1587 bytes --]

Hi Bills,

I have added the case psPowerOKDeAssert to powerStateCheckForWarmReset, in addition to avoiding the loss of DC power, it can also prevent the inconsistency between the power state in the log and the actual power state after a soft shutdown without the SIO_S5 GPIO monitoring.

Currently in review here:
https://gerrit.openbmc-project.xyz/c/openbmc/x86-power-control/+/27607

Regards,
P.K.

On Nov 27, 2019, at 15:09, P. K. Lee (李柏寬) <P.K.Lee@quantatw.com<mailto:P.K.Lee@quantatw.com>> wrote:

Hi Bills,

Sorry I found that I said the wrong event, not the powerButtonPressed event, but the soft shutdown.

In the absence of SIO_S5 monitoring, when there was no case of postCompleteDeAssert in the state of powerStateOn, the beep function will be called because the soft shutdown in the OS and it was switched to psPowerOKDeAssert.

Now the soft shutdown in the OS will switch to postCompleteDeAssert but it will trigger a soft reset, and finally the host shutdown and the power state is on.

Regards,
P.K.

On Nov 27, 2019, at 11:46, P. K. Lee (李柏寬) <P.K.Lee@quantatw.com<mailto:P.K.Lee@quantatw.com>> wrote:

Hi Bills,

I observed that the beep sound was triggered by receiving the psPpowerOKDeAssert event in the state of powerStateOn,
but my machine does not have the SIO_S5 GPIO events, so I need to add a judgment when a beep sound is needed.

The question is, is the forced shutdown (pressing the power button for more than 4 seconds) included in "DC power is unexpectedly lost" mentioned in the comment?

Thanks,
P.K.




[-- Attachment #2: Type: text/html, Size: 2758 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-27  9:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-27  3:46 Trigger conditions for beeps in x86-power-control P. K. Lee (李柏寬)
2019-11-27  7:09 ` P. K. Lee (李柏寬)
2019-11-27  9:38   ` P. K. Lee (李柏寬)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.