Subject: kern/32539: entering ddb when closing lid with ACPI
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <j+nbsd@2006.salmi.ch>
List: netbsd-bugs
Date: 01/15/2006 22:45:01
>Number:         32539
>Category:       kern
>Synopsis:       entering ddb when closing lid with ACPI
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 15 22:45:01 +0000 2006
>Originator:     Jukka Salmi
>Release:        NetBSD 3.99.15
>Environment:
System: NetBSD anole 3.99.15 NetBSD 3.99.15 (ANOLE.ACPI) #0: Sun Jan 15 16:47:26 CET 2006  build@moray.salmi.ch:/build/nbsd/i386/sys/arch/i386/compile/ANOLE.ACPI i386
Architecture: i386
Machine: i386
>Description:
On a IBM ThinkPad X40 running a NetBSD/i386 3.99.15 kernel with ACPI,
closing and reopening the lid causes the kernel to enter ddb:

acpilid0: lid closed.
Executed AML Breakpoint opcode
Stopped in pid 2.1 (sysmon) at	netbsd:cpu_Debugger+0x4:	leave	
db> bt
cpu_Debugger(c05c78bb,c063ae40,c05f2e70,136,1) at netbsd:cpu_Debugger+0x4
AcpiOsSignal(1,c063ae40,cbba4d6c,c04e5551,c1c0a21c) at netbsd:AcpiOsSignal+0x26
AcpiDsExecEndControlOp(c1c0a000,c1c07240,cbba4ddc,c04e2a87,0) at netbsd:AcpiDsExecEndControlOp+0x1f1
AcpiDsExecEndOp(c1c0a000,c1c07240,0,c1c0a000,c1c0ae1c) at netbsd:AcpiDsExecEndOp+0x7b
AcpiPsParseLoop(c1c0a000,c1c0ac00,c1bf6000,4008,c1c0ac00) at netbsd:AcpiPsParseLoop+0x530
AcpiPsParseAml(c1c0ac00,cbba4ed4,3,4,cbba4ed4) at netbsd:AcpiPsParseAml+0x289
AcpiPsxExecute(cbba4ed4,cbba4ed4,cbba4e5c,c04eff5d,cbba4ed4) at netbsd:AcpiPsxExecute+0x1c2
AcpiNsExecuteControlMethod(cbba4ed4,1,cbba4e7c,c04f9a3d,c1a56e60) at netbsd:AcpiNsExecuteControlMethod+0x46
AcpiNsEvaluateByHandle(cbba4ed4,0,cbba4e98,c1a56240,400) at netbsd:AcpiNsEvaluateByHandle+0x99
AcpiNsEvaluateRelative(cbba4f34,cbba4ed4,c06b59e0,282,c0646918) at netbsd:AcpiNsEvaluateRelative+0xb7
AcpiEvaluateObject(c1a56240,cbba4f34,0,0,cbba4f34) at netbsd:AcpiEvaluateObject+0x7c
EcGpeQueryHandler(c1a85b00,c064f1a0,0,246,0) at netbsd:EcGpeQueryHandler+0x127
sysmon_task_queue_thread(cb14be70,779000,781000,0,c0100321) at netbsd:sysmon_task_queue_thread+0x63
db> c
acpilid0: lid opened.

While booting, the kernel prints:

WARNING: Callback scheduled before sysmon task queue thread present.

Full dmesg output is attached below.

>How-To-Repeat:
See above. 100% reproducible.
>Fix:
Unknown

Full dmesg output:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    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 3.99.15 (ANOLE.ACPI) #0: Sun Jan 15 16:47:26 CET 2006
	build@moray.salmi.ch:/build/nbsd/i386/sys/arch/i386/compile/ANOLE.ACPI
