public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Lin Ming <ming.m.lin@intel.com>
To: Corentin Chary <corentin.chary@gmail.com>
Cc: linux acpi <linux-acpi@vger.kernel.org>,
	platform-driver-x86@vger.kernel.org,
	Len Brown <len.brown@intel.com>, Matthew Garrett <mjg@redhat.com>
Subject: Re: ACPI notify handler and reentrancy of WMI device.
Date: Mon, 17 Jan 2011 10:05:42 +0800	[thread overview]
Message-ID: <1295229942.28388.87.camel@minggr.sh.intel.com> (raw)
In-Reply-To: <AANLkTim0auvcUeDSO7QGSVbj0A+g88FSon7-qT6KzBHd@mail.gmail.com>


> From: Corentin Chary <corentin.chary@gmail.com>
> Date: Mon, Jan 17, 2011 at 2:18 AM
> Subject: ACPI notify handler and reentrancy of WMI device.
> To: linux acpi <linux-acpi@vger.kernel.org>
> Cc: platform-driver-x86@vger.kernel.org, Len Brown
> <len.brown@intel.com>, Matthew Garrett <mjg@redhat.com>
> 
> 
> Hi,
> I currently trying to fix a bug on the Eeepc 1000H with eeepc-wmi.
> 
> I got an acpi notify handler. The notify is triggered when I call WMBC().
> In this notify handler, I must re-call WMBC (with some other arguments, it won't
> notify again this time).
> 
> If I do that, I'll get:
> [  176.920391] ACPI Error (dswload-0802): [_T_0] Namespace lookup
> failure, AE_ALREADY_EXISTS
> [  176.920416] ACPI Exception: AE_ALREADY_EXISTS, During name
> lookup/catalog (20100428/psloop-231)
> [  176.920439] ACPI Error (psparse-0537): Method parse/execution
> failed [\AMW0.WMBC] (Node f7023b88), AE_ALREADY_EXISTS
> [  176.920469] ACPI: Marking method WMBC as Serialized because of
> AE_ALREADY_EXISTS error

Hi, 

Could you attach the acpidump output?

Thanks,
Lin Ming

> 
> Then it'll work.
> 
> What's the best way to avoid that ?
> - Is there some way to tell acpica that this method should be serialized ?
> - Is there some way to finish the execution of the first WMBC call in
> the notify handler ?
> - Should I use a work queue, and do what I have to do later (when the
> previous call is finished) ?
> - anything else ?
> 
> Thanks,
> 
> --
> Corentin Chary
> http://xf.iksaif.net
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



  parent reply	other threads:[~2011-01-17  2:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-16 18:18 ACPI notify handler and reentrancy of WMI device Corentin Chary
     [not found] ` <AANLkTim0auvcUeDSO7QGSVbj0A+g88FSon7-qT6KzBHd@mail.gmail.com>
2011-01-17  2:05   ` Lin Ming [this message]
2011-01-17  6:51     ` Corentin Chary
2011-01-17  6:52       ` Corentin Chary
2011-01-19  8:15       ` Corentin Chary
2011-01-20  9:55       ` Lin Ming
2011-01-20 10:00         ` Corentin Chary
2011-01-21 19:55           ` Corentin Chary
2011-01-20 10:10         ` Corentin Chary

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=1295229942.28388.87.camel@minggr.sh.intel.com \
    --to=ming.m.lin@intel.com \
    --cc=corentin.chary@gmail.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mjg@redhat.com \
    --cc=platform-driver-x86@vger.kernel.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