Florent Peterschmitt
2013-Nov-10 01:46 UTC
10.0-BETA3 em/nfe drivers on MSI K9NBPM2-FID board. LAN card changes.
Hi, I have a server at Hetzner and something strange happend. First, I installed FreeBSD 10.0-BETA3 (amd64) via their FreeBSD 9.2-RELEASE rescue system, that's ok. I had to configure the network by using the em driver -> em0 interface. But suddenly, the network was lost. After an ACPI reboot, nothing. Going to the vKVM show me the system didn't detected em0 anymore but an nVidia (nfe driver) card! Here is the hardware: http://www.msi.com/product/mb/K9NBPM2-FID.html#/?div=Detail Here is a partial dmesg: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 ### something interesting ### ciphy0: <Vitesse VSC8601 10/100/1000TX PHY> PHY 1 on miibus0 Some /var/log/messages related to NICs: bootlog_nfe_em.txt Full dmesg of the currently booted system: dmesg.txt Does FreeBSD "confused" the "Vitesse" card and the nVidia one? -- Florent Peterschmitt | Please: florent at peterschmitt.fr | * Avoid HTML/RTF in E-mail. +33 (0)6 64 33 97 92 | * Send PDF for documents. http://florent.peterschmitt.fr | * Trim your quotations. Really. Proudly powered by Open Source | Thank you :) -------------- next part -------------- root at gentiane:/var/log # cat messages |egrep "(em0|nfe0)" Nov 9 11:03:07 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 9 11:03:07 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 9 11:03:07 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 9 11:15:45 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 9 11:15:45 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 9 11:15:45 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 9 11:15:47 gentiane kernel: nfe0: link state changed to UP Nov 9 11:15:47 gentiane devd: Executing '/etc/rc.d/dhclient quietstart nfe0' Nov 9 11:19:35 gentiane kernel: em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.6> port 0xc000-0xc03f mem 0xfeba0000-0xfebbffff irq 11 at device 4.0 on pci0 Nov 9 11:19:35 gentiane kernel: em0: Ethernet address: 00:19:db:bc:45:df Nov 9 11:21:31 gentiane kernel: em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.6> port 0xc000-0xc03f mem 0xfeba0000-0xfebbffff irq 11 at device 4.0 on pci0 Nov 9 11:21:31 gentiane kernel: em0: Ethernet address: 00:19:db:bc:45:df Nov 9 11:29:40 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 9 11:29:40 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 9 11:29:40 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 9 11:33:55 gentiane kernel: em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.6> port 0xc000-0xc03f mem 0xfeba0000-0xfebbffff irq 11 at device 4.0 on pci0 Nov 9 11:33:55 gentiane kernel: em0: Ethernet address: 00:19:db:bc:45:df Nov 9 11:38:48 gentiane kernel: em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.6> port 0xc000-0xc03f mem 0xfeba0000-0xfebbffff irq 11 at device 4.0 on pci0 Nov 9 11:38:48 gentiane kernel: em0: Ethernet address: 00:19:db:bc:45:df Nov 9 23:09:52 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 9 23:09:52 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 9 23:09:52 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 9 23:12:32 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 9 23:12:32 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 9 23:12:32 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 9 23:15:44 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 9 23:15:44 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 9 23:15:44 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 9 23:22:36 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 9 23:22:36 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 9 23:22:36 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 9 23:33:49 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 9 23:33:49 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 9 23:33:49 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 9 23:41:21 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 9 23:41:21 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 9 23:41:21 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 9 23:53:33 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 9 23:53:33 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 9 23:53:33 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 9 23:53:34 gentiane kernel: nfe0: link state changed to UP Nov 9 23:53:34 gentiane devd: Executing '/etc/rc.d/dhclient quietstart nfe0' Nov 10 00:00:09 gentiane kernel: nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 Nov 10 00:00:09 gentiane kernel: miibus0: <MII bus> on nfe0 Nov 10 00:00:09 gentiane kernel: nfe0: Ethernet address: 00:19:db:bc:45:df Nov 10 00:00:10 gentiane kernel: nfe0: link state changed to UP Nov 10 00:00:10 gentiane devd: Executing '/etc/rc.d/dhclient quietstart nfe0' -------------- next part -------------- root at gentiane:/var/log # dmesg Copyright (c) 1992-2013 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 10.0-BETA3 #0 r257580: Sun Nov 3 19:43:01 UTC 2013 root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 CPU: Dual-Core AMD Opteron(tm) Processor 1218 (2612.02-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x40f32 Family = 0xf Model = 0x43 Stepping = 2 Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=0x2001<SSE3,CX16> AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!> AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8> real memory = 4294967296 (4096 MB) avail memory = 4042719232 (3855 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: <A M I OEMAPIC > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 <Version 1.1> irqs 0-23 on motherboard random: <Software, Yarrow> initialized kbd1 at kbdmux0 acpi0: <A M I OEMRSDT> on motherboard acpi0: Power Button (fixed) acpi0: reservation of ffb80000, 80000 (3) failed acpi0: reservation of fee01000, ff000 (3) failed acpi0: reservation of fec00000, 1000 (3) failed acpi0: reservation of fee00000, 1000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, cff00000 (3) failed cpu0: <ACPI CPU> on acpi0 cpu1: <ACPI CPU> on acpi0 attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed00fff on acpi0 Timecounter "HPET" frequency 25000000 Hz quality 950 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pci0: <memory, RAM> at device 0.0 (no driver attached) pci0: <memory, RAM> at device 0.2 (no driver attached) pci0: <memory, RAM> at device 0.3 (no driver attached) pci0: <memory, RAM> at device 0.4 (no driver attached) pci0: <memory, RAM> at device 0.5 (no driver attached) pci0: <memory, RAM> at device 0.6 (no driver attached) pci0: <memory, RAM> at device 0.7 (no driver attached) pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0 pci1: <ACPI PCI bus> on pcib1 pcib2: <ACPI PCI-PCI bridge> at device 3.0 on pci0 pci2: <ACPI PCI bus> on pcib2 pcib3: <ACPI PCI-PCI bridge> at device 4.0 on pci0 pci3: <ACPI PCI bus> on pcib3 vgapci0: <VGA-compatible display> mem 0xfd000000-0xfdffffff,0xd0000000-0xdfffffff,0xfc000000-0xfcffffff irq 16 at device 5.0 on pci0 pci0: <memory, RAM> at device 9.0 (no driver attached) isab0: <PCI-ISA bridge> at device 10.0 on pci0 isa0: <ISA bus> on isab0 pci0: <serial bus, SMBus> at device 10.1 (no driver attached) ohci0: <OHCI (generic) USB controller> mem 0xfebde000-0xfebdefff irq 21 at device 11.0 on pci0 usbus0 on ohci0 ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfebdfc00-0xfebdfcff irq 23 at device 11.1 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 atapci0: <nVidia nForce MCP51 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 13.0 on pci0 ata0: <ATA channel> at channel 0 on atapci0 ata1: <ATA channel> at channel 1 on atapci0 atapci1: <nVidia nForce MCP51 SATA300 controller> port 0xe800-0xe807,0xe480-0xe483,0xe400-0xe407,0xe080-0xe083,0xe000-0xe00f mem 0xfebdd000-0xfebddfff irq 22 at device 14.0 on pci0 ata2: <ATA channel> at channel 0 on atapci1 ata3: <ATA channel> at channel 1 on atapci1 atapci2: <nVidia nForce MCP51 SATA300 controller> port 0xdc00-0xdc07,0xd880-0xd883,0xd800-0xd807,0xd480-0xd483,0xd400-0xd40f mem 0xfebdc000-0xfebdcfff irq 23 at device 15.0 on pci0 ata4: <ATA channel> at channel 0 on atapci2 ata5: <ATA channel> at channel 1 on atapci2 pcib4: <ACPI PCI-PCI bridge> at device 16.0 on pci0 pci4: <ACPI PCI bus> on pcib4 nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 miibus0: <MII bus> on nfe0 ciphy0: <Vitesse VSC8601 10/100/1000TX PHY> PHY 1 on miibus0 ciphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow nfe0: Ethernet address: 00:19:db:bc:45:df acpi_button0: <Power Button> on acpi0 acpi_tz0: <Thermal Zone> on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 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] 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 ppc0: cannot reserve I/O port range powernow0: <PowerNow! K8> on cpu0 device_attach: powernow0 attach returned 6 powernow1: <PowerNow! K8> on cpu1 device_attach: powernow1 attach returned 6 ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present; to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf. ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec random: unblocking device. usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 ugen0.1: <nVidia> at usbus0 uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ugen1.1: <nVidia> at usbus1 uhub1: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1 uhub0: 8 ports with 8 removable, self powered ada0 at ata2 bus 0 scbus2 target 0 lun 0 ada0: <ST3750528AS CC44> ATA-8 SATA 2.x device ada0: Serial Number 5VP7VGDJ ada0: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada0: 715404MB (1465149168 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad4 ada1 at ata4 bus 0 scbus4 target 0 lun 0 ada1: <ST3750528AS CC44> ATA-8 SATA 2.x device ada1: Serial Number 6VPAXX9C ada1: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada1: 715404MB (1465149168 512 byte sectors: 16H 63S/T 16383C) ada1: Previously was known as ad8 Netvsc initializing... SMP: AP CPU #1 Launched! GEOM_MIRROR: Cancelling unmapped because of ada1p2. GEOM_MIRROR: Cancelling unmapped because of ada0p2. GEOM_MIRROR: Device mirror/swap launched (2/2). Root mount waiting for: usbus1 Root mount waiting for: usbus1 Root mount waiting for: usbus1 uhub1: 8 ports with 8 removable, self powered Trying to mount root from zfs:tank/root_10b3 []... ugen0.2: <CHESEN> at usbus0 ukbd0: <CHESEN PS2 to USB Converter, class 0/0, rev 1.10/0.10, addr 2> on usbus0 kbd2 at ukbd0 ums0: <CHESEN PS2 to USB Converter, class 0/0, rev 1.10/0.10, addr 2> on usbus0 ums0: 5 buttons and [XYZ] coordinates ID=1 nfe0: link state changed to UP -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 901 bytes Desc: OpenPGP digital signature URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20131110/4187ce3a/attachment.sig>
Joe Holden
2013-Nov-10 14:49 UTC
10.0-BETA3 em/nfe drivers on MSI K9NBPM2-FID board. LAN card changes.
> -----Original Message----- > From: owner-freebsd-net at freebsd.org [mailto:owner-freebsd- > net at freebsd.org] On Behalf Of Florent Peterschmitt > Sent: 10 November 2013 01:46 > To: freebsd-net at freebsd.org; freebsd-stable stable > Subject: 10.0-BETA3 em/nfe drivers on MSI K9NBPM2-FID board. LAN card > changes. > > Hi, > > I have a server at Hetzner and something strange happend. > > First, I installed FreeBSD 10.0-BETA3 (amd64) via their FreeBSD9.2-RELEASE> rescue system, that's ok. > > I had to configure the network by using the em driver -> em0 interface. > > But suddenly, the network was lost. > > After an ACPI reboot, nothing. Going to the vKVM show me the system > didn't detected em0 anymore but an nVidia (nfe driver) card! >vKVM uses qemu emulation so it doesn't match the real hardware.> Here is the hardware: > > http://www.msi.com/product/mb/K9NBPM2-FID.html#/?div=Detail > > Here is a partial dmesg: > > nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xd080-0xd087 > mem 0xfebdb000-0xfebdbfff irq 20 at device 20.0 on pci0 > > ### something interesting ### > > ciphy0: <Vitesse VSC8601 10/100/1000TX PHY> PHY 1 on miibus0 > > > Some /var/log/messages related to NICs: bootlog_nfe_em.txt Full dmesg of > the currently booted system: dmesg.txt > > Does FreeBSD "confused" the "Vitesse" card and the nVidia one? >No because the MCP isn't the same as the PHY it may be connected to. Just change rc.conf to nfe and it'll probably work.> -- > Florent Peterschmitt | Please: > florent at peterschmitt.fr | * Avoid HTML/RTF in E-mail. > +33 (0)6 64 33 97 92 | * Send PDF for documents. > http://florent.peterschmitt.fr | * Trim your quotations. Really. > Proudly powered by Open Source | Thank you :)