From owner-freebsd-i386@FreeBSD.ORG Thu Dec 24 10:50:03 2009 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A1471065694 for ; Thu, 24 Dec 2009 10:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EFFB68FC29 for ; Thu, 24 Dec 2009 10:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBOAo21a060088 for ; Thu, 24 Dec 2009 10:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBOAo2CN060087; Thu, 24 Dec 2009 10:50:02 GMT (envelope-from gnats) Resent-Date: Thu, 24 Dec 2009 10:50:02 GMT Resent-Message-Id: <200912241050.nBOAo2CN060087@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Fabio Arpino Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5075A1065672 for ; Thu, 24 Dec 2009 10:47:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3EF478FC15 for ; Thu, 24 Dec 2009 10:47:38 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBOAlbqB059038 for ; Thu, 24 Dec 2009 10:47:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nBOAlbEf059036; Thu, 24 Dec 2009 10:47:37 GMT (envelope-from nobody) Message-Id: <200912241047.nBOAlbEf059036@www.freebsd.org> Date: Thu, 24 Dec 2009 10:47:37 GMT From: Fabio Arpino To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: i386/141942: interrupt storm (VIA 6421A atapci controller) X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 10:50:03 -0000 >Number: 141942 >Category: i386 >Synopsis: interrupt storm (VIA 6421A atapci controller) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 24 10:50:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Fabio Arpino >Release: FreeBSD 8.0 >Organization: >Environment: FreeBSD provasys 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: my system (AMD XP/1GB RAM) with one or two PCI SATA VIA 6421A continuously shows: - interrupt storm detected on "irq19:"; throttling interrupt source -. It shows when the SATA disk(s) attached to the controller are more than little accessed. - just tried ZFS mirror (or RAID1) configuration - WD disks have been set (jumper) to SATA 150 - one or two SATA cards installed - tried to move cards from one slot to other (no change) - both when 1 disk per card or two disks on one card (ZFS mirror configuration) - most of the unused onboard devices have been switched off in BIOS (serial/parallel ports, audio, midi, game, IDE2, floppy); just IDE1, USB and LAN active. -tried with FreeBSD 8.0 and FreeNAS 7.0 (based on Freebsd 7.2) vmstat -i: interrupt total rate irq1: atkbd0 2791 1 irq14: ata0 44931 30 irq16: rl0 12 0 irq17: atapci1 226198 151 irq19: atapci0 402990 269 irq22: ehci0 3516 2 cpu0: timer 2984839 1999 Total 3665277 2454 head of messages: Dec 23 22:12:59 provasys kernel: interrupt storm detected on "irq17:"; throttling interrupt source Dec 23 22:13:00 provasys kernel: interrupt storm detected on "irq19:"; throttling interrupt source Dec 23 22:13:00 provasys kernel: interrupt storm detected on "irq17:"; throttling interrupt source Dec 23 22:13:01 provasys kernel: interrupt storm detected on "irq19:"; throttling interrupt source Dec 23 22:13:01 provasys kernel: ad10: TIMEOUT - READ_DMA retrying (1 retry left) LBA=1605120 Dec 23 22:13:02 provasys kernel: ad4: TIMEOUT - READ_DMA retrying (1 retry left) LBA=1605760 Dec 23 22:13:02 provasys kernel: interrupt storm detected on "irq19:"; throttling interrupt source Dec 23 22:13:05 provasys last message repeated 3 times Dec 23 22:13:05 provasys halt: halted by root Dec 23 22:13:05 provasys syslogd: exiting on signal 15 Dec 24 08:01:01 provasys syslogd: kernel boot file is /boot/kernel/kernel Dec 24 08:01:01 provasys kernel: Copyright (c) 1992-2009 The FreeBSD Project. Dec 24 08:01:01 provasys kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Dec 24 08:01:01 provasys kernel: The Regents of the University of California. All rights reserved. Dec 24 08:01:01 provasys kernel: FreeBSD is a registered trademark of The FreeBSD Foundation. Dec 24 08:01:01 provasys kernel: FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 Dec 24 08:01:01 provasys kernel: root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Dec 24 08:01:01 provasys kernel: Timecounter "i8254" frequency 1193182 Hz quality 0 Dec 24 08:01:01 provasys kernel: CPU: AMD Athlon(tm) (1830.01-MHz 686-class CPU) Dec 24 08:01:01 provasys kernel: Origin = "AuthenticAMD" Id = 0x681 Stepping = 1 Dec 24 08:01:01 provasys kernel: Features=0x383fbff Dec 24 08:01:01 provasys kernel: AMD Features=0xc0400800 Dec 24 08:01:01 provasys kernel: real memory = 1610612736 (1536 MB) Dec 24 08:01:01 provasys kernel: avail memory = 1563680768 (1491 MB) Dec 24 08:01:01 provasys kernel: ACPI APIC Table: Dec 24 08:01:01 provasys kernel: ioapic0 irqs 0-23 on motherboard Dec 24 08:01:01 provasys kernel: kbd1 at kbdmux0 Dec 24 08:01:01 provasys kernel: acpi0: on motherboard Dec 24 08:01:01 provasys kernel: acpi0: [ITHREAD] Dec 24 08:01:01 provasys kernel: acpi0: Power Button (fixed) Dec 24 08:01:01 provasys kernel: acpi0: reservation of 0, a0000 (3) failed Dec 24 08:01:01 provasys kernel: acpi0: reservation of 100000, 5fef0000 (3) failed Dec 24 08:01:01 provasys kernel: Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 Dec 24 08:01:01 provasys kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 Dec 24 08:01:01 provasys kernel: acpi_button0: on acpi0 Dec 24 08:01:01 provasys kernel: pcib0: port 0xcf8-0xcff,0xcf0-0xcf3 on acpi0 Dec 24 08:01:01 provasys kernel: pci0: on pcib0 Dec 24 08:01:01 provasys kernel: Correcting nForce2 C1 CPU disconnect hangs Dec 24 08:01:01 provasys kernel: agp0: on hostb0 Dec 24 08:01:01 provasys kernel: pci0: at device 0.1 (no driver attached) Dec 24 08:01:01 provasys kernel: pci0: at device 0.2 (no driver attached) Dec 24 08:01:01 provasys kernel: pci0: at device 0.3 (no driver attached) Dec 24 08:01:01 provasys kernel: pci0: at device 0.4 (no driver attached) Dec 24 08:01:01 provasys kernel: pci0: at device 0.5 (no driver attached) Dec 24 08:01:01 provasys kernel: isab0: at device 1.0 on pci0 Dec 24 08:01:01 provasys kernel: isa0: on isab0 Dec 24 08:01:01 provasys kernel: pci0: at device 1.1 (no driver attached) Dec 24 08:01:01 provasys kernel: ohci0: mem 0xee003000-0xee003fff irq 20 at device 2.0 on pci0 Dec 24 08:01:01 provasys kernel: ohci0: [ITHREAD] Dec 24 08:01:01 provasys kernel: usbus0: on ohci0 Dec 24 08:01:01 provasys kernel: ohci1: mem 0xee004000-0xee004fff irq 21 at device 2.1 on pci0 Dec 24 08:01:01 provasys kernel: ohci1: [ITHREAD] Dec 24 08:01:01 provasys kernel: usbus1: on ohci1 Dec 24 08:01:01 provasys kernel: ehci0: mem 0xee000000-0xee0000ff irq 22 at device 2.2 on pci0 Dec 24 08:01:01 provasys kernel: ehci0: [ITHREAD] Dec 24 08:01:01 provasys kernel: usbus2: EHCI version 1.0 Dec 24 08:01:01 provasys kernel: usbus2: on ehci0 Dec 24 08:01:01 provasys kernel: pcib1: at device 8.0 on pci0 Dec 24 08:01:01 provasys kernel: pci1: on pcib1 Dec 24 08:01:01 provasys kernel: vgapci0: port 0xa000-0xa0ff mem 0xe0000000-0xe7ffffff,0xed000000-0xed07ffff irq 18 at device 6.0 on pci1 Dec 24 08:01:01 provasys kernel: atapci0: port 0xa400-0xa40f,0xa800-0xa80f,0xac00-0xac0f,0xb000-0xb00f,0xb400-0xb41f,0xb800-0xb8ff irq 19 at device 7.0 on pci1 Dec 24 08:01:01 provasys kernel: atapci0: [ITHREAD] Dec 24 08:01:01 provasys kernel: ata2: on atapci0 Dec 24 08:01:01 provasys kernel: ata2: [ITHREAD] Dec 24 08:01:01 provasys kernel: ata3: on atapci0 Dec 24 08:01:01 provasys kernel: ata3: [ITHREAD] Dec 24 08:01:01 provasys kernel: ata4: on atapci0 Dec 24 08:01:01 provasys kernel: ata4: [ITHREAD] Dec 24 08:01:01 provasys kernel: atapci1: port 0xbc00-0xbc0f,0xc000-0xc00f,0xc400-0xc40f,0xc800-0xc80f,0xcc00-0xcc1f,0xd000-0xd0ff irq 17 at device 9.0 on pci1 Dec 24 08:01:01 provasys kernel: atapci1: [ITHREAD] Dec 24 08:01:01 provasys kernel: ata5: on atapci1 Dec 24 08:01:01 provasys kernel: ata5: [ITHREAD] Dec 24 08:01:01 provasys kernel: ata6: on atapci1 Dec 24 08:01:01 provasys kernel: ata6: [ITHREAD] Dec 24 08:01:01 provasys kernel: ata7: on atapci1 Dec 24 08:01:01 provasys kernel: ata7: [ITHREAD] Dec 24 08:01:01 provasys kernel: rl0: port 0xd400-0xd4ff mem 0xed080000-0xed0800ff irq 16 at device 11.0 on pci1 Dec 24 08:01:01 provasys kernel: miibus0: on rl0 Dec 24 08:01:01 provasys kernel: rlphy0: PHY 0 on miibus0 Dec 24 08:01:01 provasys kernel: rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Dec 24 08:01:01 provasys kernel: rl0: Ethernet address: 00:0d:61:7f:4d:22 Dec 24 08:01:01 provasys kernel: rl0: [ITHREAD] Dec 24 08:01:01 provasys kernel: atapci2: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 9.0 on pci0 Dec 24 08:01:01 provasys kernel: ata0: on atapci2 Dec 24 08:01:01 provasys kernel: ata0: [ITHREAD] Dec 24 08:01:01 provasys kernel: ata1: on atapci2 Dec 24 08:01:01 provasys kernel: ata1: [ITHREAD] Dec 24 08:01:01 provasys kernel: pcib2: at device 30.0 on pci0 Dec 24 08:01:01 provasys kernel: pci2: on pcib2 Dec 24 08:01:01 provasys kernel: atrtc0: port 0x70-0x73 irq 8 on acpi0 Dec 24 08:01:01 provasys kernel: atkbdc0: port 0x60,0x64 irq 1 on acpi0 Dec 24 08:01:01 provasys kernel: atkbd0: irq 1 on atkbdc0 Dec 24 08:01:01 provasys kernel: kbd0 at atkbd0 Dec 24 08:01:01 provasys kernel: atkbd0: [GIANT-LOCKED] Dec 24 08:01:01 provasys kernel: atkbd0: [ITHREAD] Dec 24 08:01:01 provasys kernel: psm0: irq 12 on atkbdc0 Dec 24 08:01:01 provasys kernel: psm0: [GIANT-LOCKED] Dec 24 08:01:01 provasys kernel: psm0: [ITHREAD] Dec 24 08:01:01 provasys kernel: psm0: model Generic PS/2 mouse, device ID 0 Dec 24 08:01:01 provasys kernel: cpu0: on acpi0 Dec 24 08:01:01 provasys kernel: pmtimer0 on isa0 Dec 24 08:01:01 provasys kernel: orm0: at iomem 0xc0000-0xcafff pnpid ORM0000 on isa0 Dec 24 08:01:01 provasys kernel: sc0: at flags 0x100 on isa0 Dec 24 08:01:01 provasys kernel: sc0: VGA <16 virtual consoles, flags=0x300> Dec 24 08:01:01 provasys kernel: vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Dec 24 08:01:01 provasys kernel: ppc0: parallel port not found. Dec 24 08:01:01 provasys kernel: Timecounter "TSC" frequency 1830011307 Hz quality 800 Dec 24 08:01:01 provasys kernel: Timecounters tick every 1.000 msec Dec 24 08:01:01 provasys kernel: usbus0: 12Mbps Full Speed USB v1.0 Dec 24 08:01:01 provasys kernel: usbus1: 12Mbps Full Speed USB v1.0 Dec 24 08:01:01 provasys kernel: usbus2: 480Mbps High Speed USB v2.0 Dec 24 08:01:01 provasys kernel: ad0: 8062MB at ata0-master UDMA66 Dec 24 08:01:01 provasys kernel: ugen0.1: at usbus0 Dec 24 08:01:01 provasys kernel: uhub0: on usbus0 Dec 24 08:01:01 provasys kernel: ugen1.1: at usbus1 Dec 24 08:01:01 provasys kernel: uhub1: on usbus1 Dec 24 08:01:01 provasys kernel: ugen2.1: at usbus2 Dec 24 08:01:01 provasys kernel: uhub2: on usbus2 Dec 24 08:01:01 provasys kernel: acd0: CDROM at ata0-slave UDMA33 Dec 24 08:01:01 provasys kernel: ad4: 476940MB at ata2-master SATA150 Dec 24 08:01:01 provasys kernel: uhub0: 3 ports with 3 removable, self powered Dec 24 08:01:01 provasys kernel: uhub1: 3 ports with 3 removable, self powered Dec 24 08:01:01 provasys kernel: ad10: 476940MB at ata5-master SATA150 Dec 24 08:01:01 provasys kernel: Root mount waiting for: usbus2 Dec 24 08:01:01 provasys kernel: Root mount waiting for: usbus2 Dec 24 08:01:01 provasys kernel: uhub2: 6 ports with 6 removable, self powered Dec 24 08:01:01 provasys kernel: Trying to mount root from ufs:/dev/ad0s1a Dec 24 08:01:03 provasys kernel: rl0: link state changed to UP Dec 24 08:01:09 provasys dhclient: New IP Address (rl0): 192.168.1.2 Dec 24 08:01:09 provasys dhclient: New Subnet Mask (rl0): 255.255.255.0 Dec 24 08:01:09 provasys dhclient: New Broadcast Address (rl0): 192.168.1.255 Dec 24 08:01:09 provasys dhclient: New Routers (rl0): 192.168.1.1 Dec 24 08:01:11 provasys login: ROOT LOGIN (root) ON ttyv0 Dec 24 08:01:52 provasys root: Unknown USB device: vendor 0x0951 product 0x1603 bus uhub2 Dec 24 08:01:52 provasys kernel: ugen2.2: at usbus2 Dec 24 08:01:52 provasys kernel: umass0: on usbus2 Dec 24 08:01:52 provasys kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Dec 24 08:01:53 provasys kernel: umass0:0:0:-1: Attached to scbus0 Dec 24 08:01:53 provasys kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Dec 24 08:01:53 provasys kernel: da0: Removable Direct Access SCSI-2 device Dec 24 08:01:53 provasys kernel: da0: 40.000MB/s transfers Dec 24 08:01:53 provasys kernel: da0: 953MB (1952256 512 byte sectors: 64H 32S/T 953C) Dec 24 08:02:22 provasys login: ROOT LOGIN (root) ON ttyv1 >How-To-Repeat: - PCI SATA VIA 6421A controller board - two SATA disks in ZFS mirror (or 1 PATA+2SATA in ZFS raid1) - heavy read/write load or "zpool scrub" starts errors >Fix: Patch attached with submission follows: hostb0@pci0:0:0:0: class=0x060000 card=0x00000000 chip=0x01e010de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'AGP Controller (nForce2)' class = bridge subclass = HOST-PCI none0@pci0:0:0:1: class=0x050000 card=0x0c1710de chip=0x01eb10de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'Memory Controller 1 (nForce2)' class = memory subclass = RAM none1@pci0:0:0:2: class=0x050000 card=0x0c1710de chip=0x01ee10de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'Memory Controller 4 (nForce2)' class = memory subclass = RAM none2@pci0:0:0:3: class=0x050000 card=0x0c1710de chip=0x01ed10de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'Memory Controller 3 (nForce2)' class = memory subclass = RAM none3@pci0:0:0:4: class=0x050000 card=0x0c1710de chip=0x01ec10de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'Memory Controller 2 (nForce2)' class = memory subclass = RAM none4@pci0:0:0:5: class=0x050000 card=0x0c1710de chip=0x01ef10de rev=0xc1 hdr=0x00 vendor = 'Nvidia Corp' device = 'Memory Controller 5 (nForce2)' class = memory subclass = RAM isab0@pci0:0:1:0: class=0x060100 card=0x0c111458 chip=0x006010de rev=0xa4 hdr=0x00 vendor = 'Nvidia Corp' device = 'ISA Bridge (nForce MCP2)' class = bridge subclass = PCI-ISA none5@pci0:0:1:1: class=0x0c0500 card=0x0c111458 chip=0x006410de rev=0xa2 hdr=0x00 vendor = 'Nvidia Corp' device = 'SMBus Controller (nForce MCP-T)' class = serial bus subclass = SMBus ohci0@pci0:0:2:0: class=0x0c0310 card=0x50041458 chip=0x006710de rev=0xa4 hdr=0x00 vendor = 'Nvidia Corp' device = 'OpenHCI USB Controller (nForce MCP2)' class = serial bus subclass = USB ohci1@pci0:0:2:1: class=0x0c0310 card=0x50041458 chip=0x006710de rev=0xa4 hdr=0x00 vendor = 'Nvidia Corp' device = 'OpenHCI USB Controller (nForce MCP2)' class = serial bus subclass = USB ehci0@pci0:0:2:2: class=0x0c0320 card=0x50041458 chip=0x006810de rev=0xa4 hdr=0x00 vendor = 'Nvidia Corp' device = 'EHCI USB 2.0 Controller (nForce MCP2)' class = serial bus subclass = USB pcib1@pci0:0:8:0: class=0x060400 card=0x00000000 chip=0x006c10de rev=0xa3 hdr=0x01 vendor = 'Nvidia Corp' device = 'nForce MCP-T CPU to PCI Bridge' class = bridge subclass = PCI-PCI atapci2@pci0:0:9:0: class=0x01018a card=0x50021458 chip=0x006510de rev=0xa2 hdr=0x00 vendor = 'Nvidia Corp' device = 'PATA Controller (nForce MCP2/MCP2-T/MCP2-U)' class = mass storage subclass = ATA pcib2@pci0:0:30:0: class=0x060400 card=0x00000000 chip=0x01e810de rev=0xc1 hdr=0x01 vendor = 'Nvidia Corp' device = 'AGP Host to PCI Bridge (nForce2)' class = bridge subclass = PCI-PCI vgapci0@pci0:1:6:0: class=0x030000 card=0x00391002 chip=0x51441002 rev=0x00 hdr=0x00 vendor = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.' device = 'Radeon 7200 QD SDR/DDR (Radeon 7200 QD SDR/DDR)' class = display subclass = VGA atapci0@pci0:1:7:0: class=0x010400 card=0x32491106 chip=0x32491106 rev=0x50 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VIA VT6421 RAID Controller - Windows XP 32.bit (VT6421)' class = mass storage subclass = RAID atapci1@pci0:1:9:0: class=0x010400 card=0x32491106 chip=0x32491106 rev=0x50 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VIA VT6421 RAID Controller - Windows XP 32.bit (VT6421)' class = mass storage subclass = RAID rl0@pci0:1:11:0: class=0x020000 card=0xe0001458 chip=0x813910ec rev=0x10 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'Realtek RTL8139 Family PCI Fast Ethernet NIC (RTL-8139/8139C/8139C)' class = network subclass = ethernet >Release-Note: >Audit-Trail: >Unformatted: