From owner-freebsd-bugs Tue Dec 31 2:20: 5 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AE3637B401 for ; Tue, 31 Dec 2002 02:20:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 461AA43ED8 for ; Tue, 31 Dec 2002 02:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBVAK2NS071576 for ; Tue, 31 Dec 2002 02:20:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBVAK2ss071575; Tue, 31 Dec 2002 02:20:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8FF837B401 for ; Tue, 31 Dec 2002 02:19:23 -0800 (PST) Received: from falcon.net.informatik.tu-muenchen.de (mnch-d9ba4a62.pool.mediaWays.net [217.186.74.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04F0F43EA9 for ; Tue, 31 Dec 2002 02:19:22 -0800 (PST) (envelope-from jw@net.in.tum.de) Received: from sulaco.ppp.uni-sb.de (localhost.ppp.uni-sb.de [127.0.0.1]) by sulaco.ppp.uni-sb.de (8.12.6/8.12.6) with ESMTP id gBUE9bHn003949 for ; Mon, 30 Dec 2002 15:09:37 +0100 (CET) (envelope-from jw@sulaco.ppp.uni-sb.de) Received: (from jw@localhost) by sulaco.ppp.uni-sb.de (8.12.6/8.12.6/Submit) id gBUE9ZxK003948; Mon, 30 Dec 2002 15:09:35 +0100 (CET) Message-Id: <200212301409.gBUE9ZxK003948@sulaco.ppp.uni-sb.de> Date: Mon, 30 Dec 2002 15:09:35 +0100 (CET) From: Joerg Wallerich Reply-To: Joerg Wallerich To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/46647: Failure to initialize MII on 3Com NIC results in panic Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 46647 >Category: kern >Synopsis: Failure to initialize MII on 3Com NIC results in panic >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 31 02:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Joerg Wallerich >Release: FreeBSD 5.0-RC i386 >Organization: / >Environment: System: FreeBSD sulaco.ppp.uni-sb.de 5.0-RC FreeBSD 5.0-RC #1: Sun Dec 29 17:35:10 CET 2002 root@sulaco.ppp.uni-sb.de:/usr/src/sys/i386/compile/SULACO i386 Hardware: Asus P5A, AMD K6-III, 3Com 3cSOHO100-TX OfficeConnect NIC >Description: System fails to initialize NIC Phys (xlphy0) and doesn't find any supported media types. Any attempt to configure the interface results in a kernel panic. dmesg output: xl0: <3Com 3cSOHO100-TX OfficeConnect> port 0xb000-0xb07f mem 0xd5000000-0xd500007f irq 10 at device 11.0 on pci0 xl0: Ethernet address: 00:04:76:8c:fb:40 miibus0: on xl0 xlphy0: <3Com internal media interface> on miibus0 xlphy0: This appears since revision 1.107 of if_xl.c >How-To-Repeat: Boot, configure interface using 'ifconfig up' >Fix: As workaround I added some of the DELAY(1) lines removed from 1.106 back to 1.111 of if_xl.c (see patch). This seems to fix the problem. --- if_xl.c.orig Sun Dec 29 17:40:43 2002 +++ if_xl.c Sun Dec 29 17:47:08 2002 @@ -370,7 +370,9 @@ for (i = 0; i < 32; i++) { MII_SET(XL_MII_CLK); + DELAY(1); MII_CLR(XL_MII_CLK); + DELAY(1); } return; @@ -396,7 +398,9 @@ } else { MII_CLR(XL_MII_DATA); } + DELAY(1); MII_CLR(XL_MII_CLK); + DELAY(1); MII_SET(XL_MII_CLK); } } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message