Subject: ACPI SCI causing 90k interrupts/sec?!
To: None <port-i386@netbsd.org>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: port-i386
Date: 09/05/2003 16:42:45
Since upgrading to 1.6W, some of my systems have been much slower.  I
just realized that the ACPI SCI is interrupting 60,000 times per second
on one of them and 90,000 times per second on another.  One system is
an AMD760MPX-chipset motherboard, the other is a very similar AMD760MP
chipset board.

On another note, given the current "systat vmstat" display on i386 it is
quite difficult to conclusively say just _what_ is causing a given
interrupt.  Systat prints out things like "ioapic0 pin 9" but the device
probe lines print out "apicN pin M" and irq only, not which ioapic and
which ioapic pin -- and ACPI doesn't even print that.

Here's the dmesg from the system that's showing 90,000 interrupts/sec
on pin 9:

NetBSD 1.6W (REKUSANT) #8: Sun Aug 10 17:07:21 EDT 2003
        tls@rekusant:/usr/src/sys/arch/i386/compile/REKUSANT
total memory = 511 MB
avail memory = 470 MB
using 6573 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xfd6c0
PCI BIOS rev. 2.1 found at 0xfd7e0
pcibios: config mechanism [1][x], special cycles [x][x], last bus 2
PCI IRQ Routing Table rev. 1.0 found at 0xfdf10, size 0 bytes (-2 entries)
pcibios_pir_init: bad IRQ table size
PCI BIOS has 11 Interrupt Routing table entries
pci_intr_fixup: no compatible PCI ICU found
Warning: unable to fix up PCI interrupt routing
PCI fixup examining 1022:700c
PCI fixup examining 1022:700d
PCI fixup examining 1002:5157
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 1022:7410
PCI fixup examining 1022:7411
PCI fixup examining 1022:7413
PCI fixup examining 1022:7414
PCI fixup examining 1044:a500
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI fixup examining 1044:a501
PCI fixup examining 8086:1008
PCI fixup examining 10b7:9055
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1022 0x700c 
        10h mem  0xd4000000 0x04000000
        14h mem  0xd0042000 0x00001000
        18h port 0x000010b0 0x00000004
                [OK]
000:01:0 0x1022 0x700d 
                [OK]
000:07:0 0x1022 0x7410 
                [OK]
000:07:1 0x1022 0x7411 
        20h port 0x0000f000 0x00000010
                [OK]
000:07:3 0x1022 0x7413 
                [OK]
000:07:4 0x1022 0x7414 
        10h mem  0x000dc000 0x00001000
                [OK]
000:09:0 0x1044 0xa500 
                [OK]
000:09:1 0x1044 0xa501 
        10h mem  0xe0000000 0x10000000
                [OK]
000:11:0 0x8086 0x1008 
        10h mem  0xd0020000 0x00020000
        14h mem  0xd0000000 0x00020000
        18h port 0x00001080 0x00000020
                [OK]
000:13:0 0x10b7 0x9055 
        10h port 0x00001000 0x00000080
        14h mem  0xd0041000 0x00000080
                [OK]
001:05:0 0x1002 0x5157 
        10h mem  0xf0000000 0x08000000
        14h port 0x00002000 0x00000100
        18h mem  0xd0100000 0x00010000
                [OK]
