From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 8 17:50:04 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B53FE10656D2 for ; Wed, 8 Apr 2009 17:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7DF358FC19 for ; Wed, 8 Apr 2009 17:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n38Ho4gt084977 for ; Wed, 8 Apr 2009 17:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n38Ho4Hu084976; Wed, 8 Apr 2009 17:50:04 GMT (envelope-from gnats) Resent-Date: Wed, 8 Apr 2009 17:50:04 GMT Resent-Message-Id: <200904081750.n38Ho4Hu084976@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Peter Much Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21F65106566B for ; Wed, 8 Apr 2009 17:43:48 +0000 (UTC) (envelope-from pmc@phase23.dinoex.sub.de) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [194.45.71.2]) by mx1.freebsd.org (Postfix) with ESMTP id 8927A8FC1A for ; Wed, 8 Apr 2009 17:43:47 +0000 (UTC) (envelope-from pmc@phase23.dinoex.sub.de) Received: from uucp.dinoex.sub.de (uucp@uucp.dinoex.sub.de [194.45.71.2] (may be forged)) by uucp.dinoex.sub.de (8.14.2/8.14.2) with ESMTP id n38HD8Gq007290 for ; Wed, 8 Apr 2009 19:13:08 +0200 (CEST) (envelope-from pmc@phase23.dinoex.sub.de) Received: from phase23.dinoex.sub.de (uucp@localhost) by uucp.dinoex.sub.de (8.14.2/8.14.2/Submit) with UUCP id n38HD8m3007289 for FreeBSD-gnats-submit@freebsd.org; Wed, 8 Apr 2009 19:13:08 +0200 (CEST) (envelope-from pmc@phase23.dinoex.sub.de) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by citylink.dinoex.sub.de (8.14.2/8.14.2) with ESMTP id n38Gx06F053523 for ; Wed, 8 Apr 2009 18:59:00 +0200 (CEST) (envelope-from pmc@disp.oper.dinoex.org) Received: from disp.oper.dinoex.org (disp-fe.oper.dinoex.org [192.168.96.5]) by gate.oper.dinoex.org (8.14.2/8.14.2) with ESMTP id n38GwaZM053506 for ; Wed, 8 Apr 2009 18:58:36 +0200 (CEST) (envelope-from pmc@disp.oper.dinoex.org) Received: from disp.oper.dinoex.org (localhost [127.0.0.1]) by disp.oper.dinoex.org (8.14.3/8.14.3) with ESMTP id n38GwU38001860 for ; Wed, 8 Apr 2009 18:58:30 +0200 (CEST) (envelope-from pmc@disp.oper.dinoex.org) Received: (from pmc@localhost) by disp.oper.dinoex.org (8.14.3/8.14.3/Submit) id n38GwUVv001859; Wed, 8 Apr 2009 18:58:30 +0200 (CEST) (envelope-from pmc) Message-Id: <200904081658.n38GwUVv001859@disp.oper.dinoex.org> Date: Wed, 8 Apr 2009 18:58:30 +0200 (CEST) From: Peter Much To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/133495: [de] interface not properly initialized on boot X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter Much List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2009 17:50:05 -0000 >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@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: 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!