Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2007 11:09:35 +0300
From:      Stefan Lambrev <stefan.lambrev@sun-fish.com>
To:        Jack Vogel <jfvogel@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: em0 - bge0 failed to work at 1000baseTX
Message-ID:  <462F0CBF.6020507@sun-fish.com>
In-Reply-To: <2a41acea0704241103r59a1fa8di7e7747e191eea787@mail.gmail.com>
References:  <462E3B4A.5030307@sun-fish.com> <2a41acea0704241103r59a1fa8di7e7747e191eea787@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

Jack Vogel wrote:
> On 4/24/07, Stefan Lambrev <stefan.lambrev@sun-fish.com> wrote:
>> Hello,
>>
>> I'm trying to get two gigabit network cards to work together.
>>
>> em0: <Intel(R) PRO/1000 Network Connection Version - 6.2.9> port
>> 0x1000-0x101f mem 0xf0500000-0xf051ffff,0xf0524000-0xf0524fff irq 19 at
>> device 25.0 on pci0
>>
>> em0@pci0:25:0:  class=0x020000 card=0x2800103c chip=0x104a8086 rev=0x02
>> hdr=0x00
>>     vendor     = 'Intel Corporation'
>>     class      = network
>>     subclass   = ethernet
>>
>> and broadcom on the other end:
>>
>> bge0: <Broadcom BCM5750 C1, ASIC rev. 0x4201> mem 0xf4100000-0xf410ffff
>> irq 16 at device 0.0 on pci8
>>
>> bge0@pci8:0:0:  class=0x020000 card=0x30a3103c chip=0x16fd14e4 rev=0x21
>> hdr=0x00
>>     vendor     = 'Broadcom Corporation'
>>     device     = 'BCM5753M NetXtreme Gigabit Ethernet PCI Express'
>>     class      = network
>>     subclass   = ethernet
>>
>>
>> When I connect both networks without switch e.g. directly they auto
>> negotiate to:
>> media: Ethernet autoselect (100baseTX <full-duplex>)
>> but I want 1000baseTX :(
>>
>> First thing that I tried was to force both network card with:
>> ifconfig bge0/em0 media 1000baseTX mediaopt full-duplex
>> but this lead to status: no carrier
>>
>> Second step was to set bge link0 and em0 link1, but still "no carrier"
>> (from bge manual)
>>
>> On the machine with em card I have linux installed so I boot under linux
>> and then everything works
>> with autoselect, and I'm able to transfer with speed +50MB/s.
>>
>> When I forced both network cards to 1000baseTX I notice this:
>>
>> em0 media: Ethernet 1000baseTX <full-duplex> (autoselect)
>>
>> ^^^^^^^^
>> bge0 media: Ethernet 1000baseTX <full-duplex> (none)
>>
>> ^^^^
>>
>> Something else that is quite strange is that when I change em media from
>> autoselec to 1000baseTX,
>> I see that for 2-3 seconds there is a connection between cards (e.g.
>> status: active), but just for 2-3 seconds
>> and then it disconnects again. (ping between hosts works for 2 seconds)
>> At this time ifconfig shows:
>> em0
>> media: Ethernet 1000baseTX <full-duplex>
>>
>> ^^^^^^ no autoselect here ?
>> status: active
>>
>> and bge0:
>> media: Ethernet autoselect (1000baseTX <full-duplex>) ( I left bge to
>> autoselect at some point as I saw it does not change a thing..)
>> status: active
>>
>> I compiled new kernel with
>> #define EM_MASTER_SLAVE      2 (and then 3)
>> in if_em.h (as I'm suspecting em driver ..)
>> but still no success.
>>
>> Last thing that I notice while (re)booting freebsd server with em0 is 
>> that
>> during starting program and rc scripts the status of the network changed
>> from 100mbps -> 1000mbps -> no carrier -> 100mbps.
>>
>> So any ideas how to get my network working at gigabit speeds? :)
>>
>> P.S. both machines are running freebsd 6.2 stable - em0 is i386 and bge0
>> is on amd64.
>> em0 was tested with 6.2-release too.
>>
>> Thanks in advance.
>
> Do me a favor please, go to downloadfinder.intel.com and get my latest
> driver,  its version 6.3.9, since ICH8 is fairly recent and has had some
> late-breaking fixes in shared code its possible that will solve things.
> You will want to use this driver as a module, its a hassle to build into
> the kernel (although there is a patch to allow you to do that if you 
> wish).
>
> Please report back EITHER if it works or fails, if it does still fail 
> I will
> have our test/validation group get hardware set up to look into this.
>
> Jack
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
Unfortunately 6.3.9 have the same behavior as 6.2.9 and I can't get both 
network cards to work at gigabit speed.
Any other ideas ? :)

dmesg:

Copyright (c) 1992-2007 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 6.2-STABLE #3: Wed Apr 25 07:40:24 UTC 2007
    root@shitler.cmotd.com:/usr/obj/usr/src/sys/CORE-SMP
