From owner-freebsd-bugs Sun Oct 22 3: 0: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 86B3237B4C5 for ; Sun, 22 Oct 2000 03:00:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA34233; Sun, 22 Oct 2000 03:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id A93A137B479; Sun, 22 Oct 2000 02:54:39 -0700 (PDT) Message-Id: <20001022095439.A93A137B479@hub.freebsd.org> Date: Sun, 22 Oct 2000 02:54:39 -0700 (PDT) From: stake@po.shiojiri.ne.jp To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/22208: vr0: MII without any phy! problem when coming back from Windows Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22208 >Category: kern >Synopsis: vr0: MII without any phy! problem when coming back from Windows >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: wish >Submitter-Id: current-users >Arrival-Date: Sun Oct 22 03:00:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Takefumi SAYO >Release: 4.1.1-STABLE >Organization: Personal >Environment: FreeBSD 4.1.1-STABLE i386 >Description: vr driver claims "vr0: MII without any phy!" when coming back from Windows. # pciconf -l | grep vr vr0@pci0:11:0: class=0x020000 card=0xa1111259 chip=0x30651106 rev=0x42 hdr=0x00 % grep '$FreeBSD' /usr/src/sys/pci/{if_vrreg.h,if_vr.c} /usr/src/sys/pci/if_vrreg.h: * $FreeBSD: src/sys/pci/if_vrreg.h,v 1.7.2.1 2000/07/05 21:43:59 wpaul Exp $ /usr/src/sys/pci/if_vr.c: * $FreeBSD: src/sys/pci/if_vr.c,v 1.26.2.4 2000/08/04 23:45:28 peter Exp $ /usr/src/sys/pci/if_vr.c: "$FreeBSD: src/sys/pci/if_vr.c,v 1.26.2.4 2000/08/04 23:45:28 peter Exp $"; >How-To-Repeat: 1. Boot Windows9x which has VIA Rhine network driver. 2. Select reboot from Windows startup menu and boot FreeBSD with GENERIC kernel. >Fix: a. Power off after using Windows. b. Apply next patch to if_vr.c. But I don't know why it works. *** if_vr.c.dist Sat Aug 5 08:45:28 2000 --- if_vr.c Thu Oct 12 00:35:47 2000 *************** *** 729,734 **** --- 729,740 ---- goto fail; } + /* + * Next code comes from Linux via-rhine.c driver and it says + * "clear sticky bit before reset & read ethernet address". + */ + VR_CLRBIT(sc, 0x83, 0x3); + /* Reset the adapter. */ vr_reset(sc); References: Corega K.K. support page (in Japanese) http://www.corega.co.jp/technical/kondara11.htm and (modified ?) via-rhine.c for Linux http://www.corega.co.jp/technical/sorce/via-rhine.c Linux Drivers for PCI Ethernet Chips http://www.scyld.com/network/ethercard.html >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message