Subject: ACPI panic. (in acpibat)
To: None <port-i386@netbsd.org>
From: Andrew Gillham <gillham@vaultron.com>
List: port-i386
Date: 01/08/2003 15:40:35
Hi,

My Dell Latitude CPx panics if I have the acpibat driver enabled.
Below is the boot messages / traceback from my serial console.

-Andrew

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

kenter: 0x00002000
acpi: wakecode is installed at 0x2000, size=336
[ using 510460 bytes of netbsd ELF symbol table ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6L (ACPI_BAT) #1: Wed Jan  8 07:31:59 PST 2003
    root@dragon:/usr/src/sys/arch/i386/compile/ACPI_BAT
total memory = 255 MB
avail memory = 231 MB
using 3295 buffers containing 13180 KB of memory
BIOS32 rev. 0 found at 0xffe90
PCI BIOS rev. 2.1 found at 0xfc0ae
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfbd20, size 128 bytes (6 entries)
PCI Interrupt Router at 000:07:0 (Intel 82371MX Mobile PCI I/O IDE Xcelerator (M
PIIX))
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:03:0 0x104c 0xac1c   A  0x03  11  0    already assigned
000:03:1 0x104c 0xac1c   A  0x03  11  0    already assigned
000:07:2 0x8086 0x7112   D  0x03  11  0    already assigned
000:08:0 0x125d 0x1998   A  0x01   5  0    already assigned
000:13:0 0x10b7 0x9200   A  0x02  10  0    already assigned
001:00:0 0x1002 0x4c4d   A  0x00  11  0    already assigned
------------------------------------------
PCI fixup examining 8086:7190
PCI fixup examining 8086:7191
PCI fixup examining 1002:4c4d
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 104c:ac1c
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI fixup examining 104c:ac1c
PCI bridge 2: primary 0, secondary 3, subordinate 3
PCI fixup examining 8086:7110
PCI fixup examining 8086:7111
PCI fixup examining 8086:7112
PCI fixup examining 8086:7113
PCI fixup examining 125d:1998
PCI fixup examining 10b7:9200
PCI bus #3 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7190 
	10h mem  0xf4000000 0x04000000
		[OK]
000:01:0 0x8086 0x7191 
		[OK]
000:03:0 0x104c 0xac1c 
	10h mem  0x00000000 0x00001000
		[NG]
000:03:1 0x104c 0xac1c 
	10h mem  0x00000000 0x00001000
		[NG]
000:07:0 0x8086 0x7110 
		[OK]
000:07:1 0x8086 0x7111 
	20h port 0x00000860 0x00000010
		[OK]
000:07:2 0x8086 0x7112 
	20h port 0x0000dce0 0x00000020
		[OK]
000:07:3 0x8086 0x7113 
		[OK]
000:08:0 0x125d 0x1998 
	10h port 0x0000d800 0x00000100
	14h mem  0xfaffe000 0x00002000
		[OK]
000:13:0 0x10b7 0x9200 
	10h port 0x0000dc00 0x00000080
	14h mem  0xfaffdc00 0x00000080
		[OK]
001:00:0 0x1002 0x4c4d 
	10h mem  0xfd000000 0x01000000
	14h port 0x0000ec00 0x00000100
	18h mem  0xfcfff000 0x00001000
		[OK]
--------------------------[  2 devices bogus]
 Physical memory end: 0x0ffcb000
 PCI memory mapped I/O space start: 0x10000000
[PCIBIOS fixup stage]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x7190 
	10h mem  0xf4000000 0x04000000
		[OK]
000:01:0 0x8086 0x7191 
		[OK]
000:03:0 0x104c 0xac1c 
	10h mem  0x10000000 0x00001000
		[OK]
000:03:1 0x104c 0xac1c 
	10h mem  0x10001000 0x00001000
		[OK]
000:07:0 0x8086 0x7110 
		[OK]
000:07:1 0x8086 0x7111 
	20h port 0x00000860 0x00000010
		[OK]
000:07:2 0x8086 0x7112 
	20h port 0x0000dce0 0x00000020
		[OK]
000:07:3 0x8086 0x7113 
		[OK]
000:08:0 0x125d 0x1998 
	10h port 0x0000d800 0x00000100
	14h mem  0xfaffe000 0x00002000
		[OK]
000:13:0 0x10b7 0x9200 
	10h port 0x0000dc00 0x00000080
	14h mem  0xfaffdc00 0x00000080
		[OK]
001:00:0 0x1002 0x4c4d 
	10h mem  0xfd000000 0x01000000
	14h port 0x0000ec00 0x00000100
	18h mem  0xfcfff000 0x00001000
		[OK]
--------------------------[  0 devices bogus]
mainbus0 (root)
 tbxface-0198 [01] AcpiLoadTables        : ACPI Tables successfully acquired
Parsing all Control Methods:
Table [DSDT] - 355 Objects with 51 Devices 152 Methods 2 Regions
ACPI Namespace successfully loaded at root 0xc05b1738
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 648.05 MHz, id 0x686
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu0: L2 cache 256 KB 32b/line 8-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: 8 page colors
acpi0 at mainbus0
acpi0: X/RSDT: OemId <DELL  , CPi R  ,27d2051c>, AslId <ASL ,00000061>
evxfevnt-0173 [02] AcpiEnable            : Transition to ACPI mode successful
acpi0: SCI interrupting at irq 9
acpi_pci_fixup starts:
acpi0: fixing up PCI bus 0 at level 1
acpi0: fixing up PCI bus 1 at level 2
acpi0: fixing up PCI bus 2 at level 2
ACPI Object Type 0x0c at acpi0 not configured
acpiacad0 at acpi0 (ACPI0003): ACPI AC Adapter
acpiacad0: AC adapter connected
acpibat0 at acpi0 (PNP0C0A-1): ACPI Battery (Control Method)
dsobject-0296: *** Warning: Buffer created with zero length in AML
uvm_fault(0xc05929c0, 0x0, 0, 2) -> e
kernel: page fault trap, code=0
Stopped in pid 0 (swapper) at   AcpiDsExecuteArguments+0x109:   movl    %edx,   
   0
x24(%eax)
db> tr
AcpiDsExecuteArguments(c0b1c0a8,c0b1c0a8,0,0,200) at AcpiDsExecuteArguments+0x10
9
AcpiDsGetBufferArguments(c0b1fc28,c0633864,c0633870,c0442324,c06338a4) at AcpiDs
GetBufferArguments+0x7d
AcpiExResolveNodeToValue(c0b001dc,c0b00028,c0b001dc,c05430dd,c06338e4) at AcpiEx
ResolveNodeToValue+0x225
AcpiExResolveToValue(c0b001dc,c0b00028,c0b00028,c041b997,0) at AcpiExResolveToVa
lue+0xb0
AcpiDsResolveOperands(c0b00028,c0b18aa8,9,c0438f43,c0b00028) at AcpiDsResolveOpe
rands+0x5e
AcpiDsExecEndOp(c0b00028,c0633980,c0b00040,c0b00038,c0b1d028) at AcpiDsExecEndOp
+0x29b
AcpiPsParseLoop(c0b00028,c0b04028,0,c0438aa1,c0b00c28) at AcpiPsParseLoop+0x93b
AcpiPsParseAml(c0b00c28,0,c0633b10,3,0) at AcpiPsParseAml+0xd6
AcpiPsxExecute(c0b051a8,0,c0633b10,c0433349,c0b051a8) at AcpiPsxExecute+0x291
AcpiNsExecuteControlMethod(c0b051a8,0,c0633b10,0,0) at AcpiNsExecuteControlMetho
d+0xee
AcpiNsEvaluateByHandle(c0b051a8,0,c0633bd0,c0442309,c0633bd4) at AcpiNsEvaluateB
yHandle+0xfd
AcpiNsEvaluateRelative(c0b054a8,c054a26d,0,c0633bd0,c0b054a8) at AcpiNsEvaluateR
elative+0x170
AcpiEvaluateObject(c0b054a8,c054a26d,0,c0633c48,c0633c48) at AcpiEvaluateObject+
0x18d
acpi_eval_struct(c0b054a8,c054a26d,c0633c48,16,c0b2083c) at acpi_eval_struct+0x3
2
acpibat_get_info(c0b20800,0,c04492a4,c0b20800,c054fe34) at acpibat_get_info+0x4b

acpibat_attach(c0b16c00,c0b20800,c0633d58,c02aa3a9,c0b20800) at acpibat_attach+0
xbd
config_attach(c0b16c00,c054fdfc,c0633d58,c04462cc,c0b1b280) at config_attach+0x2
ed
config_found_sm(c0b16c00,c0633d58,c04462cc,0,c0b16c1c) at config_found_sm+0x2f
acpi_build_tree(c0b16c00,c0544a20,c0633db0,c0446047,c0b16c00) at acpi_build_tree
+0x105
acpi_attach(c0afcfc0,c0b16c00,c0633e88,c02aa3a9,c0b16c00) at acpi_attach+0x1a8
config_attach(c0afcfc0,c054fd70,c0633e88,c034bda4,c0afcfc0) at config_attach+0x2
ed
config_found_sm(c0afcfc0,c0633e88,c034bda4,0,c054fe34) at config_found_sm+0x2f
mainbus_attach(0,c0afcfc0,0,c02aa3a9,c0afcfc0) at mainbus_attach+0xb1
config_attach(0,c054f0a4,0,0,9) at config_attach+0x2ed
config_rootfound(c048d8e0,0,c0633f60,c032267e,c05541c0) at config_rootfound+0x3f

cpu_configure(9,c0592a80,c0633fa0,c0294727,c0592a80) at cpu_configure+0x29
configure(c062f010,62f000,638000,0,0) at configure+0x4a
main(0,0,0,0,0) at main+0x392
db>