From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Kumlien Subject: Re: [BUG] Sky2 driver in 2.6.22-rc5-git1-cfs-v17 Date: Sun, 24 Jun 2007 16:13:05 +0200 Message-ID: <1182694385.7032.18.camel@localhost> References: <1182459092.7032.11.camel@localhost> <20070621185711.7dc9fe88@oldman> <1182480325.7032.13.camel@localhost> <20070621211351.6d193bed@oldman> Reply-To: pomac@vapor.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-TmvhDuYP0RGxGz7BJ1Bs" Cc: netdev@vger.kernel.org To: Stephen Hemminger Return-path: Received: from mxfep03.bredband.com ([195.54.107.76]:62378 "EHLO mxfep03.bredband.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750927AbXFXO0i (ORCPT ); Sun, 24 Jun 2007 10:26:38 -0400 Received: from ironport2.bredband.com ([195.54.107.84] [195.54.107.84]) by mxfep03.bredband.com with ESMTP id <20070624141319.GRUT3181.mxfep03.bredband.com@ironport2.bredband.com> for ; Sun, 24 Jun 2007 16:13:19 +0200 In-Reply-To: <20070621211351.6d193bed@oldman> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org --=-TmvhDuYP0RGxGz7BJ1Bs Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On tor, 2007-06-21 at 21:13 -0700, Stephen Hemminger wrote: > On Fri, 22 Jun 2007 04:45:25 +0200 > Ian Kumlien wrote: >=20 > > On tor, 2007-06-21 at 18:57 -0700, Stephen Hemminger wrote: > > > Redirected of LKML, netdev is the proper list. > >=20 > > Thanks =3D) > >=20 > > > On Thu, 21 Jun 2007 22:51:32 +0200 > > > Ian Kumlien wrote: > > >=20 > > > > Hi,=20 > > > >=20 > > > > recently have started to see this in my dmesg: > > > >=20 > > > > NETDEV WATCHDOG: eth0: transmit timed out > > > > sky2 eth0: tx timeout > > > > sky2 eth0: transmit ring 449 .. 408 report=3D449 done=3D449 > > > > sky2 eth0: disabling interface > > > > sky2 eth0: enabling interface > > > > sky2 eth0: ram buffer 48K > > > > sky2 eth0: Link is up at 1000 Mbps, full duplex, flow control rx > > > >=20 > > > > I'm not using MSI since it seems to have caused problems in the pas= t. > > > >=20 > > > > I run with a 9k mtu > > > >=20 > > > > sky2 eth0: transmit ring 18 .. 489 report=3D18 done=3D18 > > > > ---- I assume ring max is 512 (ie 1-512) since: > > > > Ring parameters for eth0: > > > > Current hardware settings: > > > > RX: 168 > > > > RX Mini: 0 > > > > RX Jumbo: 0 > > > > TX: 511 > > > > =09 > > > > And 489 + 41 - 18 =3D 512 > > > >=20 > > > > sky2 eth0: transmit ring 197 .. 156 report=3D197 done=3D197 > > > > sky2 eth0: transmit ring 480 .. 439 report=3D480 done=3D480 > > > > sky2 eth0: transmit ring 413 .. 372 report=3D413 done=3D413 > > > > sky2 eth0: transmit ring 320 .. 279 report=3D320 done=3D320 > > > >=20 > > > > Else, they are all off by 41. > > > >=20 > > > > Is this a known bug? > > > no > >=20 > > Damn =3DP > >=20 > > > > Comments? ideas? > > > > > > > which chip version. probably Yukon EC that seems to be the only one > > > that does gigabit with Ram buffer. > >=20 > > sky2 0000:02:00.0: v1.14 addr 0xdbffc000 irq 18 Yukon-EC (0xb6) rev 2 > >=20 > > > Does it work alright if you set transmit ring size smaller with ethto= ol? > > > There might be an off-by-one bug in the worst case calculations about > > > list element usage. > >=20 > > I tried this... but not with a specific size, i think i did 480, and ye= s > > it timed out... any ideas on a more educated value? > >=20 > > --=20 > > Ian Kumlien -- http://pomac.netswarm.net >=20 > Also try setting the idle_timeout module parameter to something link 10 (= ms). > It will fix problems with lost interrupts. NETDEV WATCHDOG: eth0: transmit timed out sky2 eth0: tx timeout sky2 eth0: transmit ring 393 .. 352 report=3D393 done=3D393 sky2 eth0: disabling interface sky2 eth0: enabling interface sky2 eth0: ram buffer 48K sky2 eth0: Link is up at 1000 Mbps, full duplex, flow control rx So, back to 41 again. 10 ms does seem to help but not enough. Are there many known bugs with the -EC chipsets? --=20 Ian Kumlien -- http://pomac.netswarm.net --=-TmvhDuYP0RGxGz7BJ1Bs Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7-ecc0.1.6 (GNU/Linux) iD8DBQBGfnvx7F3Euyc51N8RAtaiAJ4xS/YuVZebAe8MGqZu1x71O5vaCgCgsSiY eNR/kKdj8nPpHmjzVGbqBCg= =UKR5 -----END PGP SIGNATURE----- --=-TmvhDuYP0RGxGz7BJ1Bs--