From: Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Cam <camilo-Nk/s8sJ9yP7QXOPxS62xeg@public.gmane.org>
Cc: ACPI Developers
<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
Robert Moore
<robert.moore-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Subject: Re: Fixing broken DSDT - code suggestions for comment please!
Date: 17 May 2004 21:00:06 -0400 [thread overview]
Message-ID: <1084842006.12349.372.camel@dhcppc4> (raw)
In-Reply-To: <40A95EB3.5070206-Nk/s8sJ9yP7QXOPxS62xeg@public.gmane.org>
On Mon, 2004-05-17 at 20:54, Cam wrote:
> Len
>
> thanks for the feedback and comments,
>
> Len Brown wrote:
> > Please verify that you still have this problem
> > when running the latest iasl:
> >
> > http://www.intel.com/technology/IAPC/acpi/downloads.htm
>
> I was working with iasl-linux-20030918 which I think is the latest. Do
> you think the Store(Local0, Local0) is an iasl bug? I can send the dsdt
> binary if you are interested.
Follow the link above to download a version 6 months newer.
>
> >>Later there are two other errors not mentioned in the FAQ:
> >>
> >>dsdt.dsl 2390: Return (WQS (0x0E, Arg0))
> >>Error 1029 - ^ Called method returns no
> >>value
> >>
> >>
> >>dsdt.dsl 2395: Return (WQSB (0x0E, Arg0))
> >>Error 1029 - Called method returns no value ^
> >>
>
> [... my bad fix snipped ...]
>
> > no. the problem is that WQS and WQSB need to have Return() statements.
>
> OK from another look at the code I see the declarations for the WQS and
> WQSB methods. I am struggling what to return from these. Zero? Arg0?
> Arg1? Some success/fail code? Any ideas? There are lots of calls to WQS
> and WQSB that mostly seem to discard the (not yet) returned value.
>
>
> Method (WQSB, 2, NotSerialized)
> {
> If (LNot (LOr (\_SB.PCI0.ISA.EC0.FBAT,
> \_SB.PCI0.ISA.EC0.FTMP)))
> {
> Store (0x01, \_SB.PCI0.ISA.EC0.FQSB)
> And (Arg1, 0xFF, Local0)
> ShiftRight (Arg1, 0x08, Local1)
> And (Local1, 0xFF, Local1)
> Acquire (\_SB.PCI0.ISA.EC0.BNKM, 0xFFFF)
> Store (Local1, \_SB.PCI0.ISA.EC0.CMD3)
> Store (Local0, \_SB.PCI0.ISA.EC0.CMD2)
> Store (Arg0, \_SB.PCI0.ISA.EC0.CMD1)
> Store (0xE9, \_SB.PCI0.ISA.EC0.CMCM)
> Release (\_SB.PCI0.ISA.EC0.BNKM)
> Store (0x00, \_SB.PCI0.ISA.EC0.FQSB)
> }
> }
>
>
> Method (WQS, 2, NotSerialized)
> {
> While (LOr (\_SB.PCI0.ISA.EC0.FBAT,
> \_SB.PCI0.ISA.EC0.FTMP)) {
> Noop
> }
>
>
> Store (0x01, \_SB.PCI0.ISA.EC0.FQSB)
> And (Arg1, 0xFF, Local0)
> ShiftRight (Arg1, 0x08, Local1)
> And (Local1, 0xFF, Local1)
> Acquire (\_SB.PCI0.ISA.EC0.BNKM, 0xFFFF)
> Store (Local1, \_SB.PCI0.ISA.EC0.CMD3)
> Store (Local0, \_SB.PCI0.ISA.EC0.CMD2)
> Store (Arg0, \_SB.PCI0.ISA.EC0.CMD1)
> Store (0xE9, \_SB.PCI0.ISA.EC0.CMCM)
> Release (\_SB.PCI0.ISA.EC0.BNKM)
> Store (0x00, \_SB.PCI0.ISA.EC0.FQSB)
> }
usually the fix to the 'implicit return bug' is to return the value
returned by the last method called. I guess here you'd return 0?
-Len
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
next prev parent reply other threads:[~2004-05-18 1:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-16 9:29 Fixing broken DSDT - code suggestions for comment please! Cam
[not found] ` <40A73460.2070407-Nk/s8sJ9yP7QXOPxS62xeg@public.gmane.org>
2004-05-17 11:27 ` Cam
2004-05-17 19:35 ` Len Brown
[not found] ` <1084822558.12353.365.camel-D2Zvc0uNKG8@public.gmane.org>
2004-05-18 0:54 ` Cam
[not found] ` <40A95EB3.5070206-Nk/s8sJ9yP7QXOPxS62xeg@public.gmane.org>
2004-05-18 1:00 ` Len Brown [this message]
[not found] ` <1084842006.12349.372.camel-D2Zvc0uNKG8@public.gmane.org>
2004-05-20 20:29 ` Chris McDermott
[not found] ` <20040520202950.GK5920-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2004-05-21 8:51 ` Cam
-- strict thread matches above, loose matches on Subject: below --
2004-05-18 14:19 Franklin Marmon
[not found] ` <1084889946.5037.2.camel-t0Me6uhKnbVYViWeMKg0xQC/G2K4zDHf@public.gmane.org>
2004-05-18 15:30 ` Bas Mevissen
2004-05-21 0:33 Brown, Len
2004-05-26 2:35 Yu, Luming
2004-05-26 15:36 Moore, Robert
[not found] ` <37F890616C995246BE76B3E6B2DBE055E08D59-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-05-27 20:42 ` Nate Lawson
2004-05-27 3:53 Yu, Luming
2004-05-28 3:52 Yu, Luming
[not found] ` <3ACA40606221794F80A5670F0AF15F84047B206A-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-05-28 7:33 ` Nate Lawson
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=1084842006.12349.372.camel@dhcppc4 \
--to=len.brown-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=camilo-Nk/s8sJ9yP7QXOPxS62xeg@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