netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* tg3 timeouts with 2.6.17-rc6
@ 2006-06-16 16:50 Juergen Kreileder
  0 siblings, 0 replies; 10+ messages in thread
From: Juergen Kreileder @ 2006-06-16 16:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: mchan, netdev

Hi,

I'm seeing frequent network timeouts on my PowerMac G5 Quad with
2.6.17-rc6.  The timeouts are easily reproducible with moderate
network traffic, e.g. by using bittorrent.

,----
| NETDEV WATCHDOG: lan0: transmit timed out
| tg3: lan0: transmit timed out, resetting
| tg3: tg3_stop_block timed out, ofs=2c00 enable_bit=2
| tg3: tg3_stop_block timed out, ofs=1400 enable_bit=2
| tg3: lan0: Link is down.
| [...]
| tg3: lan0: Link is up at 1000 Mbps, full duplex.
| tg3: lan0: Flow control is on for TX and on for RX.
`----


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://blog.blackdown.de/

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

* Re: tg3 timeouts with 2.6.17-rc6
@ 2006-06-16 17:02 Michael Chan
  2006-06-16 21:20 ` Juergen Kreileder
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Chan @ 2006-06-16 17:02 UTC (permalink / raw)
  To: Juergen Kreileder, linux-kernel; +Cc: netdev

Juergen Kreileder

> I'm seeing frequent network timeouts on my PowerMac G5 Quad with
> 2.6.17-rc6.  The timeouts are easily reproducible with moderate
> network traffic, e.g. by using bittorrent.
> 

Did this use to work with an older kernel or older tg3 driver? If
yes, what version?

Please also provide the full tg3 probing output during modprobe and
ifconfig up. Thanks.


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

* Re: tg3 timeouts with 2.6.17-rc6
  2006-06-16 17:02 Michael Chan
@ 2006-06-16 21:20 ` Juergen Kreileder
  2006-06-16 21:42   ` Michael Chan
  0 siblings, 1 reply; 10+ messages in thread
From: Juergen Kreileder @ 2006-06-16 21:20 UTC (permalink / raw)
  To: Michael Chan; +Cc: linux-kernel, netdev

Michael Chan <mchan@broadcom.com> writes:

> Juergen Kreileder
>
>> I'm seeing frequent network timeouts on my PowerMac G5 Quad with
>> 2.6.17-rc6.  The timeouts are easily reproducible with moderate
>> network traffic, e.g. by using bittorrent.
>>
>
> Did this use to work with an older kernel or older tg3 driver? If
> yes, what version?

Works fine with 2.6.16 and earlier.

> Please also provide the full tg3 probing output during modprobe and
> ifconfig up. Thanks.

,----
| tg3.c:v3.58 (May 22, 2006)
| eth0: Tigon3 [partno(BCM95780) rev 8003 PHY(5780)] (PCIX:133MHz:64-bit) 10/100/1000BaseT Ethernet 00:14:51:66:ff:b2
| eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] Split[0] WireSpeed[1] TSOcap[1] 
| eth0: dma_rwctrl[76144000] dma_mask[40-bit]
| eth1: Tigon3 [partno(BCM95780) rev 8003 PHY(5780)] (PCIX:133MHz:64-bit) 10/100/1000BaseT Ethernet 00:14:51:66:ff:b3
| eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] Split[0] WireSpeed[1] TSOcap[1] 
| eth1: dma_rwctrl[76144000] dma_mask[40-bit]
| [...]
| tg3: lan0: Link is up at 1000 Mbps, full duplex.
| tg3: lan0: Flow control is on for TX and on for RX.
`----

eth0 and eth1 get renamed to lan0 and lan1 by udev.  eth0/lan0 is
connected to a Gigabit switch eth1/lan1 is not connected.
Both interface are controlled by ifplugd (using SIOCETHTOOL for link
beat detection).

Let me know if you need more debugging output.


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://blog.blackdown.de/

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

* Re: tg3 timeouts with 2.6.17-rc6
  2006-06-16 21:20 ` Juergen Kreileder
@ 2006-06-16 21:42   ` Michael Chan
  2006-06-17  0:05     ` Juergen Kreileder
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Chan @ 2006-06-16 21:42 UTC (permalink / raw)
  To: Juergen Kreileder; +Cc: linux-kernel, netdev

On Fri, 2006-06-16 at 23:20 +0200, Juergen Kreileder wrote:
> Michael Chan <mchan@broadcom.com> writes:
> 
> >
> > Did this use to work with an older kernel or older tg3 driver? If
> > yes, what version?
> 
> Works fine with 2.6.16 and earlier.
> 
> > Please also provide the full tg3 probing output during modprobe and
> > ifconfig up. Thanks.
> 
Looking at the patch history since 2.6.16, the only patch that could
have an impact is the one that enables TSO by default.

Please try turning TSO off to see if it makes a difference:

ethtool -K eth0 tso off


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

* Re: tg3 timeouts with 2.6.17-rc6
  2006-06-16 21:42   ` Michael Chan
@ 2006-06-17  0:05     ` Juergen Kreileder
  2006-06-17  1:27       ` Michael Chan
  0 siblings, 1 reply; 10+ messages in thread
From: Juergen Kreileder @ 2006-06-17  0:05 UTC (permalink / raw)
  To: Michael Chan; +Cc: linux-kernel, netdev

Michael Chan <mchan@broadcom.com> writes:

> On Fri, 2006-06-16 at 23:20 +0200, Juergen Kreileder wrote:
>> Michael Chan <mchan@broadcom.com> writes:
>>
>>>
>>> Did this use to work with an older kernel or older tg3 driver? If
>>> yes, what version?
>>
>> Works fine with 2.6.16 and earlier.
>>
>>> Please also provide the full tg3 probing output during modprobe
>>> and ifconfig up. Thanks.
>>
> Looking at the patch history since 2.6.16, the only patch that could
> have an impact is the one that enables TSO by default.
>
> Please try turning TSO off to see if it makes a difference:
>
> ethtool -K eth0 tso off

Seems to work fine with TSO disabled.


        Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://blog.blackdown.de/

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

* Re: tg3 timeouts with 2.6.17-rc6
  2006-06-17  0:05     ` Juergen Kreileder
@ 2006-06-17  1:27       ` Michael Chan
  2006-06-17  2:51         ` David Miller
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Chan @ 2006-06-17  1:27 UTC (permalink / raw)
  To: Juergen Kreileder; +Cc: linux-kernel, netdev

On Sat, 2006-06-17 at 02:05 +0200, Juergen Kreileder wrote:
> Michael Chan <mchan@broadcom.com> writes:
> > Please try turning TSO off to see if it makes a difference:
> >
> > ethtool -K eth0 tso off
> 
> Seems to work fine with TSO disabled.
> 
Thanks for the information. We'll look into it. If possible, please send
me (using private email) an ethereal trace of a sample of the packets
sent by the tg3 chip right before the NETDEV_WATCHDOG timeout.

In the meantime, I wonder if we should disable TSO by default on the
5780 chip for 2.6.17.


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

* Re: tg3 timeouts with 2.6.17-rc6
  2006-06-17  1:27       ` Michael Chan
@ 2006-06-17  2:51         ` David Miller
  0 siblings, 0 replies; 10+ messages in thread
From: David Miller @ 2006-06-17  2:51 UTC (permalink / raw)
  To: mchan; +Cc: jk, linux-kernel, netdev

From: "Michael Chan" <mchan@broadcom.com>
Date: Fri, 16 Jun 2006 18:27:32 -0700

> In the meantime, I wonder if we should disable TSO by default on the
> 5780 chip for 2.6.17.

Sounds reasonable.  Would we disable it for all chips that set
TG3_FLG2_5780_CLASS or a specific variant?

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

* Re: tg3 timeouts with 2.6.17-rc6
@ 2006-06-17  3:37 Michael Chan
  2006-06-17 18:23 ` Michael Chan
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Chan @ 2006-06-17  3:37 UTC (permalink / raw)
  To: David Miller; +Cc: jk, linux-kernel, netdev

David Miller wrote:

> From: "Michael Chan" <mchan@broadcom.com>
> Date: Fri, 16 Jun 2006 18:27:32 -0700
> 
> > In the meantime, I wonder if we should disable TSO by default on the
> > 5780 chip for 2.6.17.
> 
> Sounds reasonable.  Would we disable it for all chips that set
> TG3_FLG2_5780_CLASS or a specific variant?
> 
Yes, let's disable it for all TG3_FLG2_5780_CLASS chips for now
until we figure out what's going on.


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

* Re: tg3 timeouts with 2.6.17-rc6
  2006-06-17  3:37 Michael Chan
@ 2006-06-17 18:23 ` Michael Chan
  2006-06-18  4:08   ` David Miller
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Chan @ 2006-06-17 18:23 UTC (permalink / raw)
  To: David Miller; +Cc: jk, linux-kernel, netdev

On Fri, 2006-06-16 at 20:37 -0700, Michael Chan wrote:
> David Miller wrote:
> 
> > From: "Michael Chan" <mchan@broadcom.com>
> > Date: Fri, 16 Jun 2006 18:27:32 -0700
> > 
> > > In the meantime, I wonder if we should disable TSO by default on the
> > > 5780 chip for 2.6.17.
> > 
> > Sounds reasonable.  Would we disable it for all chips that set
> > TG3_FLG2_5780_CLASS or a specific variant?
> > 
> Yes, let's disable it for all TG3_FLG2_5780_CLASS chips for now
> until we figure out what's going on.

David, Here's the patch if you haven't already made one:

[TG3]: Disable TSO by default on 5780 class chips.

Disable TSO by default on 5780, 5714, and 5715 chips for now while we
investigate the reported tx timeouts by Juergen Kreileder.  Thanks to
Juergen for reporting the problem.

Update version to 3.60.

Signed-off-by: Michael Chan <mchan@broadcom.com>


diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 862c226..607d87e 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -69,8 +69,8 @@
 
 #define DRV_MODULE_NAME		"tg3"
 #define PFX DRV_MODULE_NAME	": "
-#define DRV_MODULE_VERSION	"3.59"
-#define DRV_MODULE_RELDATE	"June 8, 2006"
+#define DRV_MODULE_VERSION	"3.60"
+#define DRV_MODULE_RELDATE	"June 17, 2006"
 
 #define TG3_DEF_MAC_MODE	0
 #define TG3_DEF_RX_MODE		0
@@ -11385,7 +11385,11 @@ static int __devinit tg3_init_one(struct
 	 * Firmware TSO on older chips gives lower performance, so it
 	 * is off by default, but can be enabled using ethtool.
 	 */
-	if (tp->tg3_flags2 & TG3_FLG2_HW_TSO)
+	/* Disable TSO by default on all 5780 class chips because
+	 * of reported tx timeouts.
+	 */
+	if ((tp->tg3_flags2 & TG3_FLG2_HW_TSO) &&
+	   !(tp->tg3_flags2 & TG3_FLG2_5780_CLASS))
 		dev->features |= NETIF_F_TSO;
 
 #endif



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

* Re: tg3 timeouts with 2.6.17-rc6
  2006-06-17 18:23 ` Michael Chan
@ 2006-06-18  4:08   ` David Miller
  0 siblings, 0 replies; 10+ messages in thread
From: David Miller @ 2006-06-18  4:08 UTC (permalink / raw)
  To: mchan; +Cc: jk, linux-kernel, netdev

From: "Michael Chan" <mchan@broadcom.com>
Date: Sat, 17 Jun 2006 11:23:28 -0700

> David, Here's the patch if you haven't already made one:
> 
> [TG3]: Disable TSO by default on 5780 class chips.

Sorry, I didn't get a chance to push this into 2.6.17
in time.  I will push it into the first 2.6.17.x -stable
release.

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

end of thread, other threads:[~2006-06-18  4:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-16 16:50 tg3 timeouts with 2.6.17-rc6 Juergen Kreileder
  -- strict thread matches above, loose matches on Subject: below --
2006-06-16 17:02 Michael Chan
2006-06-16 21:20 ` Juergen Kreileder
2006-06-16 21:42   ` Michael Chan
2006-06-17  0:05     ` Juergen Kreileder
2006-06-17  1:27       ` Michael Chan
2006-06-17  2:51         ` David Miller
2006-06-17  3:37 Michael Chan
2006-06-17 18:23 ` Michael Chan
2006-06-18  4:08   ` David Miller

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).