Smp kernel does not recognize rtl8111c nic
-
hi,
i'm trying to install pfsense 1.2.2 (tried also 1.2.3 prerelease snapshot) on hp compaq dx2400 (intel g33 chipset, intel celeron e1200 - dual core, rtl8111c onboard nic, aditional rtl8139d nic).
when i boot the live cd, configuration wizard corectly recognizes both nics as:
re0 (rtl8111c)
rl0 (rtl8139d)however after successful instalation to hdd with smp kernel, when the system boots up it is not able to recognize rtl8111c nic. the setup wizard only shows rl0.
uniprocessor kernel instalation recognizes both nics successfully.
is this some bug with smp kernel or rtl8111 is not supported with that kernel ?
if it is not supported would it be too much to ask for support ? ;Dthanks.
-
Could you post the startup output from the MP kernel? (The dmesg command will display the startup output.) This will help reduce the number of possibilities to consider.
-
sorry for not posting earlier. this is output of dmesg when running smpkernel:
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.1-RELEASE-p3 #0: Wed Mar 4 02:01:09 EST 2009 sullrich@freebsd7-releng_1_2_3-pre-testing.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.7 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(R) CPU E1200 @ 1.60GHz (1599.98-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6fd Stepping = 13 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=0xe39d <sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,cx16,xtpr,pdcm>AMD Features=0x20100000 <nx,lm>AMD Features2=0x1 <lahf>Cores per package: 2 real memory = 2137653248 (2038 MB) avail memory = 2082017280 (1985 MB) ACPI APIC Table: <hpqoem slic-bpc="">FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 <version 2.0="">irqs 0-23 on motherboard wlan: mac acl policy registered kbd1 at kbdmux0 cryptosoft0: <software crypto="">on motherboard acpi0: <hpqoem slic-bpc="">on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7f600000 (3) failed Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: <high precision="" event="" timer="">iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 pcib0: <acpi host-pci="" bridge="">port 0xcf8-0xcff on acpi0 pci0: <acpi pci="" bus="">on pcib0 vgapci0: <vga-compatible display="">port 0xbc00-0xbc07 mem 0xfe900000-0xfe97ffff,0xd0000000-0xdfffffff,0xfe800000-0xfe8fffff irq 16 at device 2.0 on pci0 agp0: <intel g33="" svga="" controller="">on vgapci0 agp0: detected 7164k stolen memory agp0: aperture size is 256M pcib1: <acpi pci-pci="" bridge="">irq 17 at device 28.0 on pci0 pci3: <acpi pci="" bus="">on pcib1 pcib2: <acpi pci-pci="" bridge="">irq 18 at device 28.2 on pci0 pci2: <acpi pci="" bus="">on pcib2 re0: <realtek 8168="" 8168b="" 8168c="" 8168cp="" 8168d="" 8111b="" 8111c="" 8111cp="" pcie="" gigabit="" ethernet="">port 0xe800-0xe8ff mem 0xfebff000-0xfebfffff,0xfdff0000-0xfdffffff irq 18 at device 0.0 on pci2 re0: Chip rev. 0x3c000000 re0: MAC rev. 0x00400000 re0: PHY write failed re0: PHY write failed re0: MII without any phy! device_attach: re0 attach returned 6 pcib3: <acpi pci-pci="" bridge="">at device 30.0 on pci0 pci1: <acpi pci="" bus="">on pcib3 rl0: <realtek 10="" 8139="" 100basetx="">port 0xd800-0xd8ff mem 0xfeaffc00-0xfeaffcff irq 17 at device 0.0 on pci1 miibus0: <mii bus="">on rl0 rlphy0: <realtek internal="" media="" interface="">PHY 0 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:e0:4c:81:3a:a1 rl0: [ITHREAD] isab0: <pci-isa bridge="">at device 31.0 on pci0 isa0: <isa bus="">on isab0 atapci0: <intel ich9="" sata300="" controller="">port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff90-0xff9f,0xffa0-0xffaf at device 31.2 on pci0 ata0: <ata 0="" channel="">on atapci0 ata0: [ITHREAD] ata1: <ata 1="" channel="">on atapci0 ata1: [ITHREAD] pci0: <serial bus,="" smbus="">at device 31.3 (no driver attached) atapci1: <intel ich9="" sata300="" controller="">port 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f,0xc080-0xc08f irq 19 at device 31.5 on pci0 atapci1: [ITHREAD] ata2: <ata 0="" channel="">on atapci1 ata2: [ITHREAD] ata3: <ata 1="" channel="">on atapci1 ata3: [ITHREAD] acpi_button0: <power button="">on acpi0 speaker0: <pc speaker="">port 0x61 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] atkbd0: [ITHREAD] cpu0: <acpi cpu="">on acpi0 ACPI Warning (tbutils-0243): Incorrect checksum in table [OEMB] - FC, should be FB [20070320] est0: <enhanced speedstep="" frequency="" control="">on cpu0 p4tcc0: <cpu frequency="" thermal="" control="">on cpu0 cpu1: <acpi cpu="">on acpi0 est1: <enhanced speedstep="" frequency="" control="">on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 82a082a0600082a device_attach: est1 attach returned 6 p4tcc1: <cpu frequency="" thermal="" control="">on cpu1 pmtimer0 on isa0 ppc0: parallel port not found. sc0: <system console="">at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> 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 vga0: <generic isa="" vga="">at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. ad0: 238475MB <seagate st3250310as="" 3.ahc="">at ata0-master SATA300 acd0: DVDR <tsstcorp cddvdw="" ts-h653q="" hc01="">at ata1-master SATA150 SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad0s1a rl0: link state changed to DOWN rl0: link state changed to UP vlan0: link state changed to UP vlan1: link state changed to UP pflog0: promiscuous mode enabled rl0: link state changed to DOWN vlan0: link state changed to DOWN vlan1: link state changed to DOWN</tsstcorp></seagate></generic></system></cpu></enhanced></acpi></cpu></enhanced></acpi></at></keyboard></pc></power></ata></ata></intel></serial></ata></ata></intel></isa></pci-isa></realtek></mii></realtek></acpi></acpi></realtek></acpi></acpi></acpi></acpi></intel></vga-compatible></acpi></acpi></high></hpqoem></software></version></hpqoem></lahf></nx,lm></sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,cx16,xtpr,pdcm></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>
-
Thanks, thats useful. This bit
re0: <realtek 8168="" 8168b="" 8168c="" 8168cp="" 8168d="" 8111b="" 8111c="" 8111cp="" pcie="" gigabit="" ethernet="">port 0xe800-0xe8ff mem 0xfebff000-0xfebfffff,0xfdff0000-0xfdffffff irq 18 at device 0.0 on pci2
re0: Chip rev. 0x3c000000
re0: MAC rev. 0x00400000
re0: PHY write failed
re0: PHY write failed
re0: MII without any phy!
device_attach: re0 attach returned 6</realtek>shows the kernel includes the necessary driver but the driver failed to find the chips physical interface to the cable.
I'm curious about the physical address ranges (0xfebff000-0xfebfffff, 0xfdff0000-0xfdffffff) allocated to the re0. Those very much look like physical addresses that (on a Pentium/Xeon) would be reserved for system functions. But I would presume a similar address range would be assigned by the BIOS when the single CPU kernel is booted. (Or does the BIOS have a single CPU/Multi-CPU option that you have 'flipped' depending on which kernel you boot?)
Can you show the similar section when booting the single CPU kernel such that the device is successfully attached?
-
well, bios on those machines is rather simple. the only cpu related option that i can change is disabling/enabling xd bit. there is no way to enable only one cpu core.
dmesg when running uniprocessor kernel:
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.1-RELEASE-p3 #0: Wed Mar 4 02:01:09 EST 2009 sullrich@freebsd7-releng_1_2_3-pre-testing.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.7 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(R) CPU E1200 @ 1.60GHz (1599.98-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6fd Stepping = 13 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=0xe39d <sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,cx16,xtpr,pdcm>AMD Features=0x20100000 <nx,lm>AMD Features2=0x1 <lahf>Cores per package: 2 real memory = 2137653248 (2038 MB) avail memory = 2082017280 (1985 MB) ACPI APIC Table: <hpqoem slic-bpc="">FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 <version 2.0="">irqs 0-23 on motherboard wlan: mac acl policy registered kbd1 at kbdmux0 cryptosoft0: <software crypto="">on motherboard acpi0: <hpqoem slic-bpc="">on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7f600000 (3) failed Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: <high precision="" event="" timer="">iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 pcib0: <acpi host-pci="" bridge="">port 0xcf8-0xcff on acpi0 pci0: <acpi pci="" bus="">on pcib0 vgapci0: <vga-compatible display="">port 0xbc00-0xbc07 mem 0xfe900000-0xfe97ffff,0xd0000000-0xdfffffff,0xfe800000-0xfe8fffff irq 16 at device 2.0 on pci0 agp0: <intel g33="" svga="" controller="">on vgapci0 agp0: detected 7164k stolen memory agp0: aperture size is 256M pcib1: <acpi pci-pci="" bridge="">irq 17 at device 28.0 on pci0 pci3: <acpi pci="" bus="">on pcib1 pcib2: <acpi pci-pci="" bridge="">irq 18 at device 28.2 on pci0 pci2: <acpi pci="" bus="">on pcib2 re0: <realtek 8168="" 8168b="" 8168c="" 8168cp="" 8168d="" 8111b="" 8111c="" 8111cp="" pcie="" gigabit="" ethernet="">port 0xe800-0xe8ff mem 0xfebff000-0xfebfffff,0xfdff0000-0xfdffffff irq 18 at device 0.0 on pci2 re0: Chip rev. 0x3c000000 re0: MAC rev. 0x00400000 miibus0: <mii bus="">on re0 rgephy0: <rtl8169s 8110s="" 8211b="" media="" interface="">PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:22:64:c0:7e:2f re0: [FILTER] pcib3: <acpi pci-pci="" bridge="">at device 30.0 on pci0 pci1: <acpi pci="" bus="">on pcib3 rl0: <realtek 10="" 8139="" 100basetx="">port 0xd800-0xd8ff mem 0xfeaffc00-0xfeaffcff irq 17 at device 0.0 on pci1 miibus1: <mii bus="">on rl0 rlphy0: <realtek internal="" media="" interface="">PHY 0 on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:e0:4c:81:3a:a1 rl0: [ITHREAD] isab0: <pci-isa bridge="">at device 31.0 on pci0 isa0: <isa bus="">on isab0 atapci0: <intel ich9="" sata300="" controller="">port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff90-0xff9f,0xffa0-0xffaf at device 31.2 on pci0 ata0: <ata 0="" channel="">on atapci0 ata0: [ITHREAD] ata1: <ata 1="" channel="">on atapci0 ata1: [ITHREAD] pci0: <serial bus,="" smbus="">at device 31.3 (no driver attached) atapci1: <intel ich9="" sata300="" controller="">port 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f,0xc080-0xc08f irq 19 at device 31.5 on pci0 atapci1: [ITHREAD] ata2: <ata 0="" channel="">on atapci1 ata2: [ITHREAD] ata3: <ata 1="" channel="">on atapci1 ata3: [ITHREAD] acpi_button0: <power button="">on acpi0 speaker0: <pc speaker="">port 0x61 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] atkbd0: [ITHREAD] cpu0: <acpi cpu="">on acpi0 ACPI Warning (tbutils-0243): Incorrect checksum in table [OEMB] - FC, should be FB [20070320] est0: <enhanced speedstep="" frequency="" control="">on cpu0 p4tcc0: <cpu frequency="" thermal="" control="">on cpu0 cpu1: <acpi cpu="">on acpi0 est1: <enhanced speedstep="" frequency="" control="">on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 82a082a0600082a device_attach: est1 attach returned 6 p4tcc1: <cpu frequency="" thermal="" control="">on cpu1 pmtimer0 on isa0 ppc0: parallel port not found. sc0: <system console="">at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> 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 vga0: <generic isa="" vga="">at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. ad0: 238475MB <seagate st3250310as="" 3.ahc="">at ata0-master SATA300 acd0: DVDR <tsstcorp cddvdw="" ts-h653q="" hc01="">at ata1-master SATA150 SMP: AP CPU #1 Launched! GEOM_LABEL: Label for provider acd0 is iso9660/pfSense. Trying to mount root from cd9660:/dev/iso9660/pfSense md0.uzip: 1090 x 65536 blocks re0: link state changed to UP re0: link state changed to DOWN rl0: link state changed to DOWN re0: link state changed to UP pflog0: promiscuous mode enabled</tsstcorp></seagate></generic></system></cpu></enhanced></acpi></cpu></enhanced></acpi></at></keyboard></pc></power></ata></ata></intel></serial></ata></ata></intel></isa></pci-isa></realtek></mii></realtek></acpi></acpi></rtl8169s></mii></realtek></acpi></acpi></acpi></acpi></intel></vga-compatible></acpi></acpi></high></hpqoem></software></version></hpqoem></lahf></nx,lm></sse3,dtes64,mon,ds_cpl,est,tm2,ssse3,cx16,xtpr,pdcm></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>
-
Looks to me like the output when booting the multi-cpu kernel:
SMP: AP CPU #1 Launched!
The Uniprocess kernel WON"T start CPU #1
Looks to me as if the problem is really that the re driver SOMETIMES fails to find the phy and SOMETIMES succeeds!
-
hm, it seems i have mixed up my machines and posted dmesg from smp kernel machine. but as i was about to check it on the second machine with uniprocessor kernel, it was not able to recognize the onboard realtek nic just like when runinng with smp kernel (same re0: PHY write failed errors)
i tried a little bit of googling and found out it is known problem with freebsd 7.0 and 7.1. so i dont know this is the proper place to ask for support regarding bsd kernels, but maybe some kernel dev is around here and willing to help.