From owner-freebsd-stable@FreeBSD.ORG Wed Sep 3 14:33:08 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B52FC16A4BF for ; Wed, 3 Sep 2003 14:33:08 -0700 (PDT) Received: from cirb503493.alcatel.com.au (c211-28-27-130.belrs2.nsw.optusnet.com.au [211.28.27.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 951D143FEA for ; Wed, 3 Sep 2003 14:33:02 -0700 (PDT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])h83LX0gh092421 for ; Thu, 4 Sep 2003 07:33:00 +1000 (EST) (envelope-from jeremyp@cirb503493.alcatel.com.au) Received: (from jeremyp@localhost) by cirb503493.alcatel.com.au (8.12.8/8.12.8/Submit) id h83LWxnk092420 for freebsd-stable@freebsd.org; Thu, 4 Sep 2003 07:32:59 +1000 (EST) Date: Thu, 4 Sep 2003 07:32:58 +1000 From: Peter Jeremy To: freebsd-stable@freebsd.org Message-ID: <20030903213258.GA91547@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: System hanging in acpi during shutdown X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 21:33:08 -0000 This morning, I upgraded my main system to an up-to-date -STABLE including acpi and it now hangs during shutdown after reporting: Waiting (max 60 seconds) for system process `vnlru' to stop...stopped If I set hw.acpi.disable_on_poweroff=0 then the shutdown completes but poweroff fails with (hand copied): ACPI-1287: ***Error: Method execution failed [\_PTS] (Node 0xc21ed450), AE_AML_REGION_LIMIT AcpiEnterSleepStatePrep failed - AE_AML_REGION_LIMIT Does anyone have any suggestions other than either removing acpi? Forcing a crashdump during the hang gives me: #9 0xc02995ec in Debugger (msg=0xc02fa009 "manual escape to debugger") at machine/cpufunc.h:67 #10 0xc0293f9a in scgetc (sc=0xc03669c0, flags=2) at /usr/src/sys/dev/syscons/syscons.c:3164 #11 0xc0290d35 in sckbdevent (thiskbd=0xc035f2e0, event=0, arg=0xc03669c0) at /usr/src/sys/dev/syscons/syscons.c:617 #12 0xc028791a in atkbd_intr (kbd=0xc035f2e0, arg=0x0) at /usr/src/sys/dev/kbd/atkbd.c:464 #13 0xc02af378 in atkbd_isa_intr (arg=0xc035f2e0) at /usr/src/sys/isa/atkbd_isa.c:140 #14 0xc029b560 in doreti () #15 0xc0140e44 in AcpiHwSetMode (Mode=2) at /usr/src/sys/contrib/dev/acpica/hwacpi.c:233 #16 0xc013baf9 in AcpiDisable () at /usr/src/sys/contrib/dev/acpica/evxfevnt.c:212 #17 0xc01507d6 in acpi_Disable (sc=0xc21f4f80) at /usr/src/sys/dev/acpica/acpi.c:1468 #18 0xc014fe86 in acpi_shutdown_pre_sync (arg=0xc21f4f80, howto=0) at /usr/src/sys/dev/acpica/acpi.c:917 #19 0xc018bf48 in boot (howto=0) at /usr/src/sys/kern/kern_shutdown.c:223 #20 0xc018bd98 in reboot (p=0xdf2fe2a0, uap=0xe1c42f80) at /usr/src/sys/kern/kern_shutdown.c:149 Frame #15 suggests that the code is in AcpiOsWritePort() when I entered the debugger and this agrees with the results from playing around in DDB during another shutdown attempt (which reported that the code was blocked in bus_space_write_1() - which is an 'outb'. This is a Gigabyte GA-7VRXP motherboard and dmesg reports: FreeBSD 4.9-PRERELEASE #7: Wed Sep 3 21:21:26 EST 2003 root@server.c20257.belrs2.nsw.optusnet.com.au:/home/obj/usr/src/sys/server Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1533395254 Hz CPU: AMD Athlon(tm) XP 1800+ (1533.40-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383fbff AMD Features=0xc0480000 real memory = 536805376 (524224K bytes) avail memory = 518373376 (506224K bytes) Preloaded elf kernel "kernel" at 0xc03dc000. Pentium Pro MTRR support enabled Using $PIR table, 12 entries at 0xc00f7b10 acpi0: on motherboard acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_cpu0: on acpi0 acpi_button0: on acpi0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xe7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 drm0: mem 0xdf000000-0xdf7fffff,0xdfefc000-0xdfefffff,0xdc000000-0xddffffff irq 10 at device 0.0 on pci1 info: [drm] AGP at 0xe0000000 128MB info: [drm] Initialized mga 3.1.0 20021029 on minor 0 pcm0: port 0xec00-0xec3f irq 10 at device 8.0 on pci0 pcm0: puc0: port 0xe400-0xe41f,0xe800-0xe81f mem 0xdfffe000-0xdfffefff,0xdffff000-0xdfffffff irq 10 at device 11.0 on pci0 sio2: type 16550A sio3: type 16550A sio4: type 16550A sio5: type 16550A pci0: (vendor=0x1415, dev=0x9500) at 11.1 irq 10 viapropm0: SMBus I/O base at 0x400 viapropm0: port 0x400-0x40f at device 17.0 on pci0 viapropm0: could not allocate bus space device_probe_and_attach: viapropm0 attach returned 6 atapci0: port 0xfc00-0xfc0f at device 17.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd400-0xd41f irq 10 at device 17.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd000-0xd01f irq 10 at device 17.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered rl0: port 0xcc00-0xccff mem 0xdfffcf00-0xdfffcfff irq 10 at device 19.0 on pci0 rl0: Ethernet address: 00:20:ed:31:f3:b5 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto uhci2: port 0xc800-0xc81f irq 10 at device 20.0 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xc400-0xc41f irq 10 at device 20.1 on pci0 usb3: on uhci3 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered pci0: at 20.2 irq 10 isa0: on motherboard orm0: