kern/133495: [de] interface not properly initialized on boot

Peter Much pmc at citylink.dinoex.sub.org
Wed Apr 8 10:50:05 PDT 2009


>Number:         133495
>Category:       kern
>Synopsis:       [de] interface not properly initialized on boot
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 08 17:50:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Peter Much
>Release:        FreeBSD 7.2-PRERELEASE i386
>Organization:
n/a
>Environment:

System: FreeBSD disp.oper.dinoex.org 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #5: Wed Apr 8 18:14:35 CEST 2009 root at disp.oper.dinoex.org:/usr/src/sys/i386/compile/D1R72V1 i386

>Description:

After booting, card does not send out data. (no transmit light on
card); but "ifconfig de0" shows an appropriate configuration.

Issuing "ifconfig de0 down; ifconfig de0 up" solves the problem
(until next boot).

Compiling the if_de.c driver with Debug enabled yields following
additional output:

>How-To-Repeat:

Reproducible at every boot with that card.

>Fix:

Change rc.conf to:
>Release-Note:
>Audit-Trail:
>Unformatted:
 >de0: <Digital 21040 Ethernet> port 0xa000-0xa07f mem 0xf4800000-0xf480007f at device 13.0 on pci0
 >de0: SMC 8432BT 21040 [10Mb/s] pass 2.3
 >de0: WARNING: using obsoleted if_watchdog interface
 >de0: Ethernet address: 00:00:c0:d2:d2:0d
 >de0: [ITHREAD]
 
 Interface: BNC
 
 Configuration in rc.conf:
 >ifconfig_de0="inet 192.168.98.5 netmask 0xfffffffc"
 
 Patchlevel:
 "$FreeBSD: src/sys/dev/de/if_de.c,v 1.183.2.1 2008/04/08 14:19:57 jhb Exp $"
 
 >de0: timeout: probing AUI/BNC
 >de0: tx_intr: failed to dequeue mbuf?!?
 
 The card did work well before I upgraded from 6.3 Release to 
 7-STABLE (after we had worked ourselves through PR kern/120915, that
 is.)
 
 >ifconfig_de0="inet 192.168.98.5 netmask 0xfffffffc media autoselect"
 
 Now the debug messages appear twice and the card works!
 
 >de0: timeout: probing AUI/BNC
 >de0: tx_intr: failed to dequeue mbuf?!?
 >de0: timeout: probing AUI/BNC
 >de0: tx_intr: failed to dequeue mbuf?!?
 
 It seems the explicit mentioning of "autoselect" results in the
 device media probe done twice, which as a side-effect does something
 equivalent to "ifconfig down; ifconfig up" and so getting the card
 to work. So this is practically only a workaround.
 Explicitely setting the correct media in rc.conf (that would be
 10base5/AUI for this card working on BNC) does NOT make the card
 work!


More information about the freebsd-bugs mailing list