system locks up with vr driver on alix board

Ask Bjørn Hansen ask at develooper.com
Wed Aug 17 01:39:58 UTC 2011


On Aug 16, 2011, at 17:29, YongHyeon PYUN wrote:

Hi -- thank you for asking.   It's frustrating to have such an obscure and unlikely problem and I apologies for taking your time with it!

> Could you show me full dmesg and ifconfig output?

Included below from a happy system.

I setup some scripts to monitor those things every second and print out diffs on the console and will post again next time it hangs/crashes/whatever is happening with any data.

> It would also be interesting to know whether vr(4) spewed some logs.

Where would they have gone?   I didn't see anything in messages (via syslog) or dmesg earlier, for what it's worth.

> How many PPS or interrupts do you see from vr interface under high
> network load?

Honestly I'm not sure.  I only know how to see the interrupt busy percentage from top …    Is there a cheap way to get those numbers?    If so then I'll log them every second or two and see if it catches anything.


  - ask

gw-b.dev# ifconfig -a
vr0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
	ether 00:0d:b9:1a:18:7c
	inet 207.171.2.196 netmask 0xfffffff8 broadcast 207.171.2.199
	inet6 fe80::20d:b9ff:fe1a:187c%vr0 prefixlen 64 scopeid 0x1 
	inet6 2607:f238:0:11::4 prefixlen 125 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
vr1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
	ether 00:0d:b9:1a:18:7d
	inet 207.171.7.3 netmask 0xffffff00 broadcast 207.171.7.255
	inet6 fe80::20d:b9ff:fe1a:187d%vr1 prefixlen 64 scopeid 0x2 
	inet6 2607:f238:3::3 prefixlen 64 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
vr2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8280b<RXCSUM,TXCSUM,VLAN_MTU,WOL_UCAST,WOL_MAGIC,LINKSTATE>
	ether 00:0d:b9:1a:18:7e
	inet6 fe80::20d:b9ff:fe1a:187e%vr2 prefixlen 64 scopeid 0x3 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=3<RXCSUM,TXCSUM>
	inet 127.0.0.1 netmask 0xff000000 
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
pfsync0: flags=41<UP,RUNNING> metric 0 mtu 1460
	pfsync: syncdev: vlan1 syncpeer: 224.0.0.240 maxupd: 128
pflog0: flags=41<UP,RUNNING> metric 0 mtu 33200
enc0: flags=41<UP,RUNNING> metric 0 mtu 1536
vlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:0d:b9:1a:18:7e
	inet 10.77.73.2 netmask 0xfffffff8 broadcast 10.77.73.7
	inet6 fe80::20d:b9ff:fe1a:187c%vlan1 prefixlen 64 scopeid 0x9 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
	vlan: 103 parent interface: vr2
vlan2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:0d:b9:1a:18:7e
	inet 10.0.100.3 netmask 0xffffff00 broadcast 10.0.100.255
	inet6 fe80::20d:b9ff:fe1a:187c%vlan2 prefixlen 64 scopeid 0xa 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
	vlan: 102 parent interface: vr2
vlan3: flags=8003<UP,BROADCAST,MULTICAST> metric 0 mtu 1500
	ether 00:00:00:00:00:00
	inet6 fe80::20d:b9ff:fe1a:187c%vlan3 prefixlen 64 scopeid 0xb 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
	vlan: 0 parent interface: <none>
carp0: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
	inet6 2607:f238:0:11::2 prefixlen 125 
	inet 207.171.2.194 netmask 0xfffffff8 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
	carp: MASTER vhid 110 advbase 1 advskew 90
carp1: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
	inet6 2607:f238:3::1 prefixlen 64 
	inet 207.171.7.1 netmask 0xffffff00 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
	carp: MASTER vhid 111 advbase 1 advskew 90
carp2: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
	inet 10.0.100.1 netmask 0xffffff00 
	carp: MASTER vhid 112 advbase 1 advskew 90
carp3: flags=9<UP,LOOPBACK> metric 0 mtu 1500
carp4: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
	inet 10.0.100.254 netmask 0xffffff00 
	carp: MASTER vhid 114 advbase 1 advskew 90
carp60: flags=9<UP,LOOPBACK> metric 0 mtu 1500
carp61: flags=9<UP,LOOPBACK> metric 0 mtu 1500
carp63: flags=9<UP,LOOPBACK> metric 0 mtu 1500

