Subject: atapi works w/o acpi, fails with
To: None <port-i386@netbsd.org>
From: Tom Spindler <dogcow@babymeat.com>
List: port-i386
Date: 01/03/2006 03:01:15
I'm using -current on my shiny new dell inspiron laptop, and I have the
following rather annoying symptom: when using the regular pcibios
configuration, my cd rom drives works without a hitch - but with acpi,
I get missed interrupts.

The most annoying thing is that nothing else seems to be interrupting
on the secondary channel. Any suggestions for what to do? enabling
PCI_{ADDR,BUS,INTR}_FIXUP doesn't seem to matter.

Here's the diff of the dmesgs:


--- dmesg.apm	2006-01-02 21:14:07.000000000 -0800
+++ dmesg.acpi	2006-01-03 02:47:52.000000000 -0800
@@ -3,101 +3,15 @@ Copyright (c) 1996, 1997, 1998, 1999, 20
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.
 
-NetBSD 3.99.15 (APMSHINY) #4: Mon Jan  2 21:09:49 PST 2006
-	dogcow@:/usr/obj/obj/usr/src/sys/arch/i386/compile/APMSHINY
+NetBSD 3.99.15 (SHINY) #24: Tue Jan  3 02:43:19 PST 2006
+	dogcow@shiny.babymeat.com:/usr/obj/obj/usr/src/sys/arch/i386/compile/SHINY
 total memory = 511 MB
 avail memory = 499 MB
 BIOS32 rev. 0 found at 0xffe90
-PCI BIOS rev. 2.1 found at 0xfbaae
-pcibios: config mechanism [1][x], special cycles [x][x], last bus 10
-PCI IRQ Routing Table rev. 1.0 found at 0xfb7c0, size 176 bytes (9 entries)
-PCI Interrupt Router at 000:31:0 (Intel 82371MX (MPIIX) Mobile PCI I/O IDE Xcelerator compatible)
-PIR Entry 0:
-	Bus: 0  Device: 3
-		INTA: link 0x60 bitmap 0xdef8
-		INTB: link 0x61 bitmap 0xdef8
-		INTC: link 0x62 bitmap 0xdef8
-		INTD: link 0x63 bitmap 0xdef8
-PIR Entry 1:
-	Bus: 0  Device: 29
-		INTA: link 0x60 bitmap 0xdef8
-		INTB: link 0x61 bitmap 0xdef8
-		INTC: link 0x62 bitmap 0xdef8
-		INTD: link 0x63 bitmap 0xdef8
-PIR Entry 2:
-	Bus: 0  Device: 30
-		INTA: link 0x60 bitmap 0xdef8
-		INTB: link 0x61 bitmap 0xdef8
-		INTC: link 0x62 bitmap 0xdef8
-		INTD: link 0x63 bitmap 0xdef8
-PIR Entry 3:
-	Bus: 0  Device: 31
-		INTA: link 0x60 bitmap 0xdef8
-		INTB: link 0x61 bitmap 0xdef8
-		INTC: link 0x62 bitmap 0xdef8
-		INTD: link 0x63 bitmap 0xdef8
-PIR Entry 4:
-	Bus: 0  Device: 2
-		INTA: link 0x60 bitmap 0xdef8
-		INTB: link 0x00 bitmap 0x0000
-		INTC: link 0x00 bitmap 0x0000
-		INTD: link 0x00 bitmap 0x0000
-PIR Entry 5:
-	Bus: 1  Device: 0
-		INTA: link 0x60 bitmap 0xdef8
-		INTB: link 0x00 bitmap 0x0000
-		INTC: link 0x00 bitmap 0x0000
-		INTD: link 0x00 bitmap 0x0000
-PIR Entry 6:
-	Bus: 3  Device: 0
-		INTA: link 0x62 bitmap 0xdef8
-		INTB: link 0x00 bitmap 0x0000
-		INTC: link 0x00 bitmap 0x0000
-		INTD: link 0x00 bitmap 0x0000
-PIR Entry 7:
-	Bus: 3  Device: 1
-		INTA: link 0x63 bitmap 0xdef8
-		INTB: link 0x62 bitmap 0xdef8
-		INTC: link 0x61 bitmap 0xdef8
-		INTD: link 0x00 bitmap 0x0000
-PIR Entry 8:
-	Bus: 3  Device: 3
-		INTA: link 0x61 bitmap 0xdef8
-		INTB: link 0x63 bitmap 0xdef8
-		INTC: link 0x00 bitmap 0x0000
-		INTD: link 0x00 bitmap 0x0000
-pciintr_link_fixup: PIRQ 0x00 already connected to IRQ 11
-pciintr_link_fixup: PIRQ 0x01 already connected to IRQ 10
-pciintr_link_fixup: PIRQ 0x02 already connected to IRQ 9
-pciintr_link_fixup: PIRQ 0x03 already connected to IRQ 7
-pciintr_link_route: route of PIRQ 0x00 -> IRQ 11 preserved BIOS setting
-pciintr_link_route: route of PIRQ 0x01 -> IRQ 10 preserved BIOS setting
-pciintr_link_route: route of PIRQ 0x02 -> IRQ 9 preserved BIOS setting
-pciintr_link_route: route of PIRQ 0x03 -> IRQ 7 preserved BIOS setting
-------------------------------------------
-  device vendor product pin PIRQ IRQ stage
-------------------------------------------
-000:29:0 0x8086 0x2658   A  0x00  11  0    already assigned
-000:29:1 0x8086 0x2659   B  0x01  10  0    already assigned
-000:29:2 0x8086 0x265a   C  0x02   9  0    already assigned
-000:29:3 0x8086 0x265b   D  0x03   7  0    already assigned
-000:29:7 0x8086 0x265c   A  0x00  11  0    already assigned
-000:30:2 0x8086 0x266e   A  0x00  11  0    already assigned
-000:31:2 0x8086 0x2653   B  0x01  10  0    already assigned
-001:00:0 0x1002 0x5460   A  0x00  11  0    already assigned
-003:00:0 0x14e4 0x170c   A  0x02   9  0    already assigned
-003:01:0 0x1180 0x0476   A  0x03   7  0    already assigned
-003:01:1 0x1180 0x0552   B  0x02   9  0    already assigned
-003:01:2 0x1180 0x0822   C  0x01  10  0    already assigned
-003:03:0 0x8086 0x4223   A  0x01  10  0    already assigned
-------------------------------------------
-pciintr_irq_release: fixup pciirq level/edge map 0x0e80
-pciintr_irq_release: bios  pciirq level/edge map 0x0f80
-pciintr_irq_release: final pciirq level/edge map 0x0f80
 mainbus0 (root)
 pci_addr_fixup: 002:01:0 0x1180 0x0476 new address 0x20000000
 cpu0 at mainbus0: (uniprocessor)
