From owner-freebsd-bugs@FreeBSD.ORG Fri Mar 12 08:30:08 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50E5D106566B for ; Fri, 12 Mar 2010 08:30:08 +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 142458FC1C for ; Fri, 12 Mar 2010 08:30:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2C8U7ZK029870 for ; Fri, 12 Mar 2010 08:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2C8U7Qi029867; Fri, 12 Mar 2010 08:30:07 GMT (envelope-from gnats) Resent-Date: Fri, 12 Mar 2010 08:30:07 GMT Resent-Message-Id: <201003120830.o2C8U7Qi029867@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, Pavel Argentov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A5491065676 for ; Fri, 12 Mar 2010 08:25:03 +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 6E7A18FC0C for ; Fri, 12 Mar 2010 08:25:03 +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 o2C8P2DT089494 for ; Fri, 12 Mar 2010 08:25:02 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o2C8P2Kb089493; Fri, 12 Mar 2010 08:25:02 GMT (envelope-from nobody) Message-Id: <201003120825.o2C8P2Kb089493@www.freebsd.org> Date: Fri, 12 Mar 2010 08:25:02 GMT From: Pavel Argentov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/144680: em(4) problem with dual-port adapter X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2010 08:30:08 -0000 >Number: 144680 >Category: kern >Synopsis: em(4) problem with dual-port adapter >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 12 08:30:07 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Pavel Argentov >Release: 7.2-RELEASE >Organization: Ratmir-TeleKom, Ltd. >Environment: FreeBSD pptp-2.rtelekom.ru 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #0: Thu Feb 25 08:27:41 MSK 2010 root@pptp-new.rtelekom.ru:/usr/src/sys/i386/compile/PPTP i386 >Description: The problem appears when using Intel PRO/1000 MT Dual Port Server Adapter (separate card, not motherboard integrated) in dual-port mode. When I boot the system without ethernet connection or with only one port plugged the driver starts as usual and works with no problem. But if I connect both ports the driver gives this message: em0: at device 1.0 on pci6 em0: Memory Access and/or Bus Master bits were not set! em0: 0x20000 bytes of rid 0x10 res 3 failed (0, 0xffffffff). em0: Unable to allocate bus resource: memory em0: Allocation of PCI resources failed device_attach: em0 attach returned 6 em1: at device 1.1 on pci6 em1: Memory Access and/or Bus Master bits were not set! em1: 0x20000 bytes of rid 0x10 res 3 failed (0, 0xffffffff). em1: Unable to allocate bus resource: memory em1: Allocation of PCI resources failed And there are no em devices visible to the system. If I boot with one port online and then plug the other the card resets (turns LEDs off, then, after a second, on again) and again is invisible to the system. I've reproduced the same problem with the system's base em(4) driver (6.9.6) and Intel's driver from their site (6.9.21). Turning "PnP OS" parameter on/off in the BIOS makes no difference. Here's the complete dmesg: Copyright (c) 1992-2009 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 7.2-RELEASE-p3 #0: Thu Feb 25 08:27:41 MSK 2010 root@pptp-new.rtelekom.ru:/usr/src/sys/i386/compile/PPTP Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Quad CPU Q8400 @ 2.66GHz (2666.38-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x1067a Stepping = 10 Features=0xbfebfbff Features2=0x408e3bd AMD Features=0x20100000 AMD Features2=0x1 Cores per package: 4 real memory = 1073152000 (1023 MB) avail memory = 1039228928 (991 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of fed08000, 1000 (3) failed acpi0: reservation of fed1c000, 4000 (3) failed acpi0: reservation of fed20000, 20000 (3) failed acpi0: reservation of fed50000, 40000 (3) failed acpi0: reservation of ffc00000, 200000 (3) failed acpi0: reservation of fec00000, 1000 (3) failed acpi0: reservation of fee00000, 1000 (3) failed acpi0: reservation of e0000000, 10000000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 3ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xb000-0xb0ff mem 0xd0000000-0xdfffffff,0xfe7e0000-0xfe7effff irq 16 at device 0.0 on pci1 pci1: at device 0.1 (no driver attached) uhci0: port 0xa800-0xa81f irq 16 at device 26.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xa880-0xa89f irq 21 at device 26.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xac00-0xac1f irq 19 at device 26.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xfe6ffc00-0xfe6fffff irq 18 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered pcib2: irq 17 at device 28.0 on pci0 pci4: on pcib2 pcib3: at device 0.0 on pci4 pci6: on pcib3 em0: at device 1.0 on pci6 em0: Memory Access and/or Bus Master bits were not set! em0: 0x20000 bytes of rid 0x10 res 3 failed (0, 0xffffffff). em0: Unable to allocate bus resource: memory em0: Allocation of PCI resources failed device_attach: em0 attach returned 6 em1: at device 1.1 on pci6 em1: Memory Access and/or Bus Master bits were not set! em1: 0x20000 bytes of rid 0x10 res 3 failed (0, 0xffffffff). em1: Unable to allocate bus resource: memory em1: Allocation of PCI resources failed device_attach: em1 attach returned 6 pcib4: mem 0xfeaffc00-0xfeaffc7f irq 16 at device 0.1 on pci4 pci5: on pcib4 pcib5: irq 17 at device 28.4 on pci0 pci3: on pcib5 re0: port 0xd800-0xd8ff mem 0xfe9ff000-0xfe9fffff,0xfdef0000-0xfdefffff irq 16 at device 0.0 on pci3 re0: Using 1 MSI messages re0: Chip rev. 0x3c000000 re0: MAC rev. 0x00400000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:26:18:00:a8:20 re0: [FILTER] pcib6: irq 18 at device 28.5 on pci0 pci2: on pcib6 re1: port 0xc800-0xc8ff mem 0xfe8ff000-0xfe8fffff,0xfddf0000-0xfddfffff irq 17 at device 0.0 on pci2 re1: Using 1 MSI messages re1: Chip rev. 0x3c000000 re1: MAC rev. 0x00400000 miibus1: on re1 rgephy1: PHY 1 on miibus1 rgephy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re1: Ethernet address: 00:26:18:00:a8:bd re1: [FILTER] uhci3: port 0xa080-0xa09f irq 23 at device 29.0 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb4: on uhci3 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered uhci4: port 0xa400-0xa41f irq 20 at device 29.1 on pci0 uhci4: [GIANT-LOCKED] uhci4: [ITHREAD] usb5: on uhci4 usb5: USB revision 1.0 uhub5: on usb5 uhub5: 2 ports with 2 removable, self powered uhci5: port 0xa480-0xa49f irq 18 at device 29.2 on pci0 uhci5: [GIANT-LOCKED] uhci5: [ITHREAD] usb6: on uhci5 usb6: USB revision 1.0 uhub6: on usb6 uhub6: 2 ports with 2 removable, self powered ehci1: mem 0xfe6ff800-0xfe6ffbff irq 23 at device 29.7 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb7: EHCI version 1.0 usb7: companion controllers, 2 ports each: usb4 usb5 usb6 usb7: on ehci1 usb7: USB revision 2.0 uhub7: on usb7 uhub7: 6 ports with 6 removable, self powered pcib7: at device 30.0 on pci0 pci7: on pcib7 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x9c00-0x9c07,0x9880-0x9883,0x9800-0x9807,0x9480-0x9483,0x9400-0x941f mem 0xfe6fe800-0xfe6fefff irq 19 at device 31.2 on pci0 atapci0: [ITHREAD] atapci0: AHCI Version 01.20 controller with 6 ports detected ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] ata5: on atapci0 ata5: [ITHREAD] ata6: on atapci0 ata6: [ITHREAD] ata7: on atapci0 ata7: [ITHREAD] ichsmb0: port 0x400-0x41f mem 0xfe6ff400-0xfe6ff4ff irq 18 at device 31.3 on pci0 ichsmb0: [GIANT-LOCKED] ichsmb0: [ITHREAD] smbus0: on ichsmb0 smb0: on smbus0 acpi_button0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 616082506000825 device_attach: est1 attach returned 6 p4tcc1: on cpu1 cpu2: on acpi0 est2: on cpu2 p4tcc2: on cpu2 cpu3: on acpi0 est3: on cpu3 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 616082506000825 device_attach: est3 attach returned 6 p4tcc3: on cpu3 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcefff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata0: [ITHREAD] ata1 at port 0x170-0x177,0x376 irq 15 on isa0 ata1: [ITHREAD] sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled Timecounters tick every 1.000 msec ipfw2 initialized, divert enabled, nat loadable, rule-based forwarding enabled, default to accept, logging limited to 100 packets/entry by default ad4: 152627MB at ata2-master SATA300 SMP: AP CPU #1 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #3 Launched! >How-To-Repeat: Insert Intel PRO/1000 MT Dual Port Server Adapter (82546EB as seen in pciconf; FW82546GB as written on the chip) into a PCI-X slot and boot with both ports plugged. Alternative: boot with one of two ports plugged; see all ok; plug the second port. >Fix: >Release-Note: >Audit-Trail: >Unformatted: