public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Recent GPE patches - some questions.
@ 2010-01-29 20:30 Moore, Robert
  2010-02-01 22:36 ` Matthew Garrett
  0 siblings, 1 reply; 20+ messages in thread
From: Moore, Robert @ 2010-01-29 20:30 UTC (permalink / raw)
  To: Matthew Garrett, linux-acpi@vger.kernel.org, rjw@sisk.pl


Matthew,

I've looked at the new GPE code and I have some comments and questions. I'm still looking at Patch 3/3, "Remove old GPE API and transition code entirely to new one", but here are the questions I have so far.

Thanks,
Bob




[PATCH 0/3] acpica: Rewrite GPE handling

Overall, can we say that this change to the GPE code is primarily intended to add better support for shared GPEs?

I see that the execution of _PRW methods is no longer removed. This was a big question I had about the original patch.



[PATCH 1/3] ACPI: Add infrastructure for refcounting GPE consumers:

>Add an API to allow devices to indicate whether or not
>they want their device's GPE to be enabled for both runtime
>and wakeup events.

I'm not sure which interface you are referring to, please explain



[PATCH 2/3] ACPI: Add support for new refcounted GPE API to drivers:

Reference count mechanism is meant to:
    1) Enable GPE only on the first added reference
    2) Disable GPE only on the last removed reference

Then I don't understand why the code below needs to call acpi_enable_gpe:

		acpi_enable_gpe(dev->wakeup.gpe_device,
 				dev->wakeup.gpe_number);
+		acpi_ref_wakeup_gpe(dev->wakeup.gpe_device,
+				    dev->wakeup.gpe_number);

Because the GPE will be "enabled" (mask bit set for wakeup GPE) by acpi_ref_wakeup_gpe. There are several examples of this type of code. If it is true that the call to acpi_enable_gpe is unnecessary, then is acpi_enable_gpe interface needed at all? (same with disable_gpe).



[PATCH 2/3] acpica: Add support for unregistering ACPI GPE methods:

acpi_remove_gpe_method: Ok, this makes sense. Sad, but makes sense.



[PATCH 1/3] acpi: Provide default GPE handler if the firmware doesn't

>Firmware may support using GPEs for system wakeup without
>providing any runtime GPE handlers.

Do you mean by "runtime GPE handlers" to mean the _Lxx/_Exx GPE methods? If so, this should be clarified in the comments.




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

end of thread, other threads:[~2010-02-14  2:23 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-29 20:30 Recent GPE patches - some questions Moore, Robert
2010-02-01 22:36 ` Matthew Garrett
2010-02-02 23:02   ` Moore, Robert
2010-02-06 23:31     ` Rafael J. Wysocki
2010-02-07  2:17       ` [RFC][PATCH 0/3] Introduce GPE refcounting (was: Re: Recent GPE patches - some questions.) Rafael J. Wysocki
2010-02-07  2:22         ` [RFC][PATCH 1/3] ACPI: Add infrastructure for refcounting GPE consumers Rafael J. Wysocki
2010-02-07  2:23         ` [RFC][PATCH 2/3] ACPI: Modify GPE consumers to use GPE refcounting Rafael J. Wysocki
2010-02-07  2:24         ` [RFC][PATCH 3/3] ACPI: Remove old GPE API and transition code entirely to new one Rafael J. Wysocki
2010-02-07 11:56         ` [Update] Re: [RFC][PATCH 0/3] Introduce GPE refcounting (was: Re: Recent GPE patches - some questions.) Rafael J. Wysocki
2010-02-07 11:58           ` [Update][RFC][PATCH 1/3] ACPI: Add infrastructure for refcounting GPE consumers Rafael J. Wysocki
2010-02-07 11:58           ` [Update][RFC][PATCH 2/3] ACPI: Modify GPE consumers to use GPE refcounting Rafael J. Wysocki
2010-02-07 11:59           ` [Update][RFC][PATCH 3/3] ACPI: Remove old GPE API and transition code entirely to new one Rafael J. Wysocki
2010-02-10 21:29         ` [RFC][PATCH 0/3] Introduce GPE refcounting (was: Re: Recent GPE patches - some questions.) Maxim Levitsky
2010-02-10 21:36           ` Rafael J. Wysocki
2010-02-11 17:36             ` Maxim Levitsky
2010-02-11 20:34               ` Rafael J. Wysocki
2010-02-13 16:08                 ` Maxim Levitsky
2010-02-14  2:24                   ` Rafael J. Wysocki
2010-02-10 21:36       ` Recent GPE patches - some questions Moore, Robert
2010-02-11 22:51         ` [PATCH] ACPI: Use GPE reference counting to support shared GPEs (was: Re: Recent GPE patches - some questions.) Rafael J. Wysocki

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