From nobody@FreeBSD.org  Tue Jul 25 22:01:43 2006
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 0A72016A4DF
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Jul 2006 22:01:43 +0000 (UTC)
	(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 CC0C643D58
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Jul 2006 22:01:42 +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 k6PM1gIi092501
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Jul 2006 22:01:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k6PM1gxP092500;
	Tue, 25 Jul 2006 22:01:42 GMT
	(envelope-from nobody)
Message-Id: <200607252201.k6PM1gxP092500@www.freebsd.org>
Date: Tue, 25 Jul 2006 22:01:42 GMT
From: Erik Osterholm <eriko@tamu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: txp driver inconsistently stops working when the interface is brought down and back up
X-Send-Pr-Version: www-2.3

>Number:         100839
>Category:       kern
>Synopsis:       [txp] txp driver inconsistently stops working when the interface is brought down and back up
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 25 22:10:11 GMT 2006
>Closed-Date:    Tue Jul 06 00:45:56 UTC 2010
>Last-Modified:  Tue Jul 06 00:45:56 UTC 2010
>Originator:     Erik Osterholm
>Release:        6.1-RELEASE
>Organization:
none
>Environment:
FreeBSD test-mb.net.tamu.edu 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
On a clean install of 6.1-RELEASE with a txp card, the machine is able to
talk on the network the first time the card is brought up.  If the card is
brought down and then back up, there is a long delay before the card will
transmit traffic again.  Sending data to the machine during or after this
delay (via SSH session, for example) will often cause the card to stop
sending/receiving traffic until reboot.

Things we've tried:
Bringing the interface down and back up.
Deleting the interface's IP and restoring it and the route.

If if_txp is built as a module, unloading the module (which generates
errors of its own) and reloading it will allow the card to pass traffic
until the next time that the interface is brought from UP to DOWN.



$ dmesg | grep txp
txp0: <3Com 3cR990-TX-97 Etherlink with 3XP Processor> port 0xa000-0xa07f mem 0xec000000-0xec03ffff irq 17 at device 0.0 on pci1
txp0: Ethernet address: 00:04:76:f4:ff:16

>How-To-Repeat:
Fresh install of 6.1-RELEASE.
ifconfig txp0 inet 192.168.1.5 up
Start a ping to 192.168.1.1
ifconfig txp0 down;ifconfig txp0 up
Pass traffic to/from 192.168.1.5
>Fix:

>Release-Note:
>Audit-Trail:

From: Erik Osterholm <eriko@tamu.edu>
To: Erik Osterholm <eriko@tamu.edu>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/100839: txp driver inconsistently stops working when the interface is brought down and back up
Date: Fri, 11 Aug 2006 16:01:29 -0500

 On Tue, Jul 25, 2006 at 10:01:42PM +0000, Erik Osterholm wrote:
 > 
 > >Number:         100839
 > >Category:       kern
 > >Synopsis:       txp driver inconsistently stops working when the interface is brought down and back up
 > >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 Jul 25 22:10:11 GMT 2006
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Erik Osterholm
 > >Release:        6.1-RELEASE
 > >Organization:
 > none
 > >Environment:
 > FreeBSD test-mb.net.tamu.edu 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
 > >Description:
 > On a clean install of 6.1-RELEASE with a txp card, the machine is able to talk on the network the first time the card is brought up.  If the card is brought down and then back up, there is a long delay before the card will transmit traffic again.  Sending data to the machine during or after this delay (via SSH session, for example) will often cause the card to stop sending/receiving traffic until reboot.
 > 
 > Things we've tried:
 > Bringing the interface down and back up.
 > Deleting the interface's IP and restoring it and the route.
 > 
 > If if_txp is built as a module, unloading the module (which generates errors of its own) and reloading it will allow the card to pass traffic until the next time that the interface is brought from UP to DOWN.
 > 
 > 
 > 
 > $ dmesg | grep txp
 > txp0: <3Com 3cR990-TX-97 Etherlink with 3XP Processor> port 0xa000-0xa07f mem 0xec000000-0xec03ffff irq 17 at device 0.0 on pci1
 > txp0: Ethernet address: 00:04:76:f4:ff:16
 > 
 > >How-To-Repeat:
 > Fresh install of 6.1-RELEASE.
 > ifconfig txp0 inet 192.168.1.5 up
 > Start a ping to 192.168.1.1
 > ifconfig txp0 down;ifconfig txp0 up
 > Pass traffic to/from 192.168.1.5
 > >Fix:
 > 
 
 Any word on this?  Further testing shows what looks like an interrupt
 storm occurring sometime after the "How-To-Repeat" steps are executed.
 
 Erik
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Wed Jan 14 22:22:38 UTC 2009 
Responsible-Changed-Why:  

Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100839 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Thu Mar 12 02:39:48 UTC 2009 
State-Changed-Why:  
I've committed overhauled txp(4) to HEAD. Now txp(4) always start 
from known state by downloading firmware in interface up time so 
it may have fixed your issue.  Would you give it a try on your box? 
Download the following files and it should build without problems 
on 7.1-RELEASE/7-stable/CURRENT. 

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/txp/3c990img.h 
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/txp/if_txp.c 
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/txp/if_txpreg.h 


Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Thu Mar 12 02:39:48 UTC 2009 
Responsible-Changed-Why:  
I've committed overhauled txp(4). Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100839 
State-Changed-From-To: feedback->closed 
State-Changed-By: yongari 
State-Changed-When: Tue Jul 6 00:45:34 UTC 2010 
State-Changed-Why:  
Feedback timeout(> 14 months). If you still see the issue on more 
recent FreeBSD releases, please open PR again. 
Thanks for reporting. 

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