total memory = 1014 MB
avail memory = 990 MB
BIOS32 rev. 0 found at 0xfd740
PCI BIOS rev. 2.1 found at 0xfd8c8
pcibios: config mechanism [1][x], special cycles [x][x], last bus 5
PCI IRQ Routing Table rev. 1.0 found at 0xfdeb0, size 256 bytes (14 entries)
PCI Interrupt Router at 000:31:0 (Intel 82371FB (PIIX) PCI-ISA Bridge compatible)
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:02:0 0x8086 0x3582   A  0x00  11  0    already assigned
000:29:0 0x8086 0x24c2   A  0x00  11  0    already assigned
000:29:1 0x8086 0x24c4   B  0x03  11  0    already assigned
000:29:2 0x8086 0x24c7   C  0x02  11  0    already assigned
000:29:7 0x8086 0x24cd   D  0x07  11  0    already assigned
000:31:1 0x8086 0x24ca   A  0x02  11  0    fixed up
000:31:3 0x8086 0x24c3   B  0x01  11  0    already assigned
000:31:5 0x8086 0x24c5   B  0x01  11  0    already assigned
000:31:6 0x8086 0x24c6   B  0x01  11  0    already assigned
002:00:0 0x1180 0x0476   A  0x00  11  0    already assigned
002:00:1 0x1180 0x0822   B  0x01  11  0    already assigned
002:01:0 0x8086 0x1077   A  0x04  11  0    already assigned
002:02:0 0x168c 0x1014   A  0x05  11  0    already assigned
------------------------------------------
mainbus0 (root)
pci_addr_fixup: 000:31:1 0x8086 0x24ca new address 0x00005800
pci_addr_fixup: 000:31:1 0x8086 0x24ca new address 0x00005808
pci_addr_fixup: 000:31:1 0x8086 0x24ca new address 0x00005810
pci_addr_fixup: 000:31:1 0x8086 0x24ca new address 0x0000580c
pci_addr_fixup: 000:31:1 0x8086 0x24ca new address 0x3f700000
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium M (Dothan) (686-class), 1395.53 MHz, id 0x6d6
cpu0: features afe9fbbf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR>
cpu0: features afe9fbbf<PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX>
cpu0: features afe9fbbf<FXSR,SSE,SSE2,SS,TM,SBF>
cpu0: features2 180<EST,TM2>
cpu0: "Intel(R) Pentium(R) M processor 1.40GHz"
cpu0: I-cache 32 KB 64B/line 8-way, D-cache 32 KB 64B/line 8-way
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: using thermal monitor 2
cpu0: Enhanced SpeedStep running at 1400 MHz (1116 mV)
cpu0: Enhanced SpeedStep frequencies available (MHz): 1400 1300 1200 1100 1000 900 800 600
cpu0: 64 page colors
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20050408
acpi0: X/RSDT: OemId <IBM   ,TP-1U   ,00002030>, AslId < LTP,00000000>
acpi0: found ECDT, GPE 28
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
acpilid0 at acpi0 (PNP0C0D): ACPI Lid Switch
acpibut0 at acpi0 (PNP0C0E): ACPI Sleep Button
PNP0A03 [PCI Bus] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
attimer1 at acpi0 (PNP0100): AT Timer
attimer1: io 0x40-0x43 irq 0
PNP0200 [AT DMA Controller] at acpi0 not configured
pcppi1 at acpi0 (PNP0800)
pcppi1: io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
npx0 at acpi0 (PNP0C04)
npx0: io 0xf0 irq 13
npx0: using exception 16
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
pckbc0 at acpi0 (PNP0303): kbd port
pckbc0: io 0x60,0x64 irq 1
pckbc1 at acpi0 (IBM3780): aux port
pckbc1: irq 12
com0 at acpi0 (IBM0071)
com0: io 0x2f8-0x2ff irq 3 drq 3
com0: ns16550a, working fifo
acpiec0 at acpi0 (PNP0C09-0): ACPI Embedded Controller
acpiec0: io 0x62,0x66
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
acpibat0 at acpi0 (PNP0C0A-0): ACPI Battery (Control Method)
acpiacad0 at acpi0 (ACPI0003-0): ACPI AC Adapter
IBM0068 at acpi0 not configured
acpitz0 at acpi0: ACPI Thermal Zone
acpitz0: unable to get polling interval; using default of 30.0s
acpitz0: passive cooling mode only
acpitz0: critical 95.0C passive 53.0C
pcppi1: attached to attimer1
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82855GM Host-Hub Controller (rev. 0x02)
agp0 at pchb0: detected 8060k stolen memory
agp0: aperture at 0xe0000000, size 0x8000000
Intel 82855GM GMCH Memory Controller (miscellaneous system, revision 0x02) at pci0 dev 0 function 1 not configured
Intel 82855GM GMCH Configuration Process (miscellaneous system, revision 0x02) at pci0 dev 0 function 3 not configured
vga0 at pci0 dev 2 function 0: Intel 82855GM GMCH Integrated Graphics Device (rev. 0x02)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
Intel 82855GM GMCH Integrated Graphics Device (miscellaneous display, revision 0x02) at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0: Intel 82801DB USB UHCI Controller (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: Intel 82801DB USB UHCI Controller (rev. 0x01)
uhci1: interrupting at irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: Intel 82801DB USB UHCI Controller (rev. 0x01)
uhci2: interrupting at irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: Intel 82801DB USB EHCI Controller (rev. 0x01)
ehci0: interrupting at irq 11
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
ppb0 at pci0 dev 30 function 0: Intel 82801BAM Hub-PCI Bridge (rev. 0x81)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
cbb0 at pci1 dev 0 function 0: Ricoh 5C476 PCI-CardBus bridge (rev. 0x8d)
Ricoh product 0x0822 (system subclass 0x05, revision 0x13) at pci1 dev 0 function 1 not configured
wm0 at pci1 dev 1 function 0: Intel i82541GI Mobile 1000BASE-T Ethernet, rev. 0
wm0: interrupting at irq 11
wm0: 32-bit 33MHz PCI bus
wm0: 64 word (6 address bits) MicroWire EEPROM
wm0: Ethernet address 00:0a:e4:2e:ed:cc
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ath0 at pci1 dev 2 function 0
ath0: interrupting at irq 11
ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: mac 5.9 phy 4.3 radio 3.6
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2
pcmcia0 at cardslot0
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801DB ISA Bridge (rev. 0x01)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801DBM IDE Controller (ICH4-M) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
Intel 82801DB SMBus Controller (SMBus serial bus, revision 0x01) at pci0 dev 31 function 3 not configured
auich0 at pci0 dev 31 function 5: i82801DB/DBM (ICH4/ICH4M) AC-97 Audio
auich0: interrupting at irq 11
auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D stereo
auich0: ac97: ext id 601<AC97_22,AMAP,VRA>
Intel 82801DB AC97 Modem Controller (modem communications, revision 0x01) at pci0 dev 31 function 6 not configured
isa0 at pcib0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: no ISA Plug 'n Play devices found
WARNING: Callback scheduled before sysmon task queue thread present.
auich0: measured ac97 link rate at 48003 Hz, will use 48000 Hz
audio0 at auich0: full duplex, mmap, independent
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <HITACHI_DK13FA-40B>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x50, vt100 emulation)
wsdisplay0: screen 2 added (80x50, vt100 emulation)
wsdisplay0: screen 3 added (80x50, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
XFree86 aperture driver version 2.0
Pentium Pro MTRR support enabled
acpibat0: battery info: SANYO, LION, IBM-92P1002,  1695
acpiacad0: AC adapter online.