From owner-freebsd-acpi@FreeBSD.ORG Fri Jul 14 17:35:26 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11A1316A4DA for ; Fri, 14 Jul 2006 17:35:26 +0000 (UTC) (envelope-from mistry.7@osu.edu) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92FDB43D45 for ; Fri, 14 Jul 2006 17:35:25 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (am-productions.biz [69.61.164.22]) (authenticated bits=0) by mail.united-ware.com (8.13.6/8.13.6) with ESMTP id k6EHgLm3052013 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Jul 2006 13:42:28 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-acpi@freebsd.org Date: Fri, 14 Jul 2006 13:35:49 -0400 User-Agent: KMail/1.9.1 References: <200606232251.15593.robertsg@westnet.com.au> <449EB6B4.1010601@root.org> In-Reply-To: <449EB6B4.1010601@root.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5847626.U76Kvn8v82"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200607141336.01575.mistry.7@osu.edu> X-Spam-Status: No, score=-4.5 required=5.0 tests=ALL_TRUSTED,BAYES_60, MYFREEBSD2 autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.88.2/1599/Fri Jul 14 01:35:31 2006 on mail.united-ware.com X-Virus-Status: Clean Cc: Subject: Re: acpi: bad write to port X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jul 2006 17:35:26 -0000 --nextPart5847626.U76Kvn8v82 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 25 June 2006 12:15, Nate Lawson wrote: >> The IO access has always been going on, we just started catching it > recently. Those are the CMOS/RTC ports and it's not appropriate > for the BIOS to access them. > > This is from OsdHardware.c log: > revision 1.18 > date: 2006/03/29 06:41:56; author: njl; state: Exp; lines: +76 > -0 Add a blacklist for bad IO ports that AML should never touch.=20 > It seems some systems were designed so that AML writes to various > resources shared with OS drivers, including the RTC, PIC, PCI, etc. > These writes could collide with writes by the OS and should never > be performed. For now, we print a message if such an access > occurs, but do not block it. To block the access, the tunable > "debug.acpi.block_bad_io" can be set to 1. In the future, we will > flip the switch and this will become the default. > > Information about this problem was found in Microsoft KB 283649.=20 > They block IO accesses if the BIOS indicates via _OSI that it is > Windows 2001 or higher. They always block accesses to the PIC, > cascaded PIC, and ELCRs, no matter how old the BIOS. > > > To test if disabling these writes hurts your system, try booting > with debug.acpi.block_bad_io=3D1 set at the loader prompt. If > there's a problem, let me know what happened. This helps us gather > info for when we flip the switch to disabling such writes by > default. I'm seeing a small problem when setting the debug.acpi.block_bad_io=3D1=20 tunable. The system no longer automatically powers off=20 with "halt -p". Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...2 0 1 0 0 done All buffers synced. Uptime: 7h52m23s ZapTel shutdown! acpi: bad write to port 0x070 (8), val 0x42 ACPI-0519: *** Error: Handler for [SystemIO] returned=20 AE_BAD_PARAMETER ACPI-0610: *** Error: Method execution failed [\_PTS] (Node=20 0xc1ad30a0), AE_BAD_PARAMETER AcpiEnterSleepStatePrep failed - AE_BAD_PARAMETER The operating system has halted. Please press any key to reboot. http://am-productions.biz/docs/cathode.asl http://am-productions.biz/docs/cathode.dmesg http://am-productions.biz/docs/cathode.pciconf =2D-=20 Anish Mistry --nextPart5847626.U76Kvn8v82 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEt9YBxqA5ziudZT0RAlATAJ9u1zvH9d2UisBZbxONPcnVRXyxEwCfR+l3 IHXrfU2NFR0VFVujQ4JSTmg= =qf8d -----END PGP SIGNATURE----- --nextPart5847626.U76Kvn8v82--