-cpu0: Intel Pentium M (Dothan) (686-class), 1862.11 MHz, id 0x6d8
+cpu0: Intel Pentium M (Dothan) (686-class), 1862.14 MHz, id 0x6d8
 cpu0: features afe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu0: features afe9fbff<PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX>
 cpu0: features afe9fbff<FXSR,SSE,SSE2,SS,TM,SBF>
@@ -109,16 +23,54 @@ cpu0: using thermal monitor 1
 cpu0: Enhanced SpeedStep running at 1400 MHz (1308 mV)
 cpu0: Enhanced SpeedStep operating point not in table
 cpu0: 64 page colors
-pnpbios0 at mainbus0: nodes 14, max len 138
-pckbc1 at pnpbios0 index 8 (PNP0303): kbd port
-pckbc2 at pnpbios0 index 9 (PNP0F13): aux port
-npx1 at pnpbios0 index 12 (PNP0C04)
-npx1: io f0-ff, irq 13
-npx1: using exception 16
+acpi0 at mainbus0
+acpi0: using Intel ACPI CA subsystem version 20050408
+acpi0: X/RSDT: OemId <DELL  , CPi R  ,27d5091c>, AslId <ASL ,00000061>
+acpi0: SCI interrupting at int 9
+ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
+ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
+acpi: activated PNP0C0F
+acpi: activated PNP0C0F
+acpi: activated PNP0C0F
+acpiacad0 at acpi0 (ACPI0003): ACPI AC Adapter
+acpibat0 at acpi0 (PNP0C0A-1): ACPI Battery (Control Method)
+acpilid0 at acpi0 (PNP0C0D): ACPI Lid Switch
+acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
+acpibut1 at acpi0 (PNP0C0E): ACPI Sleep Button
+PNP0C01 [System Board] at acpi0 not configured
+PNP0A03 [PCI Bus] at acpi0 not configured
+PNP0C01 [System Board] at acpi0 not configured
+PNP0C01 [System Board] at acpi0 not configured
+pckbc0 at acpi0 (PNP0F13): aux port
+pckbc0: irq 12
+pckbc1 at acpi0 (PNP0303): kbd port
+pckbc1: io 0x60,0x64,0x62,0x66 irq 1
+PNP0B00 [AT Real-Time Clock] at acpi0 not configured
+attimer0 at acpi0 (PNP0100): AT Timer
+attimer0: io 0x40-0x43,0x50-0x53 irq 2
+PNP0800 [AT-style speaker sound] at acpi0 not configured
+PNP0C01 [System Board] at acpi0 not configured
+PNP0000 [AT Interrupt Controller] at acpi0 not configured
+PNP0200 [AT DMA Controller] at acpi0 not configured
+npx0 at acpi0 (PNP0C04)
+npx0: io 0xf0-0xff irq 13
+npx0: using exception 16
+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
+acpitz0 at acpi0: ACPI Thermal Zone
+acpitz0: unable to get polling interval; using default of 30.0s
+acpitz0: passive cooling mode only
+acpitz0: critical 99.0C
 pckbd0 at pckbc1 (kbd slot)
 pckbc1: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc1 (aux slot)
