public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: bug in via-rhine network-driver (transmit timed out)
@ 2002-12-09 16:54 ksardem
  2002-12-09 16:58 ` Jeff Garzik
  0 siblings, 1 reply; 7+ messages in thread
From: ksardem @ 2002-12-09 16:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: manfred

Hi,

I successfully got the old transmit-out-error again ;-)
- and this time with "options via-rhine debug=3" in modules.conf.
So here are the debug-messages:

dmesg:

eth0: Shutting down ethercard, status was 081a.
eth0: via_rhine_open() irq 9.
eth0: reset finished after 5 microseconds.
eth0: Done via_rhine_open(), status 081a MII status: 7809.
eth0: no IPv6 routers present
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0000, PHY status 782d, resetting...
eth0: reset did not complete in 10 ms.
eth0: reset finished after 10005 microseconds.
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0000, PHY status 782d, resetting...
eth0: reset did not complete in 10 ms.
eth0: reset finished after 10005 microseconds.
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0000, PHY status 782d, resetting...
eth0: reset did not complete in 10 ms.
eth0: reset finished after 10005 microseconds.
eth0: Shutting down ethercard, status was 883a.
eth0: via_rhine_open() irq 9.
eth0: reset did not complete in 10 ms.
eth0: reset finished after 10005 microseconds.
eth0: Done via_rhine_open(), status 881a MII status: 782d.
eth0: no IPv6 routers present
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0000, PHY status 782d, resetting...
eth0: reset did not complete in 10 ms.
eth0: reset finished after 10005 microseconds.
eth0: Shutting down ethercard, status was 883a.
eth0: via_rhine_open() irq 9.
eth0: reset did not complete in 10 ms.
eth0: reset finished after 10005 microseconds.
eth0: Done via_rhine_open(), status 881a MII status: 7829.
eth0: Shutting down ethercard, status was 883a.  

lsmod was:

via-rhine 13612 2
mii        1232 0 [via-rhine]

-- 
Bye.
Kristof <ksardem@linux01.gwdg.de>


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: bug in via-rhine network-driver (transmit timed out)
@ 2002-11-17  9:37 Manfred Spraul
  0 siblings, 0 replies; 7+ messages in thread
From: Manfred Spraul @ 2002-11-17  9:37 UTC (permalink / raw)
  To: ksardem; +Cc: linux-kernel, urban

>
>
>When I do a 'dmesg' I get these error-messages:
>
>NETDEV WATCHDOG: eth0: transmit timed out
>eth0: Transmit timed out, status 0000, PHY status 782d, resetting...
>eth0: reset did not complete in 10 ms.
>NETDEV WATCHDOG: eth0: transmit timed out
>
The tx_timeout code performs a full hardware reset to recover from 
hangs, but it seems that the nic hangs during the hardware reset :-(

The hang could be caused by incomplete tx underrun handling, the 
linuxfet driver resets several registers after a tx underrun.
Could you load the driver with debug=3? For example by adding 'options 
via-rhine debug=3' into your /etc/modules.conf?

If it hangs again, then send the dmesg messages to the mailing list - 
especially the last few lines before the first transmit timeout will help.

--
    Manfred


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: bug in via-rhine network-driver (transmit timed out)
@ 2002-11-17  8:30 Justin A
  0 siblings, 0 replies; 7+ messages in thread
From: Justin A @ 2002-11-17  8:30 UTC (permalink / raw)
  To: ksardem; +Cc: linux-kernel

I had the same problem with the integrated nic on a soyo k7vdragon+

search google/the archives for "via-rhine timeouts"

Try the linuxfet driver found here:

http://www.viaarena.com/?PageID=87#ethernet
http://downloads.viaarena.com/LinuxApplicationNotes/RedHat/May02/VIA%20RH7.2-7.1%20Fast%20Ethernet%20Controller%20Driver%20Installation%20ver%200.9.gz

I've been using it since then without problems.  I had to change malloc.h or 
whatever it used to be to slab.h a few versions ago to make it compile 
without whining, but thats all.
-- 
-Justin


^ permalink raw reply	[flat|nested] 7+ messages in thread
* bug in via-rhine network-driver (transmit timed out)
@ 2002-11-17  7:59 ksardem
  0 siblings, 0 replies; 7+ messages in thread
From: ksardem @ 2002-11-17  7:59 UTC (permalink / raw)
  To: linux-kernel

Hi,

my Linux-PC (Kernel 2.4.19, SuSE 8.1)
has two PCI D-LINK DFE530-TX network card (10/100mbit) using driver via-rhine.o
Sometimes one or both of the interfaces (eth0/eth1) "time out", which means I
cannot send or transmit any more packets on this interface.

When I do a 'dmesg' I get these error-messages:

NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0000, PHY status 782d, resetting...
eth0: reset did not complete in 10 ms.
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0000, PHY status 782d, resetting...
eth0: reset did not complete in 10 ms.
eth0: Setting half-duplex based on MII #8 link partner capability of 0021.
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0000, PHY status 782d, resetting...
eth0: reset did not complete in 10 ms.
...and so on

or:
NETDEV WATCHDOG: eth1: transmit timed out
eth1: Transmit timed out, status 0000, PHY status 782d, resetting...
eth1: reset did not complete in 10 ms.
NETDEV WATCHDOG: eth1: transmit timed out
eth1: Transmit timed out, status 0000, PHY status 782d, resetting...
eth1: reset did not complete in 10 ms.
...

I had the same problem with the D-LINK DFE-530TX-cards some time ago
with earlier releases of the 2.4.x-Kernel.
If I do a 'ifconfig eth0/eth1 down', 'rmmod via-rhine' and then
again 'modprove via-rhine' and 'ifconfig up...' it works again but
this is no real solution - I think it's a bug in the driver, isn't it?

This is my version of the via-rhine module:
V_NAME        "via-rhine"
DRV_VERSION     "1.1.14"
DRV_RELDATE     "May-3-2002"

Here are some informations about my system which may be helpful:

/proc/modules:
via-rhine              13612   2
mii                     1232   0 [via-rhine]

/proc/version:
Linux version 2.4.19-my (root@geeko) (gcc version 3.2)

/proc/cpuinfo: 
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 5
model name      : Pentium II (Deschutes)
stepping        : 2
cpu MHz         : 349.968
cache size      : 512 KB

/proc/ioports:
e400-e4ff : PCI device 1106:3065
  e400-e4ff : via-rhine
e800-e8ff : PCI device 1106:3065
  e800-e8ff : via-rhine
f000-f00f : PCI device 8086:7111

/proc/iomem:
e2000000-e20000ff : PCI device 1106:3065
  e2000000-e20000ff : via-rhine
e2001000-e20010ff : PCI device 1106:3065
  e2001000-e20010ff : via-rhine

lspci -vvv:
00:09.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 43)
        Subsystem: D-Link System Inc DFE-530TX rev A
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort- >SERR- <PERR-
        Latency: 64 (750ns min, 2000ns max), cache line size 08
        Interrupt: pin A routed to IRQ 9
        Region 0: I/O ports at e400 [size=256]
        Region 1: Memory at e2001000 (32-bit, non-prefetchable) [size=256]
        Expansion ROM at e0000000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot
-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0a.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 43)
        Subsystem: D-Link System Inc DFE-530TX rev A
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Step
ping- SERR- FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort
- <MAbort- >SERR- <PERR-
        Latency: 64 (750ns min, 2000ns max), cache line size 08
        Interrupt: pin A routed to IRQ 9
        Region 0: I/O ports at e800 [size=256]
        Region 1: Memory at e2000000 (32-bit, non-prefetchable) [size=256]
 Expansion ROM at e1000000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot
-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
01:00.0


Thanks for any help.
Bye.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-12-09 21:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-09 16:54 bug in via-rhine network-driver (transmit timed out) ksardem
2002-12-09 16:58 ` Jeff Garzik
2002-12-09 21:27   ` Re[2]: " Kristof Sardemann
2002-12-09 21:33     ` Adaptec 2940 not working on 2.5.50 David Lang
  -- strict thread matches above, loose matches on Subject: below --
2002-11-17  9:37 bug in via-rhine network-driver (transmit timed out) Manfred Spraul
2002-11-17  8:30 Justin A
2002-11-17  7:59 ksardem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox