From cdutchyn@cs.ubc.ca  Thu Feb 20 11:54:26 2003
Return-Path: <cdutchyn@cs.ubc.ca>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9803E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Feb 2003 11:54:26 -0800 (PST)
Received: from pedigree.cs.ubc.ca (pedigree.cs.ubc.ca [142.103.6.50])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DDDF743FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Feb 2003 11:54:25 -0800 (PST)
	(envelope-from cdutchyn@cs.ubc.ca)
Received: from CYPRESS (cypress.cs.ubc.ca [142.103.11.23])
	by pedigree.cs.ubc.ca (8.11.4/8.11.4) with SMTP id h1KJsPm23997
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Feb 2003 11:54:25 -0800 (PST)
Message-Id: <IBEEKBFFOPAMNCAPIALGGEILCAAA.cdutchyn@cs.ubc.ca>
Date: Thu, 20 Feb 2003 11:54:25 -0800
From: "Christopher Dutchyn" <cdutchyn@cs.ubc.ca>
To: <FreeBSD-gnats-submit@freebsd.org>
Subject: BP6 ACPI errors - AML incorrect

>Number:         48494
>Category:       kern
>Synopsis:       BP6 ACPI errors - AML incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    njl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 20 12:00:07 PST 2003
>Closed-Date:    Sun Dec 14 12:30:05 PST 2003
>Last-Modified:  Sun Dec 14 12:30:05 PST 2003
>Originator:     Christopher Dutchyn
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
NONE
>Environment:
>Description:
boot FreeBSD 5.0-RELEASE or -CURRENT on BP6 with RU revision
BIOS

>How-To-Repeat:
	look at dmesg output

>Fix:
	The problem seems to be an incorrect entry in the BP6 AML.  In particular,
the system
	inventory shows two processors in scope \_PR, called \_PR.CPU_ and
\_PR.CPU1.  But in
	scope \_TZ_, ThermalZone THRM, Name _PSL, Package 0x1, there is a reference
to \_PR.CPU0.

	I don't currently have the time nor tools to attempt to load a modified
AML.  But perhaps
	someone can confirm that this is suspect and then I'll actually try it.


Chris Dutchyn
cdutchyn@cs.ubc.ca

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Mon Feb 24 13:18:57 PST 2003 
Responsible-Changed-Why:  
Misfiled PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48494 
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Sun Jul 13 22:58:00 PDT 2003 
State-Changed-Why:  
Can you please retry with 5.1-RELEASE or 5.1-CURRENT? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48494 
Responsible-Changed-From-To: freebsd-bugs->acpi-jp@jp.FreeBSD.org 
Responsible-Changed-By: kris 
Responsible-Changed-When: Mon Jul 14 01:29:23 PDT 2003 
Responsible-Changed-Why:  
Assign to ACPI maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48494 

From: Pawel Worach <pawel.worach@telia.com>
To: freebsd-gnats-submit@FreeBSD.org, cdutchyn@cs.ubc.ca
Cc:  
Subject: Re: kern/48494: BP6 ACPI errors - AML incorrect
Date: Mon, 14 Jul 2003 17:04:29 +0200

 Here is a patch for the AML. This gets rid of all ACPI warnings
 on my BP6.
 
 --- abit.dsl.org        Mon Jul 14 06:20:41 2003
 +++ abit.dsl    Mon Jul 14 06:24:26 2003
 @@ -306,7 +306,7 @@
       {
           Method (_MSG, 1, NotSerialized)
           {
 -            Store (Local0, Local0)
 +            /* Store (Local0, Local0) */
           }
 
           Method (_SST, 1, NotSerialized)
 @@ -329,7 +329,7 @@
               If (LEqual (Arg0, 0x03)) {}
               If (LEqual (Arg0, 0x01)) {}
               If (LEqual (Arg0, 0x00)) {}
 -            Store (Local0, Local0)
 +            /* Store (Local0, Local0) */
           }
       }
 
 @@ -465,7 +465,7 @@
 
               Name (_PSL, Package (0x01)
               {
 -                \_PR.CPU0
 +                \_PR.CPU
               })
               Name (_TSP, 0x3C)
               Name (_TC1, 0x04)
 @@ -1636,7 +1636,7 @@
                               IRQNoFlags () {6}
                               DMA (Compatibility, NotBusMaster, Transfer8) {2}
                           })
 -                        Store (Local0, Local0)
 +                        /* Store (Local0, Local0) */
                           Return (BUF0)
                       }
 
 @@ -2023,7 +2023,7 @@
                               EXF1 ()
                           }
 
 -                        Store (Local0, Local0)
 +                        /* Store (Local0, Local0) */
                       }
 
                       Method (_CRS, 0, NotSerialized)
 
 howto:
 # acpidump -o abit.dsdt > abit.asl
 # iasl -d abit.dsdt
 # patch < abit.dsl.patch
 # isal abit.dsl
 
Responsible-Changed-From-To: acpi-jp@jp.FreeBSD.org->njl 
Responsible-Changed-By: njl 
Responsible-Changed-When: Fri Aug 8 09:45:15 PDT 2003 
Responsible-Changed-Why:  
I'm working on this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48494 

From: Nate Lawson <nate@root.org>
To: Christopher Dutchyn <cdutchyn@cs.ubc.ca>
Cc: Pawel Worach <pawel.worach@telia.com>,
	freebsd-gnats-submit@freebsd.org
Subject: Re: kern/48494: BP6 ACPI errors - AML incorrect
Date: Fri, 8 Aug 2003 09:45:11 -0700 (PDT)

 Thanks for the help Pawel.  I am working on making Store(Local0, Local0)
 be a NOP so it would work even with the original AML.
 
 -Nate

From: Kris Kennaway <kris@obsecurity.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/48494: BP6 ACPI errors - AML incorrect
Date: Fri, 15 Aug 2003 20:36:11 -0700

 Adding to audit trail
 
 ----- Forwarded message from Christopher Dutchyn <cdutchyn@cs.ubc.ca> -----
 
 X-Original-To: kkenn@localhost
 Delivered-To: kkenn@localhost.obsecurity.org
 Delivered-To: kris@freebsd.org
 Date: Tue, 22 Jul 2003 18:03:12 -0700 (PDT)
 From: Christopher Dutchyn <cdutchyn@cs.ubc.ca>
 To: Kris Kennaway <kris@freebsd.org>
 Cc: freebsd-bugs@freebsd.org, pawel.worach@telia.com
 Subject: Re: kern/48494: BP6 ACPI errors - AML incorrect
 In-Reply-To: <200307140558.h6E5wFbf060314@freefall.freebsd.org>
 X-UIDL: 1ab79120f3ca85fffb689f34f1b9e924
 X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.13.7.2
 
 
 The BP6 ACPI update works.  I had to install the acpitools port, and add
 the dsdt load into my /boot/loader.conf to make it work.
 
 Chris Dutchyn
 
 
 ----- End forwarded message -----

From: Nate Lawson <nate@root.org>
To: Pawel Worach <pawel.worach@telia.com>,
	Christopher Dutchyn <cdutchyn@cs.ubc.ca>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/48494
Date: Mon, 24 Nov 2003 16:31:16 -0800 (PST)

 Could you please tell me if you have this problem if you disable the dsdt
 load in loader.conf?  It may have been fixed.  If not, it will be after an
 import of ACPI-CA (after 5.2R).
 
 -Nate
State-Changed-From-To: feedback->closed 
State-Changed-By: njl 
State-Changed-When: Sun Dec 14 12:24:48 PST 2003 
State-Changed-Why:  
The import of 1203 has fixed the Store(Local0, Local0) problem so your 
floppy will work even without editing the AML.  However, you may still 
have to change the CPU_ line. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48494 
>Unformatted:
 >System: FreeBSD azure.bc.hsia.telus.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0:
 Wed Feb 19 16:10:23 PST
 2003 chrys@azure.bc.hsia.telus.net:/usr/obj/usr/src/sys/AZURE i386
