public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* GPE handling
@ 2007-11-09  7:50 Li, Shaohua
  2007-11-09  9:45 ` Alexey Starikovskiy
  0 siblings, 1 reply; 8+ messages in thread
From: Li, Shaohua @ 2007-11-09  7:50 UTC (permalink / raw)
  To: Moore, Robert, Lin, Ming M; +Cc: ACPI Devel Maling List

Bob & Ming,
I'm working on adding wakeup GPE support at system runtime, this
capability can help us
Identify which device invokes a wakeup event at runtime, this is
required for runtime device
Power management.

Below is the ASL code. For example, _L0c, USB3 will send a wakeup GPE
and invoke
a notify. In the notify handler, OS will clear USB3's PCI PME status to
avoid wakeup
event flood. But in current code, acpi_ev_asynch_execute_gpe_method will
start an asynchronous
execution of notify and return soon. Just before the return,
acpi_ev_asynch_execute_gpe_method
will reenable GPE 0C. That means GPE is enabled before OS execute
notification handler and USB3's
PCI PME status is cleared, and cause GPE flood. Ideally, I think we
should delay GPE enable
of _L0c till notification handler is finished or simply the method _L0c
is really finished.
What do you think?

Thanks,
Shaohua


        Method (_L0C, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB3, 0x02)
        }

        Method (_L0D, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB7, 0x02)
        }

        Method (_L0E, 0, NotSerialized)
        {
            Notify (\_SB.PCI0.USB4, 0x02)
        }

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

end of thread, other threads:[~2008-02-02 11:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-09  7:50 GPE handling Li, Shaohua
2007-11-09  9:45 ` Alexey Starikovskiy
2007-11-12  0:42   ` Shaohua Li
2007-11-13 10:05     ` [PATCH] ACPI: Defer enabling of level GPE until all pending notifies done Alexey Starikovskiy
2007-11-15  5:44       ` [PATCH] ACPI: Defer enabling of level GPE until all pending notifiesdone Shaohua Li
2007-12-07  2:55       ` [PATCH] ACPI: Defer enabling of level GPE until all pending notifies done Len Brown
2008-02-02  9:45       ` Len Brown
2008-02-02 11:03         ` Alexey Starikovskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox