From nobody@FreeBSD.org  Sat Dec 24 22:19:05 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F06AA16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Dec 2005 22:19:05 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BA59B43D49
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Dec 2005 22:19:05 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jBOMJ5TM027940
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Dec 2005 22:19:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jBOMJ5Xl027939;
	Sat, 24 Dec 2005 22:19:05 GMT
	(envelope-from nobody)
Message-Id: <200512242219.jBOMJ5Xl027939@www.freebsd.org>
Date: Sat, 24 Dec 2005 22:19:05 GMT
From: Maciej Bogdanski <maciejb@widzew.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Problems with netwrok: vr0: tx shutdown timeout
X-Send-Pr-Version: www-2.3

>Number:         90890
>Category:       kern
>Synopsis:       [vr] Problems with network: vr0: tx shutdown timeout
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 24 22:20:02 GMT 2005
>Closed-Date:    Thu Jan 20 03:05:09 UTC 2011
>Last-Modified:  Thu Jan 20 03:05:09 UTC 2011
>Originator:     Maciej Bogdanski
>Release:        6.0
>Organization:
private person
>Environment:
6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
 When my network is under heavy load (when i donwload something from lan > 800kb/s) i lose my connection, then,when i run tcpdump it works again.. Dmsg shows something like this:

vr0: tx shutdown timeout
vr0: tx shutdown timeout
vr0: tx shutdown timeout
vr0: tx shutdown timeout
..
vr0: tx shutdown timeout
vr0: tx shutdown timeout
vr0: tx shutdown timeout
vr0: tx shutdown timeout
vr0: tx shutdown timeout
vr0: tx shutdown timeout
vr0: restarting

this is my network card is:

vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe000-0xe0ff mem 0xe2000000-0xe20000ff irq 23 at device 18.0 on pci0

Some people told me that i should not let the driver to autoselect connection type, and select it manualy.

media: Ethernet autoselect (10baseT/UTP)

When i set media to 10baseT/UTP and mediaopt to full-duplex my connection strangly slows down. The highest transfer i can get from LAN is around 40kb/s instead of 800.
Im using mac adress emulation.
        
>How-To-Repeat:
Bring card under heavy load (>= 800-900 kb/s)             
>Fix:
              
>Release-Note:
>Audit-Trail:

From: "C. Weber" <cwf-ml@arcor.de>
To: bug-followup@FreeBSD.org, maciejb@widzew.net
Cc:  
Subject: Re: kern/90890: [vr] Problems with network: vr0: tx shutdown timeout
Date: Tue, 24 Oct 2006 22:21:50 +0200

 I see this problem, too.
 
 the System in question is a Via EPIA miniITX
 system which has a vr chipset as onboard Ethernet.
 
 I tested it on FreeBSD 6.1-RELEASE-p6
 
 FreeBSD xxxxx 6.1-RELEASE-p6 FreeBSD 6.1-RELEASE-p6 #0: Thu Sep 14 22:10:41 
 CEST 2006     root@xxxxx:/usr/obj/usr/src/sys/XXXXX  i386
 
 I see constant shutdown/restart messages when doing a large ftp
 file transfer (a 2 GB file) to the machine that puts the system under
 0.9+ load (with gmirrored disks)
 
 Hardware is a Via Epia ML8000 board with a 800MHz Geode processor.
 
 This bug is especially annoying since it renders the onboard
 NIC on most embedded Via miniITX boards useless (they all
 use variants of the Rhine chipset) under FreeBSD.
 
 If anyone wants me to conduct further tests, I currently have
 the machine in a test environment and can try out a few things.

From: "C. Weber" <cwf-ml@arcor.de>
To: bug-followup@FreeBSD.org, maciejb@widzew.net
Cc:  
Subject: Re: kern/90890: [vr] Problems with network: vr0: tx shutdown timeout
Date: Tue, 24 Oct 2006 22:53:01 +0200

 Small correction - it's of course a VIA C3 and not a Geode processor
 in that machine.

From: "C. Weber" <cwf-ml@arcor.de>
To: bug-followup@FreeBSD.org, maciejb@widzew.net
Cc:  
Subject: Re: kern/90890: [vr] Problems with network: vr0: tx shutdown timeout
Date: Wed, 25 Oct 2006 19:06:05 +0200

 and another followup:
 
 further tests show:
 
 - the problem only occurs when we use half duplex (both 10 and
    100 Mbps), with 100/full it does not happen (I currently
    lack the hardware to construct a 10/full test case).
    Apparently the card/driver has trouble with high
    collision rates.
 - regardless if the problem occurs I see extremely high
    interrupt loads for the vr device - a single full-speed
    ftp transfer to the system produces ~ 12.000 interrupts
    per second, which is huge and smashes the machine against
    the 100% load border. Apparently the driver or the
    hardware sees a need to interrupt for every single incoming
    or outgoing packet (the ftp transfer has ~8000 pps incoming and
    ~4000 pps outgoing (acks).
 
 Regards, Christoph Weber-Fahr
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Wed Jan 14 21:42:21 UTC 2009 
Responsible-Changed-Why:  

Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90890 
Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: andre 
Responsible-Changed-When: Mon Aug 23 18:19:29 UTC 2010 
Responsible-Changed-Why:  
Over to expert. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90890 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Fri Oct 15 02:05:15 UTC 2010 
State-Changed-Why:  
Is it still issue on more recent FreeBSD releases(8.1-RELEASE or 
7.3-RELEASE)? vr(4) received a lot of changes since 6.1-RELEASE 
so the issue might be fixed. 
Seeing more tha 10k interrupts/sec is normal for high network load 
on vr(4). The hardware is not smart enough to mitigate interrupt 
generation under load. If vr(4) have to cope with high PPS you 
would be better to resort to polling(4) which completely disables 
interrupts. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90890 
State-Changed-From-To: feedback->closed 
State-Changed-By: yongari 
State-Changed-When: Thu Jan 20 03:04:52 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

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