From nobody@www.freebsd.org  Mon Jun 17 10:30:37 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 5DEF337B416
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Jun 2002 10:30:36 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5HHUZhG044463
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 17 Jun 2002 10:30:35 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5HHUZ8q044462;
	Mon, 17 Jun 2002 10:30:35 -0700 (PDT)
Message-Id: <200206171730.g5HHUZ8q044462@www.freebsd.org>
Date: Mon, 17 Jun 2002 10:30:35 -0700 (PDT)
From: Cheng-hui Pu <sharity@seed.net.tw>
To: freebsd-gnats-submit@FreeBSD.org
Subject: vr0 watchdog timeout
X-Send-Pr-Version: www-1.0

>Number:         39423
>Category:       kern
>Synopsis:       vr0 watchdog timeout
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    silby
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 17 10:40:04 PDT 2002
>Closed-Date:    Wed Aug 21 22:08:47 PDT 2002
>Last-Modified:  Wed Aug 21 22:08:47 PDT 2002
>Originator:     Cheng-hui Pu
>Release:        
>Organization:
>Environment:
FreeBSD dinocookie.dyndns.org 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Thu Jun 13 20:03:09 CST 2002 albert@dinocookie.dyndns.org:/usr/src/sys/compile/dinocookie  i386

>Description:
VIA has released its driver of VIA86C100 Rhine I, which fixed the anonying vr0 watchdog timeout problem.

>How-To-Repeat:
large network traffic through device vr
>Fix:
Official homepage of VIA's driver: http://www.viaarena.com/?PageID=71#lan
or http://downloads.viaarena.com/drivers/others/VT86c100a.zip

Note that this driver needs to be compiled with mbuf.h of earlier version, due to the macro MFREE.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->silby 
Responsible-Changed-By: silby 
Responsible-Changed-When: Mon Jun 17 20:16:44 PDT 2002 
Responsible-Changed-Why:  
I'll take a look at this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39423 

From: Thomas Nystrom <thn@saeab.se>
To: freebsd-gnats-submit@FreeBSD.org, sharity@seed.net.tw
Cc:  
Subject: Re: kern/39423: vr0 watchdog timeout
Date: Thu, 20 Jun 2002 14:46:05 +0200

 I have tried that driver but it didn't solved my problem that I reported
 earlier (in kern/37929: hang of vr interface running at 100 MBit/full
 duples). In fact, the timeouts started to appear again with the VIA made
 driver.
 
 BTW: The dates of the VIA driver is about one year old...
 
 The patch I supplied in 37929 still seems to be the best solution for
 me.
 
 /thn

From: Cheng-hui Pu <sharity@seed.net.tw>
To: freebsd-gnats-submit@FreeBSD.org, sharity@seed.net.tw
Cc:  
Subject: Re: kern/39423: vr0 watchdog timeout
Date: Thu, 20 Jun 2002 23:34:54 +0800

   I forgot to mention that this driver can't detect media type 
 correctly, and it's  only applied to either VT3043 or VT86C100A.
 Thus you have to set the media type manually.
 
  # dmesg | grep fet
  fet0: <VIA VT86C100A Fast Ethernet Adapter                         > 
 port 0xe800-0xe87f mem 0xed026000-0xed02607f irq 15 at device 12.0 on pci0
  fet0: Ethernet address: 00:30:43:00:0d:97                     
  fet0: if_fet.c: v2.04 05/17/2001        
  miibus1: <MII bus> on fet0     
  Analyzing Media type of fet0, this will take several seconds........OK
  fet0: Linespeed=100Mb,Halfduplex                                     
                                       ^^^^^^^^^^
  # ifconfig fet0 inet 192.168.27.254 netmask 255.255.255.0 media 
 100baseTX  mediaopt full-duplex
  fet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
          inet6 fe80::230:43ff:fe00:d97%fet0 prefixlen 64 scopeid 0x2
          inet 192.168.27.254 netmask 0xffffff00 broadcast 192.168.27.255
          ether 00:30:43:00:0d:97                                       
          media: Ethernet 100baseTX <full-duplex>
          status: active                        ^^^^^^^^^^^^
 
 
 static struct fet_type fet_devs[] = {
         { VENDORID, DEVICEID_3043,
                 "VIA VT86C100A Fast Ethernet 
 Adapter                         " }
 ,
         { VENDORID, DEVICEID_3065,
                 "VIA PCI 10/100Mb Fast Ethernet 
 Adapter                      " }
 ,
         { 0, 0, NULL }
 };
 
 
 There is also a driver for VT6102, but I don't have any NIC of this chip!!
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: silby 
State-Changed-When: Wed Aug 21 22:08:30 PDT 2002 
State-Changed-Why:  
This problem should be solved in if_vr.c as of rev 1.26.2.10. 

If it can still be reproduced with that revision of the driver, 
I'll be happy to reopen the PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39423 
>Unformatted:
