From owner-freebsd-current@FreeBSD.ORG Fri Jan 30 15:32:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FA4B16A4CE; Fri, 30 Jan 2004 15:32:09 -0800 (PST) Received: from neo.redjade.org (neo.redjade.org [211.181.248.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 180CA43D1D; Fri, 30 Jan 2004 15:31:36 -0800 (PST) (envelope-from ssw@neo.redjade.org) Received: from neo.redjade.org (localhost.redjade.org [127.0.0.1]) by neo.redjade.org (8.12.10/8.12.10) with ESMTP id i0UNVgd9051771; Sat, 31 Jan 2004 08:31:42 +0900 (KST) (envelope-from ssw@neo.redjade.org) Received: (from ssw@localhost) by neo.redjade.org (8.12.10/8.12.10/Submit) id i0UNVgn5051770; Sat, 31 Jan 2004 08:31:42 +0900 (KST) (envelope-from ssw) Date: Sat, 31 Jan 2004 08:31:42 +0900 From: Sangwoo Shim To: John Baldwin Message-ID: <20040130233142.GA51726@neo.redjade.org> References: <20040130164001.GA49968@neo.redjade.org> <200401301311.19251.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="wac7ysb48OaltWcw" Content-Disposition: inline In-Reply-To: <200401301311.19251.jhb@FreeBSD.org> User-Agent: Mutt/1.5.4i cc: current@FreeBSD.org Subject: Re: Interrupt storm on acpi0 occurred after madt.c change X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 23:32:09 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=euc-kr Content-Disposition: inline On Fri, Jan 30, 2004 at 01:11:19PM -0500, John Baldwin wrote: > > Can you provide a dmesg? IRQ20 on your box is a PCI interrupt and PCI > interrupts are level/lo, not level/hi. To top it off, ACPI states that the > SCI is supposed to always be level/lo. You must have a very broken BIOS to > get a storm now. > I've attached my dmesg -v output. Well, I've notice intpin 20 polarity difference between before and after MADT change. Certainly the disaster arose by my BIOS's fault, I suppose. --- dmesg_before Sat Jan 31 07:48:39 2004 +++ dmesg_after Sat Jan 31 07:42:28 2004 ... +MADT: Forcing active-lo polarity and level trigger for IRQ 9 +ioapic0: intpin 20 polarity: active-lo ioapic0: intpin 20 trigger: level -ioapic0: intpin 20 polarity: active-hi ... Can this problem be addressed by overriding fixed DSDT( by loading good enough aml code)? If so, /methinks he will spend this weekend studying about acpi and fixing the faulty BIOS. :-) --wac7ysb48OaltWcw Content-Type: text/plain; charset=euc-kr Content-Disposition: attachment; filename=dmesg_storm Copyright (c) 1992-2004 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 5.2-CURRENT #0: Fri Jan 30 10:58:41 KST 2004 root@ssw.dyndns.org:/usr/obj/usr/src/sys/SSW-SMP Preloaded elf kernel "/boot/kernel.storm/kernel" at 0xc084e000. Preloaded elf module "/boot/kernel/miibus.ko" at 0xc084e230. Preloaded elf module "/boot/kernel/if_xl.ko" at 0xc084e2dc. Preloaded elf module "/boot/kernel/usb.ko" at 0xc084e388. Preloaded elf module "/boot/kernel/ukbd.ko" at 0xc084e430. Preloaded elf module "/boot/kernel/ums.ko" at 0xc084e4dc. Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc084e584. Preloaded elf module "/boot/kernel/snd_ds1.ko" at 0xc084e630. Table 'FACP' at 0xfffd100 Table 'BOOT' at 0xfffd040 Table 'APIC' at 0xfffd080 MADT: Found table at 0xfffd080 MP Configuration Table version 1.4 found at 0xc00f6ad4 APIC: Using the MADT enumerator. MADT: Found CPU APIC ID 1 ACPI ID 0: enabled SMP: Added CPU 1 (AP) MADT: Found CPU APIC ID 0 ACPI ID 1: enabled SMP: Added CPU 0 (AP) ACPI APIC Table: Calibrating clock(s) ... i8254 clock: 1193068 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz quality 0 Calibrating TSC clock ... TSC clock: 651481213 Hz CPU: Intel Pentium III (651.48-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x681 Stepping = 1 Features=0x387fbff real memory = 268423168 (255 MB) Physical memory chunk(s): 0x0000000000001000 - 0x000000000009efff, 647168 bytes (158 pages) 0x0000000000100000 - 0x00000000003fffff, 3145728 bytes (768 pages) 0x0000000000c29000 - 0x000000000fb4cfff, 250757120 bytes (61220 pages) avail memory = 252960768 (241 MB) APIC ID: physical 0, logical 0:0 APIC ID: physical 1, logical 0:1 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 1 cpu1 (AP): APIC ID: 0 APIC: CPU 0 has ACPI ID 0 APIC: CPU 1 has ACPI ID 1 bios32: Found BIOS32 Service Directory header at 0xc00f9e70 bios32: Entry = 0xf0530 (c00f0530) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xf0000+0x730 pnpbios: Found PnP BIOS data at 0xc00fd2c0 pnpbios: Entry = f0000:d2f0 Rev = 1.0 pnpbios: OEM ID cd041 Other BIOS signatures found: MADT: Found IO APIC ID 2, Interrupt 0 at 0xfec00000 ioapic0: intpin 0 -> ExtINT (edge, activehi) ioapic0: intpin 1 -> irq 1 (edge, activehi) ioapic0: intpin 2 -> irq 2 (edge, activehi) ioapic0: intpin 3 -> irq 3 (edge, activehi) ioapic0: intpin 4 -> irq 4 (edge, activehi) ioapic0: intpin 5 -> irq 5 (edge, activehi) ioapic0: intpin 6 -> irq 6 (edge, activehi) ioapic0: intpin 7 -> irq 7 (edge, activehi) ioapic0: intpin 8 -> irq 8 (edge, activehi) ioapic0: intpin 9 -> irq 9 (edge, activehi) ioapic0: intpin 10 -> irq 10 (edge, activehi) ioapic0: intpin 11 -> irq 11 (edge, activehi) ioapic0: intpin 12 -> irq 12 (edge, activehi) ioapic0: intpin 13 -> irq 13 (edge, activehi) ioapic0: intpin 14 -> irq 14 (edge, activehi) ioapic0: intpin 15 -> irq 15 (edge, activehi) ioapic0: intpin 16 -> irq 16 (level, activelo) ioapic0: intpin 17 -> irq 17 (level, activelo) ioapic0: intpin 18 -> irq 18 (level, activelo) ioapic0: intpin 19 -> irq 19 (level, activelo) ioapic0: intpin 20 -> irq 20 (level, activelo) ioapic0: intpin 21 -> irq 21 (level, activelo) ioapic0: intpin 22 -> irq 22 (level, activelo) ioapic0: intpin 23 -> irq 23 (level, activelo) MADT: intr override: source 0, irq 2 ioapic0: Routing IRQ 0 -> intpin 2 ioapic0: intpin 2 polarity: active-hi ioapic0: intpin 2 trigger: edge MADT: intr override: source 9, irq 20 ioapic0: intpin 9 disabled MADT: Forcing active-lo polarity and level trigger for IRQ 9 ioapic0: intpin 20 polarity: active-lo ioapic0: intpin 20 trigger: level ioapic0 irqs 0-23 on motherboard cpu0 BSP: ID: 0x01000000 VER: 0x00040011 LDR: 0x02000000 DFR: 0x0fffffff lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff random: mem: Pentium Pro MTRR support enabled null: acpi0: on motherboard acpi0: Overriding SCI Interrupt from IRQ 9 to IRQ 20 pci_open(1): mode 1 addr port (0x0cf8) is 0x80002358 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=71908086) pcibios: BIOS version 2.10 Using $PIR table, 6 entries at 0xc00f0d20 PCI-Only Interrupts: none Location Bus Device Pin Link IRQs slot 1 0 12 A 0x60 3 4 5 7 9 10 11 12 slot 1 0 12 B 0x61 3 4 5 7 9 10 11 12 slot 1 0 12 C 0x62 3 4 5 7 9 10 11 12 slot 1 0 12 D 0x63 3 4 5 7 9 10 11 12 slot 2 0 11 A 0x61 3 4 5 7 9 10 11 12 slot 2 0 11 B 0x62 3 4 5 7 9 10 11 12 slot 2 0 11 C 0x63 3 4 5 7 9 10 11 12 slot 2 0 11 D 0x60 3 4 5 7 9 10 11 12 slot 3 0 10 A 0x62 3 4 5 7 9 10 11 12 slot 3 0 10 B 0x63 3 4 5 7 9 10 11 12 slot 3 0 10 C 0x60 3 4 5 7 9 10 11 12 slot 3 0 10 D 0x61 3 4 5 7 9 10 11 12 slot 4 0 9 A 0x63 3 4 5 7 9 10 11 12 slot 4 0 9 B 0x60 3 4 5 7 9 10 11 12 slot 4 0 9 C 0x61 3 4 5 7 9 10 11 12 slot 4 0 9 D 0x62 3 4 5 7 9 10 11 12 embedded 0 4 A 0x60 3 4 5 7 9 10 11 12 embedded 0 4 B 0x61 3 4 5 7 9 10 11 12 embedded 0 4 C 0x62 3 4 5 7 9 10 11 12 embedded 0 4 D 0x63 3 4 5 7 9 10 11 12 embedded 0 1 A 0x60 3 4 5 7 9 10 11 12 embedded 0 1 B 0x61 3 4 5 7 9 10 11 12 embedded 0 1 C 0x62 3 4 5 7 9 10 11 12 embedded 0 1 D 0x63 3 4 5 7 9 10 11 12 acpi_bus_number: root bus has no _BBN, assuming 0 AcpiOsDerivePciId: bus 0 dev 4 func 0 acpi0: Power Button (fixed) ACPI timer looks BAD min = 2, max = 8, width = 6 ACPI timer looks BAD min = 2, max = 6, width = 4 ACPI timer looks BAD min = 2, max = 6, width = 4 ACPI timer looks BAD min = 2, max = 6, width = 4 ACPI timer looks BAD min = 2, max = 6, width = 4 ACPI timer looks BAD min = 2, max = 6, width = 4 ACPI timer looks BAD min = 2, max = 775, width = 773 ACPI timer looks BAD min = 2, max = 6, width = 4 ACPI timer looks BAD min = 2, max = 6, width = 4 ACPI timer looks BAD min = 2, max = 6, width = 4 Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_bus_number: root bus has no _BBN, assuming 0 AcpiOsDerivePciId: bus 0 dev 4 func 3 acpi_bus_number: root bus has no _BBN, assuming 0 AcpiOsDerivePciId: bus 0 dev 4 func 3 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 acpi_cpu0: on acpi0 acpi_cpu1: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 ---- initial configuration ------------------------ ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- pci0: on pcib0 pci0: physical bus=0 map[10]: type 3, range 32, base e4000000, size 26, enabled found-> vendor=0x8086, dev=0x7190, revid=0x03 bus=0, slot=0, func=0 class=06-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0106, statreg=0x2210, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) found-> vendor=0x8086, dev=0x7191, revid=0x03 bus=0, slot=1, func=0 class=06-04-00, hdrtype=0x01, mfdev=0 cmdreg=0x0117, statreg=0x0220, cachelnsz=0 (dwords) lattimer=0x40 (1920 ns), mingnt=0x80 (32000 ns), maxlat=0x00 (0 ns) found-> vendor=0x8086, dev=0x7110, revid=0x02 bus=0, slot=4, func=0 class=06-01-00, hdrtype=0x00, mfdev=1 cmdreg=0x000f, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[20]: type 4, range 32, base 0000d800, size 4, enabled found-> vendor=0x8086, dev=0x7111, revid=0x01 bus=0, slot=4, func=1 class=01-01-80, hdrtype=0x00, mfdev=0 cmdreg=0x0005, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[20]: type 4, range 32, base 0000d400, size 5, enabled pcib0: matched entry for 0.4.INTD (source ) pcib0: device is hardwired to IRQ 19 found-> vendor=0x8086, dev=0x7112, revid=0x01 bus=0, slot=4, func=2 class=0c-03-00, hdrtype=0x00, mfdev=0 cmdreg=0x0005, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=d, irq=19 map[90]: type 4, range 32, base 0000e800, size 4, enabled found-> vendor=0x8086, dev=0x7113, revid=0x02 bus=0, slot=4, func=3 class=06-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0003, statreg=0x0280, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) map[10]: type 1, range 32, base d7000000, size 15, enabled map[14]: type 4, range 32, base 0000d000, size 6, enabled map[18]: type 4, range 32, base 0000b800, size 2, enabled pcib0: matched entry for 0.9.INTA (source ) pcib0: device is hardwired to IRQ 19 found-> vendor=0x1073, dev=0x0012, revid=0x00 bus=0, slot=9, func=0 class=04-01-00, hdrtype=0x00, mfdev=0 cmdreg=0x0007, statreg=0x0210, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x05 (1250 ns), maxlat=0x19 (6250 ns) intpin=a, irq=19 powerspec 1 supports D0 D2 D3 current D0 map[10]: type 4, range 32, base 0000b400, size 6, enabled pcib0: matched entry for 0.10.INTA (source ) pcib0: device is hardwired to IRQ 18 found-> vendor=0x10b7, dev=0x9050, revid=0x00 bus=0, slot=10, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0007, statreg=0x0200, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x03 (750 ns), maxlat=0x08 (2000 ns) intpin=a, irq=18 map[10]: type 3, range 32, base d8000000, size 27, enabled map[14]: type 4, range 32, base 0000b000, size 8, enabled map[18]: type 1, range 32, base d6800000, size 16, enabled pcib0: matched entry for 0.12.INTA (source ) pcib0: device is hardwired to IRQ 16 found-> vendor=0x1002, dev=0x5159, revid=0x00 bus=0, slot=12, func=0 class=03-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0087, statreg=0x0290, cachelnsz=8 (dwords) lattimer=0x00 (0 ns), mingnt=0x08 (2000 ns), maxlat=0x00 (0 ns) intpin=a, irq=16 powerspec 2 supports D0 D1 D2 D3 current D0 agp0: mem 0xe4000000-0xe7ffffff at device 0.0 on pci0 agp0: allocating GATT for aperture of size 64M pcib1: at device 1.0 on pci0 pcib1: secondary bus 1 pcib1: subordinate bus 1 pcib1: I/O decode 0xe000-0xdfff pcib1: memory decode 0xd7f00000-0xd7efffff pcib1: prefetched decode 0xe4000000-0xe3ffffff pci1: on pcib1 pci1: physical bus=1 isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xd800-0xd80f at device 4.1 on pci0 ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ata0-master: stat=0x50 err=0x01 lsb=0x00 msb=0x00 ata0-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata0: reset tp2 mask=03 stat0=50 stat1=00 devices=0x9 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: reset tp1 mask=03 ostat0=00 ostat1=00 ata1-master: stat=0x00 err=0x00 lsb=0x00 msb=0x00 ata1-slave: stat=0x00 err=0x00 lsb=0x00 msb=0x00 ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0x0 ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] uhci0: port 0xd400-0xd41f irq 19 at device 4.2 on pci0 usb0: 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 uhub1: Chicony Generic USB Hub, class 9/0, rev 1.10/1.00, addr 2 uhub1: 3 ports with 2 removable, bus powered ukbd0: Chicony PFU-65 USB Keyboard, rev 1.10/1.00, addr 3, iclass 3/1 kbd0 at ukbd0 kbd0: ukbd0, generic (0), config:0x0, flags:0x1d0000 ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.00, addr 4, iclass 3/1 ums0: 3 buttons and Z dir. pci0: at device 4.3 (no driver attached) pcm0: port 0xb800-0xb803,0xd000-0xd03f mem 0xd7000000-0xd7007fff irq 19 at device 9.0 on pci0 ds1: setmap (255000, 41e4), nseg=1, error=0 pcm0: pcm0: Codec features 18 bit DAC, 18 bit ADC, 5 bit master volume, SigmaTel 3D Enhancement pcm0: Primary codec extended features surround DAC pcm0: sndbuf_setmap 2a9000, 1000; 0xc2b95000 -> 2a9000 pcm0: sndbuf_setmap 2a7000, 1000; 0xc2b93000 -> 2a7000 pcm0: sndbuf_setmap 2a5000, 1000; 0xc2b91000 -> 2a5000 pcm0: sndbuf_setmap f9e3000, 1000; 0xc2b8f000 -> f9e3000 pcm0: sndbuf_setmap f9c1000, 1000; 0xc2b8d000 -> f9c1000 pcm0: sndbuf_setmap 28c000, 1000; 0xc2b98000 -> 28c000 xl0: <3Com 3c905-TX Fast Etherlink XL> port 0xb400-0xb43f irq 18 at device 10.0 on pci0 xl0: using port I/O xl0: Ethernet address: 00:60:97:93:6c:b9 xl0: media options word: e040 xl0: found MII/AUTO miibus0: on xl0 nsphy0: on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: bpf attached pci0: at device 12.0 (no driver attached) fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 unknown: not probed (disabled) unknown: not probed (disabled) sio0: irq maps: 0x41 0x51 0x41 0x41 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1: irq maps: 0x41 0x49 0x41 0x41 sio1 port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A unknown: not probed (disabled) atkbdc0: port 0x64,0x60 irq 1 on acpi0 psm0: unable to allocate IRQ unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) unknown: not probed (disabled) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface ata: ata0 already exists; skipping it ata: ata1 already exists; skipping it atkbdc: atkbdc0 already exists; skipping it fdc: fdc0 already exists; skipping it sio: sio0 already exists; skipping it sio: sio1 already exists; skipping it Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 sc: sc0 already exists; skipping it vga: vga0 already exists; skipping it isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices orm0: