FreeBSD 7.1 (and 7.2) Breaks re and rl Network Interface Drivers

Gerrit Kühn gerrit at pmp.uni-hannover.de
Mon Aug 17 09:29:38 UTC 2009


On Mon, 9 Mar 2009 17:33:06 +0900 Pyun YongHyeon <pyunyh at gmail.com> wrote
about Re: FreeBSD 7.1 Breaks re and rl Network Interface Drivers:

PY> > I cannot say if the actual issue I had with 7.1-stable has gone
PY> > away, too, because this only occured after a longer time of
PY> > operation. However, up to now everything looks nice.

PY> Ok, if you find any re(4) instability feel free to contact me.

Ok, took some time, but here I am. :-)

It seems I have two different version of the Jetway mainboard here (one
with 25W total power consumption and one with 12W I guess). Anyway, my
version of 7.1 with your patches is running fine on this board:


---
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-STABLE #0: Tue Mar 24 12:46:03 CET 2009
    root at xenon:/usr/tmp/usr/obj/usr/work/current/src/sys/FIREFLY
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: VIA C7-D Processor 1500MHz (1500.02-MHz 686-class CPU)
  Origin = "CentaurHauls"  Id = 0x6d0  Stepping = 0
  Features=0xa7c9baff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,APIC,SEP,MTRR,PGE,CMOV,PAT,CLFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
  Features2=0x4001<SSE3,xTPR>
  VIA Padlock Features=0xffcc<RNG,AES,AES-CTR,SHA1,SHA256,RSA>
real memory  = 1055784960 (1006 MB)
avail memory = 1023750144 (976 MB)
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
padlock0: <AES-CBC,SHA1,SHA256> on motherboard
acpi0: <CN700 AWRDACPI> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 3ede0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci_link2: BIOS IRQ 5 for 0.9.INTA is invalid
pci_link2: BIOS IRQ 5 for 0.16.INTC is invalid
pci_link2: BIOS IRQ 5 for 0.17.INTC is invalid
pci0: <ACPI PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem
0xf4000000-0xf7ffffff,0xfb000000-0xfbffffff irq 11 at device 0.0 on pci1
re0: <RealTek 8169SC/8110SC Single-chip Gigabit Ethernet> port
0xf000-0xf0ff mem 0xfdfff000-0xfdfff0ff irq 10 at device 9.0 on pci0 re0:
Chip rev. 0x18000000 re0: MAC rev. 0x00000000 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:30:18:a7:8a:1c
re0: [FILTER]
re1: <RealTek 8169SC/8110SC Single-chip Gigabit Ethernet> port
0xf200-0xf2ff mem 0xfdffe000-0xfdffe0ff irq 10 at device 11.0 on pci0 re1:
Chip rev. 0x18000000 re1: MAC rev. 0x00000000
miibus1: <MII bus> on re1
rgephy1: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus1
rgephy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto re1: Ethernet address: 00:30:18:a7:8a:1d
re1: [FILTER]
atapci0: <VIA 6420 SATA150 controller> port
0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f,0xf400-0xf4ff
irq 11 at device 15.0 on pci0 atapci0: [ITHREAD] ata2: <ATA channel 0> on
atapci0 ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
atapci1: <VIA 8237 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfa00-0xfa0f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1 ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci1
ata1: [ITHREAD]
uhci0: <VIA 83C572 USB controller> port 0xf900-0xf91f irq 11 at device
16.0 on pci0 uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xf800-0xf81f irq 11 at device
16.1 on pci0 uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xf700-0xf71f irq 11 at device
16.2 on pci0 uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xf600-0xf61f irq 11 at device
16.3 on pci0 uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xfdffd000-0xfdffd0ff irq 10 at
device 16.4 on pci0 ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: <VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
uhub4: 8 ports with 8 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pci0: <multimedia, audio> at device 17.5 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
acpi0 sio0: type 16550A
sio0: [FILTER]
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
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]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse Explorer, device ID 4
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcf7ff pnpid ORM0000 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
Timecounter "TSC" frequency 1500015037 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 3919MB <SanDisk SDCFH2-004G HDX 4.32> at ata0-master PIO4
Trying to mount root from ufs:/dev/ad0s2a
re0: link state changed to UP
re1: link state changed to UP
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
---


It was only last week when I noticed that this version will not run very
well on the other board type. Meanwhile I updated the machine to
7.2-stable, but it still comes around with lots of weird re-problems after
a few hours of operation:

---
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-STABLE #0: Thu Aug 13 19:08:58 CEST 2009
    root at xenon:/usr/tmp/usr/obj/usr/work/stable/src/sys/FIREFLY
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: VIA C7 Processor 1500MHz (1500.01-MHz 686-class CPU)
  Origin = "CentaurHauls"  Id = 0x6d0  Stepping = 0
  Features=0xa7c9baff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,APIC,SEP,MTRR,PGE,CMOV,PAT,CLFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
  Features2=0x4181<SSE3,EST,TM2,xTPR>
  VIA Padlock Features=0xffcc<RNG,AES,AES-CTR,SHA1,SHA256,RSA>
real memory  = 1055784960 (1006 MB)
avail memory = 1023733760 (976 MB)
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
padlock0: <AES-CBC,SHA1,SHA256> on motherboard
acpi0: <CN700 AWRDACPI> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 3ede0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci_link2: BIOS IRQ 5 for 0.9.INTA is invalid
pci_link2: BIOS IRQ 5 for 0.16.INTC is invalid
pci_link2: BIOS IRQ 5 for 0.17.INTC is invalid
pci0: <ACPI PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem
0xf4000000-0xf7ffffff,0xfb000000-0xfbffffff irq 11 at device 0.0 on pci1
re0: <RealTek 8169SC/8110SC Single-chip Gigabit Ethernet> port
0xf000-0xf0ff mem 0xfdfff000-0xfdfff0ff irq 10 at device 9.0 on pci0 re0:
Chip rev. 0x18000000 re0: MAC rev. 0x00000000 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:30:18:ab:d0:19
re0: [FILTER]
re1: <RealTek 8169SC/8110SC Single-chip Gigabit Ethernet> port
0xf200-0xf2ff mem 0xfdffe000-0xfdffe0ff irq 10 at device 11.0 on pci0 re1:
Chip rev. 0x18000000 re1: MAC rev. 0x00000000
miibus1: <MII bus> on re1
rgephy1: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus1
rgephy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto re1: Ethernet address: 00:30:18:ab:d0:1a
re1: [FILTER]
atapci0: <VIA 6420 SATA150 controller> port
0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f,0xf400-0xf4ff
irq 11 at device 15.0 on pci0 atapci0: [ITHREAD] ata2: <ATA channel 0> on
atapci0 ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
atapci1: <VIA 8237 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfa00-0xfa0f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1 ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci1
ata1: [ITHREAD]
uhci0: <VIA 83C572 USB controller> port 0xf900-0xf91f irq 11 at device
16.0 on pci0 uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xf800-0xf81f irq 11 at device
16.1 on pci0 uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xf700-0xf71f irq 11 at device
16.2 on pci0 uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xf600-0xf61f irq 11 at device
16.3 on pci0 uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xfdffd000-0xfdffd0ff irq 10 at
device 16.4 on pci0 ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: <VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
uhub4: 8 ports with 8 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pci0: <multimedia, audio> at device 17.5 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
acpi0 sio0: type 16550A
sio0: [FILTER]
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
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]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse Explorer, device ID 4
cpu0: <ACPI CPU> on acpi0
acpi_perf0: <ACPI CPU Frequency Control> on cpu0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff pnpid ORM0000 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
Timecounter "TSC" frequency 1500012699 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 3919MB <SanDisk SDCFH-4096 HDX 4.32> at ata0-master PIO4
Trying to mount root from ufs:/dev/ad0s2a
re0: link state changed to UP
re1: link state changed to UP
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re0: link state changed to DOWN
re1: discard frame w/o leading ethernet header (len 4294967292 pkt len
4294967292) arplookup 192.32.96.115 failed: host is not on local network
re1: discard frame w/o leading ethernet header (len 4294967292 pkt len
4294967292) re1: discard frame w/o leading ethernet header (len 4294967292
pkt len 4294967292) re1: discard frame w/o leading ethernet header (len
4294967292 pkt len 4294967292) re1: discard frame w/o leading ethernet
header (len 4294967292 pkt len 4294967292) re1: discard frame w/o leading
ethernet header (len 4294967292 pkt len 4294967292) re1: discard frame w/o
leading ethernet header (len 4294967292 pkt len 4294967292) re1: discard
frame w/o leading ethernet header (len 4294967292 pkt len 4294967292) re1:
discard frame w/o leading ethernet header (len 4294967292 pkt len
4294967292) re1: discard frame w/o leading ethernet header (len 4294967292
pkt len 4294967292) re1: discard frame w/o leading ethernet header (len
4294967292 pkt len 4294967292) re1: discard frame w/o leading ethernet
header (len 4294967292 pkt len 4294967292) re1: discard frame w/o leading
ethernet header (len 4294967292 pkt len 4294967292) re1: discard frame w/o
leading ethernet header (len 4294967292 pkt len 4294967292) re1: discard
frame w/o leading ethernet header (len 4294967292 pkt len 4294967292) re1:
discard frame w/o leading ethernet header (len 4294967292 pkt len
4294967292) re1: discard frame w/o leading ethernet header (len 4294967292
pkt len 4294967292) re1: discard frame w/o leading ethernet header (len
4294967292 pkt len 4294967292) re1: discard frame w/o leading ethernet
header (len 4294967292 pkt len 4294967292) re1: discard frame w/o leading
ethernet header (len 4294967292 pkt len 4294967292) re1: discard frame w/o
leading ethernet header (len 4294967292 pkt len 4294967292) re1: discard
frame w/o leading ethernet header (len 4294967292 pkt len 4294967292) re1:
discard frame w/o leading ethernet header (len 4294967292 pkt len
4294967292) re1: discard frame w/o leading ethernet header (len 4294967292
pkt len 4294967292) re1: discard frame w/o leading ethernet header (len
4294967292 pkt len 4294967292) re1: discard frame w/o leading ethernet
header (len 4294967292 pkt len 4294967292) re1: discard frame w/o leading
ethernet header (len 4294967292 pkt len 4294967292) re1: discard frame w/o
leading ethernet header (len 4294967292 pkt len 4294967292)
[...]
---


It works for some time (typically not more than a few hours) and then goes
nuts with some kind of networking problems. Apart from what I've shown
above I have also seen complaints about "runt packages" (whatever this
may be :-) and lots of other stuff. This seems to happen on both onboard
interfaces, but not at the same time (after one has crashed, the other one
sometimes still works). The crash goes along with dropping the link from
1000TX to 100TX. It won't come back to 1000TX. Turning off
checksum-offloading and the other features does not help either. The
interface is basically dead afterwards, even tcpdump won't see any package
anymore. Simply rebooting does not remedy the problem either, you have to
unplug the power to get networking back.
Any hints?


cu
  Gerrit


More information about the freebsd-stable mailing list