From owner-acpi-jp@jp.freebsd.org  Thu Oct 26 05:21:21 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id FAA39526;
	Thu, 26 Oct 2000 05:21:21 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mass.osd.bsdi.com (adsl-63-202-176-145.dsl.snfc21.pacbell.net [63.202.176.145])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id FAA39519
	for <acpi-jp@jp.freebsd.org>; Thu, 26 Oct 2000 05:21:20 +0900 (JST)
	(envelope-from msmith@mass.osd.bsdi.com)
Received: from mass.osd.bsdi.com (localhost [127.0.0.1])
	by mass.osd.bsdi.com (8.11.0/8.9.3) with ESMTP id e9PKPTh02095
	for <acpi-jp@jp.freebsd.org>; Wed, 25 Oct 2000 13:25:32 -0700 (PDT)
	(envelope-from msmith@mass.osd.bsdi.com)
Message-Id: <200010252025.e9PKPTh02095@mass.osd.bsdi.com>
X-Mailer: exmh version 2.1.1 10/15/1999
To: acpi-jp@jp.freebsd.org
In-reply-to: Your message of "Wed, 25 Oct 2000 11:08:10 PDT."
             <4148FEAAD879D311AC5700A0C969E8905DE414@orsmsx35.jf.intel.com> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 25 Oct 2000 13:25:29 -0700
From: Mike Smith <msmith@freebsd.org>
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 889
Subject: [acpi-jp 889] Re: ACPICA interpreter issues. 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: msmith@freebsd.org

> Hi Mike,
> 
> At least for my simple test cases, the fix appears to be working, e.g.:
> 
> Method(FOO)
> {
> 	If (ECOK)
> 	{
> 		Return("Broken")
> 	}
> 	Else
> 	{
> 		Return("Works")
> 	}
> }
> Method(ECOK)
> {
> 	Return(0)
> }
> 
> I believe this is what the fix was targetted at. This may have been
> necessary but not sufficient to fix the problem.
> 
> Can you confirm that ECOK is returning 0?

In this case:

        Method(_TMP) {
            If(\_SB_.PCI0.PX40.ECOK) {
                Store(\_SB_.PCI0.PX40.EC0_.TMP_, Local0)
                Return(KELV)
                Local0
            }
            Else {
                Return(KELV)
                0x44
            }
        }

I'm fairly certain that \_SB_.PCI0.PX40.ECOK is returning zero (if you 
can point me to the correct set of debug options to see it being 
evaluated and returning, I would greatly appreciate it).

    Method(ECOK) {
        If(LAnd(And(\_SB_.PCI0.PX40.EC0_.OPRG, 0x8, ), And(MFLG, 0x1, ))) {
            Return(0x1)
        }
        Else {
            Return(0x0)
        }
    }                                                                   

I can evaluate \_SB_.PCI0.PX40.EC0_.OPRG and verify that 0x8 is not set, 
and I can veify that 0x1 is not set in MFLG, so I'm fairly sure that ECOK 
is DTRT.  Debugging options to verify this would help a lot...

Thanks!
-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E


