From owner-acpi-jp@jp.FreeBSD.org Wed Mar 31 05:20:18 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i2UKKI823978;
	Wed, 31 Mar 2004 05:20:18 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from root.org (root.org [67.118.192.226])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id i2UKKHd23973
	for <acpi-jp@jp.FreeBSD.org>; Wed, 31 Mar 2004 05:20:17 +0900 (JST)
	(envelope-from nate@root.org)
Received: (qmail 82382 invoked by uid 1000); 30 Mar 2004 20:20:08 -0000
From: Nate Lawson <nate@root.org>
To: acpi-jp@jp.FreeBSD.org
cc: Panagiotis Astithas <past@noc.ntua.gr>
In-Reply-To: <20040324185411.GH19001@poupinou.org>
Message-ID: <20040330121850.T81785@root.org>
References: <40617114.2070703@noc.ntua.gr> <20040324185411.GH19001@poupinou.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 30 Mar 2004 12:20:07 -0800
X-Sequence: acpi-jp 3162
Subject: [acpi-jp 3162] Re: Buggy ACPI BIOS
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: nate@root.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040307

On Wed, 24 Mar 2004, Bruno Ducrot wrote:
> On Wed, Mar 24, 2004 at 01:29:24PM +0200, Panagiotis Astithas wrote:
> > Hello people,
> >
> > I seem to be stuck with this no-name desktop PC that has a buggy ACPI
> > BIOS from Award. Although 5.2.1 runs fine on it (after disabling APIC),
> > I get the following output from iasl:
> >
> >
> > hal% iasl past-Award.asl
> >
> > Intel ACPI Component Architecture
> > ASL Optimizing Compiler / AML Disassembler version 20030619 [Feb 23 2004]
> > Copyright (C) 2000 - 2003 Intel Corporation
> > Supports ACPI Specification Revision 2.0b
> >
> > past-Award.asl   412:     Method (\_WAK, 1, NotSerialized)
> > Warning  2026 -                       ^ Reserved method must return a
> > value (_WAK)
>
> That one is easy to address, even though I don't think FreeBSD will use
> the value returned in the resume path.

FreeBSD handles this automatically, see the handbook.  Just ignore with
iasl -f.

> > past-Award.asl   450:             Store (Local0, Local0)
> > Error    1013 -                               ^ Method local variable is
> > not initialized (Local0)
>
> Just replacing all this noise by Noop is OK.
>
> > past-Award.asl  1854:                 Method (STM, 0, Serialized)
> > Warning  2019 -                                 ^ Not all control paths
> > return a value (STM_)
>
> That one is much harder to get it correct unfortunately.  I think the
> correct way is to do what I send you, but I may be wrong.
>
> I think that FreeBSD include a workaround for the return bug, I'm not
> sure at 100% though.

Yes, it does.

> If that is the case, you don't have to overwrite your DSDT anyway.

Your DSDT probably works ok out of the box so don't worry about the iasl
warnings.

-Nate
