From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 24 11:20:02 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9CD3916A41F for ; Sun, 24 Jun 2007 11:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7227413C46E for ; Sun, 24 Jun 2007 11:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5OBK26G068295 for ; Sun, 24 Jun 2007 11:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5OBK2Aa068294; Sun, 24 Jun 2007 11:20:02 GMT (envelope-from gnats) Resent-Date: Sun, 24 Jun 2007 11:20:02 GMT Resent-Message-Id: <200706241120.l5OBK2Aa068294@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Birgmeier Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0AF2916A400 for ; Sun, 24 Jun 2007 11:14:03 +0000 (UTC) (envelope-from martin@email.aon.at) Received: from email.aon.at (nat-warsl417-01.aon.at [195.3.96.119]) by mx1.freebsd.org (Postfix) with ESMTP id 6190013C4B9 for ; Sun, 24 Jun 2007 11:14:02 +0000 (UTC) (envelope-from martin@email.aon.at) Received: (qmail 9760 invoked from network); 24 Jun 2007 10:47:21 -0000 Received: from unknown (HELO email.aon.at) ([172.18.5.238]) (envelope-sender ) by fallback02.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 24 Jun 2007 10:47:21 -0000 Received: (qmail 26531 invoked from network); 24 Jun 2007 10:47:18 -0000 Received: from m1262p026.adsl.highway.telekom.at (HELO gandalf.xyzzy) ([80.121.29.186]) (envelope-sender ) by smarthub74.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 24 Jun 2007 10:47:18 -0000 Received: from gandalf.xyzzy (localhost.xyzzy [127.0.0.1]) by gandalf.xyzzy (8.13.8/8.13.8) with ESMTP id l5OAlGwB001980 for ; Sun, 24 Jun 2007 12:47:16 +0200 (CEST) (envelope-from martin@gandalf.xyzzy) Received: (from martin@localhost) by gandalf.xyzzy (8.13.8/8.13.8/Submit) id l5OAlF0Q001979; Sun, 24 Jun 2007 12:47:15 +0200 (CEST) (envelope-from martin) Message-Id: <200706241047.l5OAlF0Q001979@gandalf.xyzzy> Date: Sun, 24 Jun 2007 12:47:15 +0200 (CEST) From: Martin Birgmeier To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/113986: [patch] [acpi] viapm.ko kernel module incorrectly reprograms SMBus base address, thereby causing a hang on the ASUS A7V when trying to shutdown -p X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martin Birgmeier List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2007 11:20:02 -0000 >Number: 113986 >Category: kern >Synopsis: [patch] [acpi] viapm.ko kernel module incorrectly reprograms SMBus base address, thereby causing a hang on the ASUS A7V when trying to shutdown -p >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 24 11:20:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Martin Birgmeier >Release: FreeBSD 6.2-RELEASE i386 >Organization: MBi at home >Environment: System: FreeBSD gandalf.xyzzy 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Sat Jan 13 20:23:55 CET 2007 root@gandalf.xyzzy:/d/14.1/OBJ/FreeBSD/RELENG_6_2_0_RELEASE/src/sys/XYZZY i386 >Description: The Makefile for the viapm.ko kernel module (at sys/modules/i2c/controllers/viapm/Makefile) sets CFLAGS += -DVIAPM_BASE_ADDR=0x6000 which breaks the power-off function (shutdown -p) on my ASUS A7V motherboard. The reason for the latter is that the ACPI \_SI.SST method of the A7V bios only knows about the standard base address of the SMBus controller (0xe800). If the controller suddenly appears at another address, "empty space" will be read, causing an infinite loop while executing the method during acpi_shutdown_final() in sys/dev/acpica/acpi.c. This fixes i386/97468. p.s. The e-mail address is bogus as I am paranoid of junk mail. Please reply via adding to the PR. >How-To-Repeat: Use FreeBSD source as is. :-) >Fix: *** ./sys/modules/i2c/controllers/viapm/Makefile.ORIG Tue Nov 8 18:03:55 2005 --- ./sys/modules/i2c/controllers/viapm/Makefile Sun Jun 24 12:12:18 2007 *************** *** 4,9 **** KMOD = viapm SRCS = device_if.h bus_if.h isa_if.h iicbb_if.h pci_if.h smbus_if.h \ opt_isa.h viapm.c - CFLAGS += -DVIAPM_BASE_ADDR=0x6000 .include --- 4,8 ---- >Release-Note: >Audit-Trail: >Unformatted: