From owner-acpi-jp@jp.FreeBSD.org Thu Mar 25 16:34:11 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i2P7YBL89354;
	Thu, 25 Mar 2004 16:34:11 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from smtp6.bahnhof.se (mail.bahnhof.se [213.136.33.1])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id i2P7Y9d89349
	for <acpi-jp@jp.freebsd.org>; Thu, 25 Mar 2004 16:34:10 +0900 (JST)
	(envelope-from vicknesan@bigfoot.com)
Received: from localhost (mail.bahnhof.se [213.136.33.1])
	by smtp6.bahnhof.se (Postfix) with ESMTP id DE7D81B5CE9
	for <acpi-jp@jp.freebsd.org>; Thu, 25 Mar 2004 08:34:07 +0100 (CET)
Received: from smtp6.bahnhof.se ([213.136.33.1])
 by localhost (mfilter1.bahnhof.se [10.0.1.21]) (amavisd-new, port 10024)
 with ESMTP id 01933-05 for <acpi-jp@jp.freebsd.org>;
 Thu, 25 Mar 2004 08:34:06 +0100 (CET)
Received: from lighthouse (unknown [81.170.158.18])
	by smtp6.bahnhof.se (Postfix) with ESMTP id F18F61B5CDC
	for <acpi-jp@jp.freebsd.org>; Thu, 25 Mar 2004 08:34:06 +0100 (CET)
From: Vicknesan AYADURAI <vicknesan@bigfoot.com>
X-X-Sender: vick@lighthouse.homeunix.org
To: acpi-jp@jp.FreeBSD.org
Message-ID: <20040325073954.Y62609@lighthouse.homeunix.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Scanned: by amavisd-new at bahnhof.se
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Thu, 25 Mar 2004 08:34:06 +0100
X-Sequence: acpi-jp 3147
Subject: [acpi-jp 3147] ACPI panics 4.9-RELEASE kernel upon bootup!
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: vicknesan@bigfoot.com
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040307

Hi all,

Would just like to point out that the first part of the line (from the
on-line handbook Sec 6.16.3.3):

"Panics are relatively rare for ACPI and are the top priority to be
fixed."

is FALSE -- and I'm sincerely hoping the second part of the sentence
is TRUE!

I've got a new HP Compaq NC6000 notebook, which doesn't seem to fully
support APM, which is what I'm used to for battery monitoring (with
xbatt) and power management.

Specifically, the 'apm' command doesn't know battery levels (displays
"unknown"). AC-power detection works; standby works; suspend seems to
work, although startup after suspend hangs after a while (I think I
need to tweak something).

However, the fan on the notebook is always-on full-blast, giving a
good impression of a 1974 vacuum-cleaner. This, combined with the fact
that a notebook without battery-level monitoring becomes tricky to use
(un-usable?), led me to try out ACPI, which the notebook does support.

The sequence of events is then as follows:

a. I started with a clean installation of 4.9-RELEASE over the Net.

b. Changed the kernel config file from GENERIC->PLAGUE as follows:

> diff GENERIC PLAGUE
25c25
< ident         GENERIC
---
> ident         PLAGUE
271a272,273
> device                acpica
> options               ACPI_DEBUG


c. Ran 'config PLAGUE && cd ../../compile/PLAGUE && make depend all
install' and rebooted.

d. System boots up (apparently) normally. The notebook fan actually
slows down and quietens during the bootup sequence as ACPI kicks in (I
assume).

e. Login prompt appears after bootup/dmesg messages.

f. Don't touch anything, wait at login prompt. ~20 seconds later CRASH!

g. A 'dmesg' sample output is at the end if this mail.


Is there something really basic which I've overlooked in setting this
up? This crash is repeatable, and occurs with 100% certainty if ACPI
is enabled. There's very little to set in the BIOS, certainly nothing
related to power-management/battery-usage, etc.

Incidentally, I did do an install of 5.2.1-RELEASE and that booted up
OK with ACPI - insofar as the fan going quiet during the bootup
sequence just like in 4.9, but with no subsequent kernel panics.
However, battery levels don't seem recognizable (with the 'acpiconf -i
0' command), and standby, shutdown, etc., with the 'acpiconf -s X'
commands causes the notebook to freeze. I tried out the 5.2.1-R just
to check out if FBSD's ACPI works at all on the notebook, but will
have to revert back to 4.9 since I need to support an array of legacy
applications built on 4.x).

Any help appreciated,
vick


---- Dmesg output <START> ----

ACPI debug layer 0x0  debug level 0x0
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
        FreeBSD 4.9-RELEASE #19: Thu Mar 25 07:44:19 GMT 2004
            root@dhcp110.verkstad.net:/usr/src/sys/compile/PLAGUE
            Timecounter "i8254"  frequency 1193182 Hz
            CPU: Intel(R) Pentium(R) M processor 1400MHz (1395.48-MHz 686-class CPU)
      Origin = "GenuineIntel"  Id = 0x695  Stepping = 5
        Features=0xa7e9f9bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
        real memory  = 268238848 (261952K bytes)
    config> di bt0
    config> di aic0
    config> di aha0
    config> di adv0
    config> q
    avail memory = 255266816 (249284K bytes)
    Preloaded elf kernel "kernel" at 0xc0596000.
    Preloaded userconfig_script "/boot/kernel.conf" at 0xc059609c.
    Pentium Pro MTRR support enabled
    md0: Malloc disk
    acpi0: <COMPAQ HP0890  > on motherboard
    evrgnini-0351: *** Error: Could not install PciConfig handler for C046, AE_ALREADY_EXISTS
    evrgnini-0351: *** Error: Could not install PciConfig handler for C046, AE_ALREADY_EXISTS
    evrgnini-0351: *** Error: Could not install PciConfig handler for C046, AE_ALREADY_EXISTS
    evrgnini-0351: *** Error: Could not install PciConfig handler for C046, AE_ALREADY_EXISTS
    acpi0: power button is handled as a fixed feature programming model.
    Timecounter "ACPI-fast"  frequency 3579545 Hz
    acpi_cpu0: <CPU> on acpi0
    acpi_tz0: <thermal zone> on acpi0
    acpi_tz1: <thermal zone> on acpi0
    acpi_tz2: <thermal zone> on acpi0
    acpi_ec0: <embedded controller> port 0x66,0x62 on acpi0
    acpi_cmbat0: <Control method Battery> on acpi0
    acpi_cmbat1: <Control method Battery> on acpi0
    acpi_acad0: <AC adapter> on acpi0
    acpi_button0: <Sleep Button> on acpi0
    acpi_lid0: <Control Method Lid Switch> on acpi0
    can't fetch resources for \\_SB_.C1D3 - AE_AML_INVALID_RESOURCE_TYPE
    acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
    npx0: <math processor> on motherboard
    npx0: INT 16 interface
    pcib0: <Host to PCI bridge> on motherboard
    pci0: <PCI bus> on pcib0
    agp0: <Intel 82855 host to AGP bridge> mem 0xb0000000-0xbfffffff at device 0.0 on pci0
    pcib1: <PCI to PCI bridge (vendor=8086 device=3341)> at device 1.0 on pci0
    pci1: <PCI bus> on pcib1
    pci1: <ATI model 4e50 graphics accelerator> at 0.0 irq 10
    uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0x38c0-0x38df irq 10 at device 29.0 on pci0
    usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
    usb0: USB revision 1.0
    uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub0: 2 ports with 2 removable, self powered
    uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0x38e0-0x38ff irq 10 at device 29.1 on pci0
    usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
    usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
    usb1: USB revision 1.0
    uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub1: 2 ports with 2 removable, self powered
    uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0x3c00-0x3c1f irq 10 at device 29.2 on pci0
    usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
    usb2: USB revision 1.0
    uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
    uhub2: 2 ports with 2 removable, self powered
    pci0: <USB controller> at 29.7 irq 10
    pcib2: <PCI to PCI bridge (vendor=8086 device=2448)> at device 30.0 on pci0
    pci2: <PCI bus> on pcib2
    pcic0: <YENTA PCI-CardBus Bridge> mem 0x90080000-0x90080fff irq 10 at device 6.0 on pci2
    pccard0: <PC Card 16-bit bus (classic)> on pcic0
    pcic1: <YENTA PCI-CardBus Bridge> mem 0x90100000-0x90100fff irq 10 at device 6.1 on pci2
    pccard1: <PC Card 16-bit bus (classic)> on pcic1
    pci2: <unknown card> (vendor=0x1217, dev=0x7110) at 6.2 irq 10
    pcic2: <YENTA PCI-CardBus Bridge> mem 0x90200000-0x90200fff irq 10 at device 6.3 on pci2
    pccard2: <PC Card 16-bit bus (classic)> on pcic2
    bge0: <Broadcom BCM5705M Gigabit Ethernet, ASIC rev. 0x3003> mem 0x90000000-0x9000ffff irq 11 at device 14.0 on pci2
    bge0: Ethernet address: 00:08:02:da:cd:3a
    miibus0: <MII bus> on bge0
    brgphy0: <BCM5705 10/100/1000baseTX PHY> on miibus0
    brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
    isab0: <PCI to ISA bridge (vendor=8086 device=24cc)> at device 31.0 on pci0
    isa0: <ISA bus> on isab0
    atapci0: <Generic PCI ATA controller> port 0x3c20-0x3c2f,0-0x3,0-0x7,0-0x3,0-0x7 irq 10 at device 31.1 on pci0
    ata0: at 0x1f0 irq 14 on atapci0
    ata1: at 0x170 irq 15 on atapci0
    pci0: <unknown card> (vendor=0x8086, dev=0x24c5) at 31.5 irq 11
    pci0: <unknown card> (vendor=0x8086, dev=0x24c6) at 31.6 irq 11
    orm0: <Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd1fff,0xd2000-0xd2fff on isa0
    pmtimer0 on isa0
    fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
    fdc0: FIFO enabled, 8 bytes threshold
    fd0: <1440-KB 3.5" drive> on fdc0 drive 0
    atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
    atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
    kbd0 at atkbd0
    psm0: <PS/2 Mouse> irq 12 on atkbdc0
    psm0: model Generic PS/2 mouse, device ID 0
    vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
    sc0: <System console> at flags 0x100 on isa0
    sc0: VGA <16 virtual consoles, flags=0x300>
    sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
    sio0: type 16550A
    sio1: configured irq 3 not in bitmap of probed irqs 0
    ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
    ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
    ppc0: FIFO with 16/16/8 bytes threshold
    plip0: <PLIP network interface> on ppbus0
    lpt0: <Printer> on ppbus0
    lpt0: Interrupt-driven port
    ppi0: <Parallel I/O> on ppbus0
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ad0: 28615MB <TOSHIBA MK3021GAS> [58140/16/63] at ata0-master BIOSDMA
Mounting root from ufs:/dev/ad0s3a


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x70
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0263064
stack pointer           = 0x10:0xc0473408
frame pointer           = 0x10:0xc047342c
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
                        processor eflags        = interrupt enabled, resume, IOPL = 0
                        current process         = Idle
                        interrupt mask          = net tty bio cam
                        trap number             = 12
                        panic: page fault

                        syncing disks...
                        done
                        Uptime: 30s
                        Terminate ACPI
                        0xc1606528 Len 0008   nsutils-621
                        0xc1771728 Len 0008   nsutils-621
                        0xc15bd828 Len 0234   utalloc-255
                        0xc15bdc28 Len 0234   utalloc-255
                        0xc15f7428 Len 0234   utalloc-255
                        0xc15f8aa8 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc15f8a28 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc15bfd28 Len 001c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc160e728 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc160e9a8 Len 0028   utalloc-255 ObjType       Device R%hd
                        0xc160ea28 Len 0028   utalloc-255 ObjType       Device R%hd
                        0xc160eb28 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc160d828 Len 0030   utalloc-255 PARSE-SCOPE StateObj
                        0xc160d928 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc160daa8 Len 0030   utalloc-255 RESULT StateObj
                        0xc160db28 Len 0028   utalloc-255 ObjType       Device R%hd
                        0xc160dba8 Len 0028   utalloc-255 ObjType       Device R%hd
                        0xc160dda8 Len 0030   utalloc-255 CONTROL StateObj
                        0xc160dea8 Len 0030   utalloc-255 RESULT StateObj
                        0xc160c0a8 Len 0028   utalloc-255 ObjType       Device R%hd
                        0xc160c1a8 Len 0030   utalloc-255 WALK-SCOPE StateObj
                        0xc160c328 Len 0030   utalloc-255 PARSE-SCOPE StateObj
                        0xc160c3a8 Len 0030   utalloc-255 RESULT StateObj
                        0xc160c428 Len 0030   utalloc-255 PARSE-SCOPE StateObj
                        0xc160c4a8 Len 0030   utalloc-255 THREAD StateObj
                        0xc160c5a8 Len 0030   utalloc-255 PARSE-SCOPE StateObj
                        0xc160c628 Len 0030   utalloc-255 RESULT StateObj
                        0xc160c6a8 Len 0030   utalloc-255 RESULT StateObj
                        0xc160c728 Len 0030   utalloc-255 WALK-SCOPE StateObj
                        0xc160c8a8 Len 0030   utalloc-255 CONTROL StateObj
                        0xc160c928 Len 0030   utalloc-255 ROOT-PARSE-SCOPE StateObj
                        0xc160c9a8 Len 0030   utalloc-255 WALK-SCOPE StateObj
                        0xc160ca28 Len 0030   utalloc-255 CONTROL StateObj
                        0xc160cb28 Len 0030   utalloc-255 RESULT StateObj
                        0xc160cba8 Len 0030   utalloc-255 RESULT StateObj
                        0xc160cca8 Len 0030   utalloc-255 ROOT-PARSE-SCOPE StateObj
                        0xc1603728 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc15c1028 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc1603528 Len 0028   utalloc-255 ObjType  AddrHandler R%hd
                        0xc15ceaa8 Len 0028   utalloc-255 ObjType       Device R%hd
                        0xc1603628 Len 0028   utalloc-255 ObjType      Thermal R%hd
                        0xc15c2d28 Len 0028   utalloc-255 ObjType      Thermal R%hd
                        0xc15c2e28 Len 001c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc15c2fa8 Len 0028   utalloc-255 ObjType       Notify R%hd
                        0xc15ce828 Len 0028   utalloc-255 ObjType       Notify R%hd
                        0xc15ce728 Len 0028   utalloc-255 ObjType       Notify R%hd
                        0xc15ce928 Len 0028   utalloc-255 ObjType      Thermal R%hd
                        0xc15cec28 Len 001c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc15ce7a8 Len 0030   utalloc-255 PARSE-SCOPE StateObj
                        0xc15be4a8 Len 001c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc15bce28 Len 001c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc15bffa8 Len 001c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc15be2a8 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc15be6a8 Len 0030   utalloc-255 ROOT-PARSE-SCOPE StateObj
                        0xc15be628 Len 001c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc15be328 Len 001c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc15be528 Len 001c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc15be5a8 Len 0030   utalloc-255 RESULT StateObj
                        0xc15ce528 Len 001c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc15bfda8 Len 002c   utalloc-255 ParseObj AmlOpcode %hX
                        0xc15fa9a8 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc15faf28 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc15bbda8 Len 0008  evrgnini-284
                        0xc15f56a8 Len 0028   utalloc-255 ObjType  AddrHandler R%hd
                        0xc15f5828 Len 0028   utalloc-255 ObjType       Device R%hd
                        0xc15ec8a8 Len 0028   utalloc-255 ObjType      Integer R%hd
                        0xc15e5ba8 Len 0028   utalloc-255 ObjType      Integer R%hd
                        Automatic reboot in 15 seconds - press a key on the console to abort
                        --> Press a key on the console to reboot,
                        --> or switch off the system now.

---- Dmesg output <END> ----

