From: Jan Oravec <jan.oravec@6com.sk>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Brad House <brad_mssw@gentoo.org>, netdev@oss.sgi.com
Subject: Re: r8169 and tg3
Date: Tue, 18 Nov 2003 11:00:01 +0100 [thread overview]
Message-ID: <20031118100001.GA23615@wsx.ksp.sk> (raw)
In-Reply-To: <3FB9A277.70309@pobox.com>
Hi Jeff,
> 1) If you have problems with the tg3 driver, we need to get those bug
> reports and fix them. bcm5700 is not going to be merged into the
> kernel. Further, there was at least one serious x86-64 issue that was
> fixed in tg3, and we need to make sure users are testing that driver,
> not a non-standard driver with bugs of its own.
So here is the bug report:
I have a 4-port card with two Broadcom 5704 chips plugged into PCI-X 1 of
Tyan S2880 motherboard (the onboard 5704's are disabled) with single Opteron
240 processor. When loading tg3 driver, this appears in dmesg:
eth0: Tigon3 [partno(BCM95704A6) rev 2003 PHY(5704)] (PCIX:133MHz:64-bit) 10/100/1000BaseT Ethernet <MAC0>
eth1: Tigon3 [partno(BCM95704A6) rev 2003 PHY(5704)] (PCIX:133MHz:64-bit) 10/100/1000BaseT Ethernet <MAC1>
eth2: Tigon3 [partno(BCM95704A6) rev 2003 PHY(5704)] (PCIX:133MHz:64-bit) 10/100/1000BaseT Ethernet <MAC2>
eth3: Tigon3 [partno(BCM95704A6) rev 2003 PHY(5704)] (PCIX:133MHz:64-bit) 10/100/1000BaseT Ethernet <MAC3>
The IRQs of the ports are:
eth0: IRQ 28
eth1: IRQ 28
eth2: IRQ 28
eth3: IRQ 30
When we try configure eth0 only or eth3 only, it works fine. When only eth1
or eth2 are configured, the 'RUNNING' flag of the interface is missing even
if the cable is plugged thus card does not work. When we turn eth0 up, eth1
and eth2 starts working, but the latency of transfers is horrible.
After some debugging I realized this:
When inserting printk() into tg3_interrupt():
When one of eth0, eth3 are up, I get 10 interrups per second for them (I
heard that it's some workaround for HW bug).
When one of eth1, eth2 are up, I get no interrupt.
When one of eth1, eth2 are up and eth0 is up, I get 10 interrupts per second
for each of them, but I get no interrupts when data are received on eth1 or
eth2. That explains the horrible latency like:
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=10.0 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=9.00 ms
64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=8.00 ms
64 bytes from 10.0.0.1: icmp_seq=4 ttl=64 time=7.00 ms
64 bytes from 10.0.0.1: icmp_seq=5 ttl=64 time=6.00 ms
64 bytes from 10.0.0.1: icmp_seq=6 ttl=64 time=5.00 ms
64 bytes from 10.0.0.1: icmp_seq=7 ttl=64 time=4.00 ms
64 bytes from 10.0.0.1: icmp_seq=8 ttl=64 time=3.00 ms
64 bytes from 10.0.0.1: icmp_seq=9 ttl=64 time=2.00 ms
64 bytes from 10.0.0.1: icmp_seq=10 ttl=64 time=1.00 ms
64 bytes from 10.0.0.1: icmp_seq=11 ttl=64 time=99.9 ms
64 bytes from 10.0.0.1: icmp_seq=12 ttl=64 time=98.9 ms
64 bytes from 10.0.0.1: icmp_seq=13 ttl=64 time=97.9 ms
64 bytes from 10.0.0.1: icmp_seq=14 ttl=64 time=96.9 ms
Also, I cannot see any interrupts in /proc/interrupts when I receive packets
thru eth1/eth2.
The problem is repeatable on other exactly same system. The NICs works fine
on 32-bit architecture with 64-bit PCI-X. There are some reports that it
works under 32-bit kernel on Opteron, but I have not tried this yet.
The same problem appears with bcm5700 driver (except 10 ints/sec so the only
way to make it partially work is to make traffic on eth0).
If you need any details or have some suggestions what should I try, let me
know.
Thanks,
Jan
next prev parent reply other threads:[~2003-11-18 10:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-17 4:08 [PATCH 2.6.0-test9-bk6] r8169.c update for 8110S support from RTL 1.6 version Brad House
2003-11-18 4:39 ` r8169 and tg3 Jeff Garzik
2003-11-18 4:51 ` Brad House
2003-11-18 10:00 ` Jan Oravec [this message]
2003-11-18 11:01 ` David S. Miller
2003-11-18 12:58 ` Francois Romieu
2003-11-19 17:24 ` Jeff Garzik
2003-11-19 18:44 ` Robert Olsson
2003-11-20 0:00 ` [patches] 2.6.0-test9 - r8169 DMA API conversion Francois Romieu
2003-11-20 0:08 ` Brad House
2003-11-20 0:45 ` Francois Romieu
2003-11-20 0:59 ` Brad House
2003-11-20 1:34 ` Andre Tomt
2003-11-20 1:35 ` Brad House
2003-11-20 1:36 ` Brad House
2003-11-20 1:36 ` Jeff Garzik
2003-11-21 0:36 ` Francois Romieu
2003-11-21 1:38 ` Jeff Garzik
2003-11-21 23:20 ` Francois Romieu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031118100001.GA23615@wsx.ksp.sk \
--to=jan.oravec@6com.sk \
--cc=brad_mssw@gentoo.org \
--cc=jgarzik@pobox.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).