+pms0: synaptics_probe: Not synaptics.
 pckbc1: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 pci0 at mainbus0 bus 0: configuration mode 1
@@ -188,11 +140,12 @@ cardbus0 at cardslot0: bus 3
 pcmcia0 at cardslot0
 auich0 at pci0 dev 30 function 2: i82801FB (ICH6) AC-97 Audio
 auich0: interrupting at irq 11
-auich0: The 2nd codec is ready.
 auich0: ac97: SigmaTel STAC9752/53 codec; headphone, 20 bit DAC, 20 bit ADC, SigmaTel 3D
 auich0: ac97: ext id a01<AC97_23,AMAP,VRA>
-pcib0 at pci0 dev 31 function 0
-pcib0: Intel 82801FBM ICH6M LPC Interface Bridge (rev. 0x03)
+ichlpcib0 at pci0 dev 31 function 0
+ichlpcib0: Intel 82801FBM ICH6M LPC Interface Bridge (rev. 0x03)
+ichlpcib0: TCO (watchdog) timer configured.
+ichlpcib0: No SpeedStep
 piixide0 at pci0 dev 31 function 2
 piixide0: Intel 82801FBM Serial ATA Controller (ICH6) (rev. 0x03)
 piixide0: bus-master DMA support present
@@ -202,8 +155,9 @@ atabus0 at piixide0 channel 0
 piixide0: secondary channel wired to compatibility mode
 piixide0: secondary channel interrupting at irq 15
 atabus1 at piixide0 channel 1
-isa0 at pcib0
-auich0: measured ac97 link rate at 48004 Hz, will use 48000 Hz
+isa0 at ichlpcib0
+WARNING: Callback scheduled before sysmon task queue thread present.
+auich0: measured ac97 link rate at 47999 Hz, will use 48000 Hz
 audio0 at auich0: full duplex, mmap, independent
 wd0 at atabus0 drive 0: <TOSHIBA MK6026GAX>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
@@ -212,16 +166,27 @@ 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)
 atapibus0 at atabus1: 2 targets
+piixide0:1:0: lost interrupt
+	type: ata tc_bcount: 512 tc_skip: 0
 cd0 at atapibus0 drive 0: <HL-DT-STCD-RW/DVD-ROM GCC-4244N, , B101> cdrom removable
+piixide0:1:0: lost interrupt
+	type: ata tc_bcount: 512 tc_skip: 0
+piixide0:1:0: lost interrupt
+	type: ata tc_bcount: 512 tc_skip: 0
 cd0: 32-bit data port
-cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
+piixide0:1:0: lost interrupt
+	type: ata tc_bcount: 0 tc_skip: 0
+cd0: drive supports PIO mode 4piixide0:1:0: lost interrupt
+	type: ata tc_bcount: 0 tc_skip: 0
+, DMA mode 2piixide0:1:0: lost interrupt
+	type: ata tc_bcount: 0 tc_skip: 0
+, Ultra-DMA mode 2 (Ultra/33)
 cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 boot device: wd0
 root on wd0a dumps on wd0b