From owner-freebsd-current Sun Sep 8 3:34:23 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85E8537B400; Sun, 8 Sep 2002 03:34:13 -0700 (PDT) Received: from maya20.nic.fr (maya20.nic.fr [192.134.4.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A72D43E65; Sun, 8 Sep 2002 03:34:12 -0700 (PDT) (envelope-from francois.tigeot@nic.fr) Received: from brazil.nic.fr (brazil.nic.fr [192.134.4.77]) by maya20.nic.fr (8.12.4/8.12.4) with ESMTP id g88ASM231322909; Sun, 8 Sep 2002 12:28:22 +0200 (CEST) Received: from brazil.nic.fr (localhost [IPv6:::1]) by brazil.nic.fr (8.12.5/8.12.5) with ESMTP id g88ASKkR035140; Sun, 8 Sep 2002 12:28:20 +0200 (CEST) (envelope-from tigeot@brazil.nic.fr) Received: (from tigeot@localhost) by brazil.nic.fr (8.12.5/8.12.5/Submit) id g88ASKto035139; Sun, 8 Sep 2002 12:28:20 +0200 (CEST) Date: Sun, 8 Sep 2002 12:28:20 +0200 From: Francois Tigeot To: current@FreeBSD.ORG Cc: freebsd-net@FreeBSD.ORG Subject: ste driver broken Message-ID: <20020908102820.GA71874@brazil.nic.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4i Organization: AFNIC / NIC-France Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greetings, I recently upgraded one machine to a recent -CURRENT, and the NIC (DLink 550 TX) fails to be properly initialized. The rest of the system is pretty vanilla : Athlon XP, with Via chipset. Here is the relevant part of dmesg: ste0: port 0x9800-0x987f mem 0xe9000000-0xe900007f irq 7 at device 11.0 on pci0 /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:937 /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:937 lock order reversal 1st 0xc25b69a4 ste0 (network driver) @ /usr/src/sys/pci/if_ste.c:937 2nd 0xc0318600 allproc (allproc) @ /usr/src/sys/kern/kern_fork.c:317 /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:937 /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:937 /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:937 ste0: Ethernet address: 00:50:ba:71:be:ea ste0: MII without any phy! device_probe_and_attach: ste0 attach returned 6 By replacing the current version of /usr/src/sys/pci/if_ste.c by version 1.33 I am able to obtain a correctly working system. This is a part of the new dmesg: ste0: port 0x9800-0x987f mem 0xe9000000-0xe900007f irq 7 at device 11.0 on pci0 /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:906 /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:906 lock order reversal 1st 0xc26039a4 ste0 (network driver) @ /usr/src/sys/pci/if_ste.c:906 2nd 0xc0487c00 allproc (allproc) @ /usr/src/sys/kern/kern_fork.c:317 /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:906 /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:906 /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:906 ste0: Ethernet address: 00:50:ba:71:be:ea miibus0: on ste0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto /usr/src/sys/vm/uma_core.c:1332: could sleep with "ste0" locked from /usr/src/sys/pci/if_ste.c:244 The main difference between the working and current revision of if_ste.c is very small and doesn't add anything new. I think it should be removed. -- François Tigeot | AFNIC http://www.nic.fr/ | mailto:nic@nic.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message