From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 16 07:30:16 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0562216A4CE for ; Wed, 16 Feb 2005 07:30:16 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97C2843D46 for ; Wed, 16 Feb 2005 07:30:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1G7UFNx074320 for ; Wed, 16 Feb 2005 07:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1G7UF71074317; Wed, 16 Feb 2005 07:30:15 GMT (envelope-from gnats) Resent-Date: Wed, 16 Feb 2005 07:30:15 GMT Resent-Message-Id: <200502160730.j1G7UF71074317@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mipam Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CBB616A4CE for ; Wed, 16 Feb 2005 07:21:28 +0000 (GMT) Received: from relay3.ordina.nl (relay3.ordina.nl [193.172.9.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42E4A43D1D for ; Wed, 16 Feb 2005 07:21:27 +0000 (GMT) (envelope-from root@relay3.ordina.nl) Received: from localhost (localhost [127.0.0.1]) by relay3.ordina.local (Postfix) with ESMTP id C43C444A434 for ; Wed, 16 Feb 2005 08:21:15 +0100 (CET) Received: from relay3.ordina.nl ([127.0.0.1]) by localhost (relay3.ordina.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 81659-10 for ; Wed, 16 Feb 2005 08:21:15 +0100 (CET) Received: by relay3.ordina.local (Postfix, from userid 0) id 7A00944A429; Wed, 16 Feb 2005 08:21:15 +0100 (CET) Message-Id: <20050216072115.7A00944A429@relay3.ordina.local> Date: Wed, 16 Feb 2005 08:21:15 +0100 (CET) From: Mipam To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/77588: PREEMPTION problems in combination with em driver on 5-stable X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mipam List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 07:30:16 -0000 >Number: 77588 >Category: kern >Synopsis: PREEMPTION problems in combination with em driver on 5-stable >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 16 07:30:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Mipam >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD relay3.ordina.local 5.3-STABLE FreeBSD 5.3-STABLE #5: Fri Feb 11 12:33:26 CET 2005 root@relay3.ordina.local:/usr/obj/usr/src/sys/Mipam i386 >Description: On a SMP machine with a kernel compiled with options PREEMPTION and a network card that is supported by the em driver I am noticing problems. When the bge driver is used for other cards, the problem does not occur. I also noticed that when disabling PREEMPTION the problem also doesn't occur when using the em driver. The messages i receive are: calcru: negative runtime of -891485461 usec for pid 45 (swi5: clock sio) Output of ps waux: root 45 0.0 0.0 0 8 ?? WL Tue03PM -2341058:-22.07 [swi5: clock sio] Lots and lots of messages like these are being generated. /var/log/messages is full of it. The scheduler im using is 4bsd. dmesg output: Copyright (c) 1992-2005 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.3-STABLE #4: Tue Feb 8 14:41:10 CET 2005 root at mymachine.domain.com:/usr/obj/usr/src/sys/Mipam Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) III CPU family 1133MHz (1125.78-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6b1 Stepping = 1 Features=0x383fbff real memory = 2147467264 (2047 MB) avail memory = 2095861760 (1998 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 3 cpu1 (AP): APIC ID: 0 MADT: Forcing active-low polarity and level trigger for SCI ioapic1 irqs 16-31 on motherboard ioapic0 irqs 0-15 on motherboard npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x240-0x243 on acpi0 cpu0: on acpi0 cpu1: on acpi0 pcib0: on acpi0 pci0: on pcib0 ciss0: port 0x2000-0x20ff mem 0xf5ef0000-0xf5ef3fff,0xf7 dc0000-0xf7dfffff irq 16 at device 1.0 on pci0 fxp0: port 0x2400-0x243f mem 0xf7c00000-0xf7cffff f,0xf7db0000-0xf7db0fff irq 18 at device 2.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:02:a5:da:70:0d fxp1: port 0x2440-0x247f mem 0xf7a00000-0xf7affff f,0xf7bf0000-0xf7bf0fff irq 20 at device 4.0 on pci0 miibus1: on fxp1 inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: Ethernet address: 00:02:a5:da:70:0c pci0: at device 5.0 (no driver attached) pci0: at device 6.0 (no driver attached) isab0: at device 15.0 on pci0 atapci0: port 0x2c00-0x2c0f,0x376,0x170-0x 177,0x3f6,0x1f0-0x1f7 at device 15.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 ohci0: mem 0xf5fd0000-0xf5fd0fff irq 22 at devic e 15.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered pcib1: on acpi0 pci1: on pcib1 pcib2: on acpi0 pci7: on pcib2 em0: port 0x3000-0x303f mem 0xf7f80000-0xf7fbffff,0xf7fe0000-0xf7ffffff irq 28 at device 3.0 on pci7 em0: Ethernet address: 00:04:23:ab:a1:3c em0: Speed:N/A Duplex:N/A em1: port 0x3040-0x307f mem 0xf7f00000-0xf7f3ffff,0xf7f60000-0xf7f7ffff irq 28 at device 3.1 on pci7 em1: Ethernet address: 00:04:23:ab:a1:3d em1: Speed:N/A Duplex:N/A pci7: at device 7.0 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 sio0: port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A fdc0: port 0x3f2-0x3f5 irq 6 drq 2 on acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 orm0: at iomem 0xee000-0xeffff,0xcc000-0xcd7ff,0xc8000-0xcbfff ,0xc0000-0xc7fff on isa0 pmtimer0 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec acd0: CDROM at ata0-master PIO4 SMP: AP CPU #1 Launched! da0 at ciss0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 135.168MB/s transfers da0: 104183MB (213367680 512 byte sectors: 255H 32S/T 26148C) Mounting root from ufs:/dev/da0s1a >How-To-Repeat: Use an gig intel card that is supported by the em driver. Compile a kernel with options PREEMPTION and run. I am not sure whether this problems only occurs on smp machines or also on single cpu machines, i think it'll appear on both. >Fix: Don't know, is it something in the em driver or with PREEMPTION? >Release-Note: >Audit-Trail: >Unformatted: