* Re: bug in via-rhine network-driver (transmit timed out)
@ 2002-11-17 9:37 Manfred Spraul
2002-11-20 17:13 ` bug in via-rhine network-driver (transmit timed out) Final Test-results Kristof Sardemann
2002-11-21 19:07 ` bug in via-rhine network-driver (transmit timed out) debug-report Kristof Sardemann
0 siblings, 2 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) Final Test-results
2002-11-17 9:37 bug in via-rhine network-driver (transmit timed out) Manfred Spraul
@ 2002-11-20 17:13 ` Kristof Sardemann
2002-11-21 19:07 ` bug in via-rhine network-driver (transmit timed out) debug-report Kristof Sardemann
1 sibling, 0 replies; 7+ messages in thread
From: Kristof Sardemann @ 2002-11-20 17:13 UTC (permalink / raw)
To: linux-kernel; +Cc: manfred, jgarzik, ja6447, DONTcwvcaSPAM
Hi,
thanks for the good help - the card works really good now. =)
In the following I'll answer to all of your suggestions in this one
mail:
>Does booting with "noapic" on the kernel command line fix your problems?
Yes, it did.
(Although I don't understand why cause I have no smp-system ;-))
>Have you tried the 8139too driver? This driver is suppose to work
>too.
No, it didn't work in my tests.
>Try the linuxfet driver found here:
>http://www.viaarena.com/?PageID=87#ethernet
I took the driver for "Red Hat Linux 7.3 VT8231/VT8233/VT8235/VT6105
Fast Ethernet Controller" (07/23/2002 Ver 0.9) and compiled it on my
SuSE-8.1 - and it worked really good :)
Additional I found out, that booting with "acpi=off" also fixed the
problem - but this might be a specific problem of the
SuSE-8.1-Kernel.
>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?
To complete the test I'll send the detailed debug-messages tomorrow.
--
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) debug-report
2002-11-17 9:37 bug in via-rhine network-driver (transmit timed out) Manfred Spraul
2002-11-20 17:13 ` bug in via-rhine network-driver (transmit timed out) Final Test-results Kristof Sardemann
@ 2002-11-21 19:07 ` Kristof Sardemann
1 sibling, 0 replies; 7+ messages in thread
From: Kristof Sardemann @ 2002-11-21 19:07 UTC (permalink / raw)
To: linux-kernel; +Cc: manfred
Hi,
>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?
As you said I loaded the driver with options via-rhine debug=3
but in debug-mode there was no error any longer!
I know this is a bit strange but if I get the error-message
again I'll post it...
Here are some system-informations: (with debug=3, no errors)
lsmod:
via-rhine 13612 2
mii 1232 0 [via-rhine]
complete dmesg:
Linux version 2.4.19-my (root@geeko) (gcc version 3.2) #2 Thu Nov 7 11:01:44 CET 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000017ff0000 (usable)
BIOS-e820: 0000000017ff0000 - 0000000017ff3000 (ACPI NVS)
BIOS-e820: 0000000017ff3000 - 0000000018000000 (ACPI data)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
Scanning bios EBDA for MXT signature
383MB LOWMEM available.
ACPI: have wakeup address 0xc0001000
Advanced speculative caching feature not present
On node 0 totalpages: 98288
zone(0): 4096 pages.
zone(1): 94192 pages.
zone(2): 0 pages.
ACPI: RSDP (v000 COMPAQ ) @ 0x000f70f0
ACPI: RSDT (v001 COMPAQ AWRDACPI 16944.11825) @ 0x17ff3000
ACPI: FADT (v001 COMPAQ AWRDACPI 16944.11825) @ 0x17ff3040
ACPI: MADT not present
Building zonelist for node : 0
Kernel command line: root=/dev/hda5 vga=788 init 3
Initializing CPU#0
Detected 349.976 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 697.95 BogoMIPS
Memory: 385080k/393152k available (1770k kernel code, 7684k reserved, 438k data, 164k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Before vendor init, caps: 0183f9ff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After vendor init, caps: 0183f9ff 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0183f9ff 00000000 00000000 00000000
CPU: Common caps: 0183f9ff 00000000 00000000 00000000
CPU: Intel Pentium II (Deschutes) stepping 02
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
ACPI: Subsystem revision 20020829
PCI: PCI BIOS revision 2.10 entry at 0xfb1f0, last bus=1
PCI: Using configuration type 1
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: System [ACPI] (supports S0 S1 S3 S4 S5)
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
Unknown bridge resource 2: assuming transparent
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 11 12 14 15, enabled at IRQ 9)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 11 12 14 15, enabled at IRQ 9)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 *10 11 12 14 15)
PCI: Probing PCI hardware
PCI: Using IRQ router PIIX [8086/7110] at 00:07.0
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16)
apm: overridden by ACPI.
mxt_scan_bios: enter
Starting kswapd
bigpage subsystem: allocated 0 bigpages (=0MB).
kinoded started
VFS: Diskquotas version dquot_6.5.0 initialized
aio_setup: num_physpages = 24572
aio_setup: sizeof(struct page) = 48
vesafb: framebuffer at 0xdc000000, mapped to 0xd8815000, size 8192k
vesafb: mode is 800x600x16, linelength=1600, pages=7
vesafb: protected mode interface info at c000:4785
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Looking for splash picture.... found (800x600, 19991 bytes).
Console: switching to colour frame buffer device 82x26
fb0: VESA VGA frame buffer device
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10e
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 39
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
hda: Maxtor 32049H2, ATA DISK drive
hdc: CD-540E, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c03baea4, I/O limit 4095Mb (mask 0xffffffff)
hda: safely enabled flush
hda: 40021632 sectors (20491 MB) w/2048KiB Cache, CHS=2491/255/63, UDMA(33)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2 < hda5 hda6 hda7 >
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize
loop: loaded (max 16 devices)
[drm] Initialized gamma 1.0.0 20010216 on minor 0
[drm] Initialized tdfx 1.0.0 20010216 on minor 1
[drm] Initialized r128 2.2.0 20010917 on minor 2
Cronyx Ltd, Synchronous PPP and CISCO HDLC (c) 1994
Linux port (c) 1998 Building Number Three Ltd & Jan "Yenya" Kasprzak.
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 131k freed
VFS: Mounted root (ext2 filesystem).
EXT2-fs warning (device ide0(3,5)): ext2_read_super: mounting ext3 filesystem as ext2
VFS: Mounted root (ext2 filesystem) readonly.
Trying to move old root to /initrd ... failed
Unmounting old root
Trying to free ramdisk memory ... okay
Freeing unused kernel memory: 164k freed
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
LVM version 1.0.5(mp-v6)(15/07/2002) module loaded
Adding Swap: 257000k swap-space (priority 42)
via-rhine.c:v1.10-LK1.1.14 May-3-2002 Written by Donald Becker
http://www.scyld.com/network/via-rhine.html
PCI: Found IRQ 9 for device 00:09.0
via-rhine: reset finished after 5 microseconds.
eth0: VIA VT6102 Rhine-II at 0xe400, 00:05:5d:e5:3d:17, IRQ 9.
eth0: MII PHY found at address 8, status 0x782d advertising 01e1 Link 45e1.
PCI: Found IRQ 9 for device 00:0a.0
via-rhine: reset finished after 5 microseconds.
eth1: VIA VT6102 Rhine-II at 0xe800, 00:05:5d:e5:2d:f1, IRQ 9.
eth1: MII PHY found at address 8, status 0x782d advertising 01e1 Link 41e1.
eth0: via_rhine_open() irq 9.
eth0: reset finished after 5 microseconds.
eth0: Setting full-duplex based on MII #8 link partner capability of 45e1.
eth0: Done via_rhine_open(), status 0c1a MII status: 782d.
eth1: via_rhine_open() irq 9.
eth1: reset finished after 5 microseconds.
eth1: Setting full-duplex based on MII #8 link partner capability of 41e1.
eth1: Done via_rhine_open(), status 0c1a MII status: 782d.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
isapnp: Scanning for PnP cards...
isapnp: SB audio device quirk - increasing port range
isapnp: Card 'Creative ViBRA16X PnP'
isapnp: 1 Plug & Play card detected total
ip_tables: (C) 2000-2002 Netfilter core team
usb-uhci.c: $Revision: 1.275 $ time 09:23:14 Nov 7 2002
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xe000, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
uhci.c: USB Universal Host Controller Interface driver v1.1
hdc: bad special flag: 0x03
ide-floppy driver 0.99.newide
hdc: no flushcache support
hdc: ATAPI 40X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
cdrom: open failed.
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
eth1: no IPv6 routers present
eth0: no IPv6 routers present
Hope that helps. ;)
--
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-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 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 16:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-17 9:37 bug in via-rhine network-driver (transmit timed out) Manfred Spraul
2002-11-20 17:13 ` bug in via-rhine network-driver (transmit timed out) Final Test-results Kristof Sardemann
2002-11-21 19:07 ` bug in via-rhine network-driver (transmit timed out) debug-report Kristof Sardemann
-- strict thread matches above, loose matches on Subject: below --
2002-12-09 16:54 bug in via-rhine network-driver (transmit timed out) ksardem
2002-12-09 16:58 ` Jeff Garzik
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