--------------------------[  0 devices bogus]
 Physical memory end: 0x1ffe0000
 PCI memory mapped I/O space start: 0x20000000
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (TYAN     GUINNESS    )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon Model 4 (Thunderbird) (686-class), 1327.47 MHz, id 0x644
cpu0: features c1c7fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features c1c7fbff<PGE,MCA,CMOV,PAT,PSE36,PN,MMXX,MMX>
cpu0: features c1c7fbff<FXSR,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 24 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: calibrating local timer
cpu0: apic clock running at 265 MHz
cpu0: 8 page colors
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type PCI   
mpbios: bus 2 is type PCI   
mpbios: bus 3 is type ISA   
ioapic0 at mainbus0 apid 1 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20030228
acpi0: X/RSDT: OemId <PTLTD ,  RSDT  ,06040000>, AslId < LTP,00000000>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
acpi0: fixed-feature sleep button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
PNP0C01 [System Board] at acpi0 not configured
PNP0A03 [PCI Bus] at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
PNP0100 [AT Timer] at acpi0 not configured
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
PNP0800 [AT-style speaker sound] at acpi0 not configured
npx0 at acpi0 (PNP0C04)
npx0: io 0xf0-0xff irq 13
npx0: using exception 16
PNP0C02 [Plug and Play motherboard register resources] 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
PNP0A05 [Generic ACPI Bus] at acpi0 not configured
com0 at acpi0 (PNP0501-1)
com0: io 0x3f8-0x3ff irq 4
com0: ns16550a, working fifo
com1 at acpi0 (PNP0501-2)
com1: io 0x2f8-0x2ff irq 3
com1: ns16550a, working fifo
lpt0 at acpi0 (PNP0401)
lpt0: io 0x378-0x37f,0x778-0x77f irq 7 drq 3
pckbc0 at acpi0 (PNP0F13): aux port
pckbc0: irq 12
pckbc1 at acpi0 (PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: 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: Advanced Micro Devices AMD762 NorthBridge (rev. 0x11)
agp0 at pchb0: aperture at 0xd4000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Advanced Micro Devices AMD762 AGP Bridge (rev.
0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 5 function 0: ATI Technologies Radeon 7500 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: Advanced Micro Devices AMD766 SouthBridge (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Advanced Micro Devices AMD766 IDE Controller
(
rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
pciide0: primary channel ignored (disabled)
pciide0: secondary channel configured to compatibility mode
pciide0: secondary channel ignored (disabled)
Advanced Micro Devices AMD766 Power Management Controller (miscellaneous
bridge,
 revision 0x01) at pci0 dev 7 function 3 not configured
ohci0 at pci0 dev 7 function 4: Advanced Micro Devices AMD766 USB Host
Controlle
r (rev. 0x07)
ohci0: interrupting at apic 1 int 19 (irq 11)
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Advanced Micro OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ppb1 at pci0 dev 9 function 0: Distributed Processing Technology PCI-PCI
Bridge 
(rev. 0x01)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
iop0 at pci0 dev 9 function 1: I2O adapter <ADAPTEC 3210S>
iop0: interrupting at apic 1 int 17 (irq 5)
wm0 at pci0 dev 11 function 0: Intel i82544EI 1000BASE-T Ethernet, rev. 2
wm0: interrupting at apic 1 int 19 (irq 11)
wm0: Ethernet address 00:02:b3:94:de:d5
makphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FD
X, auto
ex0 at pci0 dev 13 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at apic 1 int 17 (irq 5)
ex0: MAC address 00:50:04:1b:b5:6a
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
sysbeep0 at pcppi0
ioapic0: enabling
iop0: configuring...
dpti0 at iop0 tid 0: DPT/Adaptec RAID management interface
ld0 at iop0 tid 523: <ADAPTEC, RAID-5, 370F> direct access, fixed
ld0: 34732 MB, 8820 cyl, 128 head, 63 sec, 512 bytes/sect x 71131136 sectors
iopsp0 at iop0 tid 8: SCSI port <ADAPTEC, AIC-7899, 00000001>
scsibus0 at iopsp0: 16 targets, 8 luns per target
iopsp1 at iop0 tid 9: SCSI port <ADAPTEC, AIC-7899, 00000001>
scsibus1 at iopsp1: 16 targets, 8 luns per target
IPsec: Initialized Security Association Processing.
uaudio0 at uhub0 port 1 configuration 1 interface 0: Griffin Technology, Inc
iMi
c USB audio system, rev 1.00/3.00, addr 2
uaudio0: ignored setting with precision 20
uaudio0: ignored setting with precision 20
uaudio0: ignored setting with precision 20
uaudio0: ignored setting with precision 20
uaudio0: audio rev 1.00
audio0 at uaudio0: full duplex, independent
uaudio_round_blocksize: blk=0
uaudio_round_blocksize: blk=0
boot device: ld0
root on ld0a dumps on ld0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)

-- 
 Thor Lancelot Simon	                                      tls@rek.tjls.com
   But as he knew no bad language, he had called him all the names of common
 objects that he could think of, and had screamed: "You lamp!  You towel!  You
 plate!" and so on.              --Sigmund Freud