From owner-acpi-jp@jp.FreeBSD.org Sat Mar 27 01:17:50 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i2QGHoC07529;
	Sat, 27 Mar 2004 01:17:50 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from ulysses.noc.ntua.gr (ulysses.noc.ntua.gr [147.102.222.230])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id i2QGHmd07524
	for <acpi-jp@jp.FreeBSD.org>; Sat, 27 Mar 2004 01:17:49 +0900 (JST)
	(envelope-from past@noc.ntua.gr)
Received: from ajax.noc.ntua.gr (ajax.noc.ntua.gr [147.102.220.1])
	by ulysses.noc.ntua.gr (8.12.9p1/8.12.9) with ESMTP id i2QGHNUr019015;
	Fri, 26 Mar 2004 18:17:28 +0200 (EET)
	(envelope-from past@noc.ntua.gr)
Received: from noc.ntua.gr (dhcp-144.noc.ntua.gr [147.102.220.144])
	by ajax.noc.ntua.gr (8.12.11/8.12.11) with ESMTP id i2QGHJbg031360;
	Fri, 26 Mar 2004 18:17:19 +0200 (EET)
	(envelope-from past@noc.ntua.gr)
Message-ID: <40645752.7030207@noc.ntua.gr>
From: Panagiotis Astithas <past@noc.ntua.gr>
Organization: NTUA/NMC
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040316
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Bruno Ducrot <ducrot@poupinou.org>
CC: acpi-jp@jp.FreeBSD.org
References: <40617114.2070703@noc.ntua.gr> <20040324185411.GH19001@poupinou.org>
In-Reply-To: <20040324185411.GH19001@poupinou.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamd / ClamAV version devel-20040323, clamav-milter version 0.70a
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Fri, 26 Mar 2004 18:16:18 +0200
X-Sequence: acpi-jp 3150
Subject: [acpi-jp 3150] Re: Buggy ACPI BIOS
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: past@noc.ntua.gr
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040307

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.
> 
> 
>>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.
> 
> If that is the case, you don't have to overwrite your DSDT anyway.

Hi,

thanks for the thorough reply! I loaded the modified asl per your diff 
and it seems to work (iasl didn't report any errors or warnings, 
either). The only difference I can tell is that kernel & modules get 
loaded at different addresses, but I don't know whether this is of any 
significance.


--- dmesg.txt   Fri Mar 26 18:11:11 2004
+++ dmesg2.txt  Fri Mar 26 18:11:12 2004
@@ -3,18 +3,19 @@
         The Regents of the University of California. All rights reserved.
  FreeBSD 5.2.1-SECURITY #0: Tue Mar 16 06:03:54 GMT 2004
      root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
-Preloaded elf kernel "/boot/kernel/kernel" at 0xc0afd000.
-Preloaded elf module "/boot/kernel/splash_bmp.ko" at 0xc0afd1f4.
-Preloaded elf module "/boot/kernel/vesa.ko" at 0xc0afd2a4.
-Preloaded splash_image_data "/boot/modules/beastie.bmp" at 0xc0afd350.
-Preloaded elf module "/boot/kernel/snd_via8233.ko" at 0xc0afd3a8.
-Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc0afd458.
-Preloaded elf module "/boot/kernel/ng_ubt.ko" at 0xc0afd504.
-Preloaded elf module "/boot/kernel/netgraph.ko" at 0xc0afd5b0.
-Preloaded elf module "/boot/kernel/smbfs.ko" at 0xc0afd660.
-Preloaded elf module "/boot/kernel/libmchain.ko" at 0xc0afd70c.
-Preloaded elf module "/boot/kernel/libiconv.ko" at 0xc0afd7bc.
-Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0afd86c.
+Preloaded elf kernel "/boot/kernel/kernel" at 0xc0b01000.
+Preloaded elf module "/boot/kernel/splash_bmp.ko" at 0xc0b011f4.
+Preloaded elf module "/boot/kernel/vesa.ko" at 0xc0b012a4.
+Preloaded splash_image_data "/boot/modules/beastie.bmp" at 0xc0b01350.
+Preloaded elf module "/boot/kernel/snd_via8233.ko" at 0xc0b013a8.
+Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc0b01458.
+Preloaded acpi_dsdt "/boot/DSDT.aml" at 0xc0b01504.
+Preloaded elf module "/boot/kernel/ng_ubt.ko" at 0xc0b01548.
+Preloaded elf module "/boot/kernel/netgraph.ko" at 0xc0b015f4.
+Preloaded elf module "/boot/kernel/smbfs.ko" at 0xc0b016a4.
+Preloaded elf module "/boot/kernel/libmchain.ko" at 0xc0b01750.
+Preloaded elf module "/boot/kernel/libiconv.ko" at 0xc0b01800.
+Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0b018b0.
  Timecounter "i8254" frequency 1193182 Hz quality 0
  CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz (2679.94-MHz 686-class CPU)
    Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
@@ -25,6 +26,8 @@
  VESA: v3.0, 31680k memory, flags:0x1, mode table:0xc09eac82 (1000022)
  VESA: S3 Graphics ProSavage DDR Family BIOS
  netsmb_dev: loaded
+ACPI: DSDT was overridden.
+    ACPI-0375: *** Info: Table [DSDT] replaced by host OS
  npx0: [FAST]
  npx0: <math processor> on motherboard
  npx0: INT 16 interface
@@ -112,9 +115,9 @@
  sio1: configured irq 3 not in bitmap of probed irqs 0
  sio1: port may not be enabled
  vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
-Timecounter "TSC" frequency 2679935044 Hz quality 800
+Timecounter "TSC" frequency 2679938080 Hz quality 800
  Timecounters tick every 10.000 msec
-GEOM: create disk ad0 dp=0xc45ea060
+GEOM: create disk ad0 dp=0xc45ee060
  ad0: 76319MB <WDC WD800JB-00ETA0> [155061/16/63] at ata0-master UDMA100
  acd0: DVDROM <DVD-ROM DDU1621> at ata1-master UDMA33
  Mounting root from ufs:/dev/ad0s2a


It is nice to feel that the BIOS is fixed, anyway.
Thanks again!

-- 
Panagiotis Astithas
Electrical & Computer Engineer, PhD
Network Management Center
National Technical University of Athens, Greece
