public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg@redhat.com>
To: "Moore, Robert" <robert.moore@intel.com>
Cc: "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"rjw@sisk.pl" <rjw@sisk.pl>
Subject: Re: Recent GPE patches - some questions.
Date: Mon, 1 Feb 2010 22:36:19 +0000	[thread overview]
Message-ID: <20100201223619.GB15766@srcf.ucam.org> (raw)
In-Reply-To: <4911F71203A09E4D9981D27F9D83085855AF782E@orsmsx503.amr.corp.intel.com>

On Fri, Jan 29, 2010 at 12:30:25PM -0800, Moore, Robert wrote:

> [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?

Yes, that's probably the easiest way to look at it.

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

This is simply the ref/unref functions.


> [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).

That's simply to make it easier to bisect through the changes - 3/3 
removes the explicit enable_gpe call.

> [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.

Ok. I'm not sure that we'll be pushing this aspect of it yet, we'll have 
to wait and see what the hardware support situation ends up being.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

  reply	other threads:[~2010-02-01 22:36 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-29 20:30 Recent GPE patches - some questions Moore, Robert
2010-02-01 22:36 ` Matthew Garrett [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100201223619.GB15766@srcf.ucam.org \
    --to=mjg@redhat.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=robert.moore@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox