public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Charl P. Botha" <c.p.botha-ra0OqMccq8edIhEUFHOBvg@public.gmane.org>
To: "Moore, Robert" <robert.moore-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: help needed with invalid method in GPE block
Date: 18 Mar 2003 09:54:15 +0100	[thread overview]
Message-ID: <1047977655.2192.20.camel@dutidad> (raw)
In-Reply-To: <20030318001918.GA651-V1rPnKwUOrA59+mn7qD7y50iERQUc4G+@public.gmane.org>

On Tue, 2003-03-18 at 01:19, Charl P. Botha wrote:
> On Mon, Mar 17, 2003 at 03:57:00PM -0800, Moore, Robert wrote:
> > Here's what the code should look like
> > 
> >     /* Ensure that we have a valid GPE number for this GPE block */
> > 
> >     if ((GpeNumber < GpeBlock->BlockBaseNumber) ||
> >         (GpeNumber >= (GpeBlock->BlockBaseNumber + (GpeBlock->RegisterCount
> > * 8))))
> >     {
> >         /* 
> >          * Not valid for this GPE block, just ignore it
> >          * However, it may be valid for a different GPE block, since GPE0
> > and GPE1
> >          * methods both appear under \_GPE.
> >          */
> >         return (AE_OK);
> >     }
> 
> Aaaah, the "if" is now clearly corrected.  The way it was did constitute a
> bug, right?  It resulted in control methods that were valid for the second
> GPE block not getting added.

BTW, before making this change, my laptop would go INSTANTLY to sleep if
I pressed the sleep button.  After applying it, messages flash by
indicating that the kernel is preparing devices for the suspend.

This would mean that, in my case, the handler for method _L1D() was not
being added (in either GPE block), so the Notify() by that method was
not getting handled by the kernel, which was a bad thing.

Will this fix go into the next BK push, or whatever it's called?

Thanks,
Charl

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/


-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en

  parent reply	other threads:[~2003-03-18  8:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <B9ECACBD6885D5119ADC00508B68C1EA0D19BBCC@orsmsx107.jf.intel.com>
     [not found] ` <B9ECACBD6885D5119ADC00508B68C1EA0D19BBCC-LkGsggTGxVmSsB6bSF6DdVDQ4js95KgL@public.gmane.org>
2003-03-18  0:19   ` help needed with invalid method in GPE block Charl P. Botha
     [not found]     ` <20030318001918.GA651-V1rPnKwUOrA59+mn7qD7y50iERQUc4G+@public.gmane.org>
2003-03-18  8:54       ` Charl P. Botha [this message]
2003-03-18 22:25 Moore, Robert
     [not found] ` <B9ECACBD6885D5119ADC00508B68C1EA0D19BBD5-LkGsggTGxVmSsB6bSF6DdVDQ4js95KgL@public.gmane.org>
2003-03-18 22:33   ` Charl P. Botha
  -- strict thread matches above, loose matches on Subject: below --
2003-03-18 22:24 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A84725A204-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-03-19  8:38   ` Charl P. Botha
2003-03-18 21:54 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A84725A203-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-03-18 22:09   ` Charl P. Botha
2003-03-18 17:21 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A847E96D1A-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-03-18 21:44   ` Charl P. Botha
2003-03-18  0:34 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A84725A201-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-03-18  8:51   ` Charl P. Botha
2003-03-18 12:54   ` Charl P. Botha
2003-03-17 23:07 Moore, Robert
     [not found] ` <B9ECACBD6885D5119ADC00508B68C1EA0D19BBCB-LkGsggTGxVmSsB6bSF6DdVDQ4js95KgL@public.gmane.org>
2003-03-17 23:20   ` Charl P. Botha
2003-03-17 21:34 Charl P. Botha

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=1047977655.2192.20.camel@dutidad \
    --to=c.p.botha-ra0oqmccq8ediheufhobvg@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=robert.moore-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /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