acpi_alloc_wakeup_handler: can't alloc wake memory
ACPI APIC Table: <COMPAQ BROADH2O>
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 3.00GHz (2992.51-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf65  Stepping = 5
  
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe49d<SSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,<b14>,<b15>>
  AMD Features=0x20100000<NX,LM>
  AMD Features2=0x1<LAHF>
  Cores per package: 2
real memory  = 1048248320 (999 MB)
avail memory = 1019318272 (972 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <HPQOEM SLIC-BPC> on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf808-0xf80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
cpu1: <ACPI CPU> on acpi0
acpi_throttle1: <ACPI CPU Throttling> on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <display, VGA> at device 2.0 (no driver attached)
pci0: <simple comms> at device 3.0 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection Version - 6.3.9> port 
0x1000-0x101f mem 0xf0500000-0xf051ffff,0xf0524000-0xf0524fff irq 19 at 
device 25.0 on pci0
em0: Ethernet address: 00:0f:fe:4e:78:16
uhci0: <UHCI (generic) USB controller> at device 26.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <UHCI (generic) USB controller> 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
uhci1: <UHCI (generic) USB controller> at device 26.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <UHCI (generic) USB controller> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> at device 26.7 on pci0
ehci0: [GIANT-LOCKED]
usb2: waiting for BIOS to give up control
usb2: timed out waiting for BIOS
usb2: EHCI version 1.0
usb2: companion controllers, 2 ports each: usb0 usb1
usb2: <EHCI (generic) USB 2.0 controller> on ehci0
usb2: USB revision 2.0
uhub2: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 4 ports with 4 removable, self powered
pci0: <multimedia> at device 27.0 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pci32: <ACPI PCI bus> on pcib1
uhci2: <UHCI (generic) USB controller> at device 29.0 on pci0
uhci2: [GIANT-LOCKED]
usb3: <UHCI (generic) USB controller> on uhci2
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhci3: <UHCI (generic) USB controller> at device 29.1 on pci0
uhci3: [GIANT-LOCKED]
usb4: <UHCI (generic) USB controller> on uhci3
usb4: USB revision 1.0
uhub4: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
ehci1: <EHCI (generic) USB 2.0 controller> at device 29.7 on pci0
ehci1: [GIANT-LOCKED]
usb5: waiting for BIOS to give up control
usb5: timed out waiting for BIOS
usb5: EHCI version 1.0
usb5: wrong number of companions (3 != 2)
usb5: companion controllers, 2 ports each: usb3 usb4
usb5: <EHCI (generic) USB 2.0 controller> on ehci1
usb5: USB revision 2.0
uhub5: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub5: 6 ports with 6 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci7: <ACPI PCI bus> on pcib2
ohci0: <NEC uPD 9210 USB controller> at device 9.0 on pci7
ohci0: [GIANT-LOCKED]
usb6: OHCI version 1.0
usb6: <NEC uPD 9210 USB controller> on ohci0
usb6: USB revision 1.0
uhub6: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub6: 3 ports with 3 removable, self powered
ohci1: <NEC uPD 9210 USB controller> at device 9.1 on pci7
ohci1: [GIANT-LOCKED]
usb7: OHCI version 1.0
usb7: <NEC uPD 9210 USB controller> on ohci1
usb7: USB revision 1.0
uhub7: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub7: 2 ports with 2 removable, self powered
ehci2: <NEC uPD 720100 USB 2.0 controller> at device 9.2 on pci7
ehci2: [GIANT-LOCKED]
usb8: EHCI version 1.0
usb8: companion controllers, 3 ports each: usb6 usb7
usb8: <NEC uPD 720100 USB 2.0 controller> on ehci2
usb8: USB revision 2.0
uhub8: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub8: 5 ports with 5 removable, self powered
umass0: Generic USB2.0-CRW, rev 2.00/11.0d, addr 2
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH8 SATA300 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x10e0-0x10ef,0x10f0-0x10ff irq 18 
at device 31.2 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 
on acpi0
fdc0: does not respond
device_attach: fdc0 attach returned 6
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on 
acpi0
Timecounter "HPET" frequency 14318180 Hz quality 2000
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 
on acpi0
fdc0: does not respond
device_attach: fdc0 attach returned 6
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 
0xc0000-0xcafff,0xcb000-0xcbfff,0xcc000-0xccfff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
ad0: 152627MB <Seagate ST3160812AS 3.AHL> at ata0-master SATA150
ad1: 152627MB <MAXTOR STM3160811AS 3.AAE> at ata0-slave SATA150
acd0: DVDR <HL-DT-STDVD+-RW GSA-H31L/1.05> at ata1-master SATA150
SMP: AP CPU #1 Launched!
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Generic- Compact Flash 1.00> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
da1 at umass-sim0 bus 0 target 0 lun 1
da1: <Generic- SM/xD-Picture 1.00> Removable Direct Access SCSI-0 device
da1: 40.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
da2 at umass-sim0 bus 0 target 0 lun 2
da2: <Generic- SD/MMC 1.00> Removable Direct Access SCSI-0 device
da2: 40.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
da3 at umass-sim0 bus 0 target 0 lun 3
da3: <Generic- MS/MS-Pro 1.00> Removable Direct Access SCSI-0 device
da3: 40.000MB/s transfers
da3: Attempt to query device size failed: NOT READY, Medium not present

-- 

Best Wishes,
Stefan Lambrev
ICQ# 24134177




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?462F0CBF.6020507>