gw-b.dev# dmesg
Copyright (c) 1992-2011 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 8.2-RELEASE-p2 #1: Sun Aug 14 02:06:11 PDT 2011
    root at fbsd8-32.la.sol:/usr/obj/nanobsd.grundwall/usr/src/sys/GRUNDCLOCK i386
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Geode(TM) Integrated Processor by AMD PCS (498.05-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x5a2  Family = 5  Model = a  Stepping = 2
  Features=0x88a93d<FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CLFLUSH,MMX>
  AMD Features=0xc0400000<MMX+,3DNow!+,3DNow!>
real memory  = 268435456 (256 MB)
avail memory = 249028608 (237 MB)
pnpbios: Bad PnP BIOS data checksum
K6-family MTRR support enabled (2 registers)
ACPI Error: A valid RSDP was not found (20101013/tbxfroot-309)
ACPI: Table initialisation failed: AE_NOT_FOUND
ACPI: Try disabling either ACPI or apic support.
cryptosoft0: <software crypto> on motherboard
pcib0: <Host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
Geode LX: PC Engines ALIX.2 v0.99h tinyBIOS V1.4a (C)1997-2007
glxsb0: <AMD Geode LX Security Block (AES-128-CBC, RNG)> mem 0xefff4000-0xefff7fff irq 9 at device 1.2 on pci0
vr0: <VIA VT6105M Rhine III 10/100BaseTX> port 0x1000-0x10ff mem 0xe0000000-0xe00000ff irq 10 at device 9.0 on pci0
vr0: Quirks: 0x2
vr0: Revision: 0x96
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:0d:b9:1a:18:7c
vr0: [ITHREAD]
vr1: <VIA VT6105M Rhine III 10/100BaseTX> port 0x1400-0x14ff mem 0xe0040000-0xe00400ff irq 11 at device 10.0 on pci0
vr1: Quirks: 0x2
vr1: Revision: 0x96
miibus1: <MII bus> on vr1
ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr1: Ethernet address: 00:0d:b9:1a:18:7d
vr1: [ITHREAD]
vr2: <VIA VT6105M Rhine III 10/100BaseTX> port 0x1800-0x18ff mem 0xe0080000-0xe00800ff irq 15 at device 11.0 on pci0
vr2: Quirks: 0x2
vr2: Revision: 0x96
miibus2: <MII bus> on vr2
ukphy2: <Generic IEEE 802.3u media interface> PHY 1 on miibus2
ukphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr2: Ethernet address: 00:0d:b9:1a:18:7e
vr2: [ITHREAD]
isab0: <PCI-ISA bridge> port 0x6000-0x6007,0x6100-0x61ff,0x6200-0x623f,0x9d00-0x9d7f,0x9c00-0x9c3f at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD CS5536 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 15.2 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
ohci0: <OHCI (generic) USB controller> mem 0xefffe000-0xefffefff irq 12 at device 15.4 on pci0
ohci0: [ITHREAD]
usbus0: <OHCI (generic) USB controller> on ohci0
ehci0: <AMD CS5536 (Geode) USB 2.0 controller> mem 0xefffd000-0xefffdfff irq 12 at device 15.5 on pci0
ehci0: [ITHREAD]
usbus1: EHCI version 1.0
usbus1: <AMD CS5536 (Geode) USB 2.0 controller> on ehci0
cpu0 on motherboard
orm0: <ISA Option ROM> at iomem 0xe0000-0xea7ff pnpid ORM0000 on isa0
uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
uart0: [FILTER]
uart0: console (9600,n,8,1)
uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0
uart1: [FILTER]
atrtc0: <AT Real Time Clock> at port 0x70 irq 8 on isa0
Timecounter "TSC" frequency 498053428 Hz quality 800
Timecounters tick every 1.000 msec
IPsec: Initialized Security Association Processing.
ipfw2 (+ipv6) initialized, divert enabled, nat loadable, rule-based forwarding enabled, default to accept, logging disabled
load_dn_sched dn_sched FIFO loaded
load_dn_sched dn_sched PRIO loaded
load_dn_sched dn_sched QFQ loaded
load_dn_sched dn_sched RR loaded
load_dn_sched dn_sched WF2Q+ loaded
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ad0: 245MB <SanDisk SDCFJ-256 HDX 2.33> at ata0-master PIO4 
ugen0.1: <AMD> at usbus0
uhub0: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <AMD> at usbus1
uhub1: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
Root mount waiting for: usbus1 usbus0
uhub0: 4 ports with 4 removable, self powered
Root mount waiting for: usbus1
uhub1: 4 ports with 4 removable, self powered
Trying to mount root from ufs:/dev/ad0s1a
carp0: link state changed to DOWN
carp0: INIT -> MASTER (preempting)
carp0: link state changed to UP
carp1: link state changed to DOWN
carp1: INIT -> MASTER (preempting)
carp1: link state changed to UP
carp2: link state changed to DOWN
carp2: INIT -> MASTER (preempting)
carp2: link state changed to UP
carp4: link state changed to DOWN
carp4: INIT -> MASTER (preempting)
carp4: link state changed to UP

-- 
http://develooper.com/ - http://askask.com/




More information about the freebsd-embedded mailing list