From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965911AbXC2CUl (ORCPT ); Wed, 28 Mar 2007 22:20:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965914AbXC2CUl (ORCPT ); Wed, 28 Mar 2007 22:20:41 -0400 Received: from dilbert.robsims.com ([209.120.158.98]:42571 "EHLO mail.robsims.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965911AbXC2CUj (ORCPT ); Wed, 28 Mar 2007 22:20:39 -0400 Date: Mon, 26 Mar 2007 21:24:06 -0600 From: Rob Sims To: Stephen Hemminger Cc: Thomas Glanzmann , LKML , Andreas =?iso-8859-1?Q?Allg=F6wer?= , Michael Gernoth Subject: Re: sky2 PHY setup Message-ID: <20070327032406.GA25659@robsims.com> References: <20070202102705.3cf028a6@freekitty> <20070202210934.GM1693@cip.informatik.uni-erlangen.de> <20070202151601.677ec5d9@freekitty> <20070203073012.GO1693@cip.informatik.uni-erlangen.de> <20070205090429.31d7bd32@freekitty> <20070222193611.GR20035@cip.informatik.uni-erlangen.de> <20070316002912.GB17594@cip.informatik.uni-erlangen.de> <20070316095932.5e920222@freekitty> <20070316203645.GA24699@robsims.com> <20070316141648.15d7ff75@freekitty> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <20070316141648.15d7ff75@freekitty> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 16, 2007 at 02:16:48PM -0700, Stephen Hemminger wrote: > On Fri, 16 Mar 2007 14:36:45 -0600 > Rob Sims wrote: > > Are there some debug hooks that can be activated? My sky2 stops > > responding (very light load) about twice a day. The netdev watchdog > > notices after a while and is able to reactivate the interface: > > Mar 15 13:28:12 btd kernel: NETDEV WATCHDOG: eth0: transmit timed out > > Mar 15 13:28:12 btd kernel: sky2 eth0: tx timeout > > Mar 15 13:28:12 btd kernel: sky2 eth0: transmit ring 458 .. 435 report= =3D458 done=3D458 > > Mar 15 13:28:12 btd kernel: sky2 eth0: disabling interface > > Mar 15 13:28:12 btd kernel: sky2 eth0: enabling interface > > Mar 15 13:28:12 btd kernel: sky2 eth0: ram buffer 48K > > Mar 15 13:28:15 btd kernel: sky2 eth0: Link is up at 1000 Mbps, full du= plex, flow control both >=20 > Use ethtool -S to if there are any pause frames, etc. See if frames are > still making it into PHY statistics but not being received. >=20 > Use ethtool -d to dump registers. Need current version of ethtool with de= code logic. >=20 > Then look for things like is Ram buffer read/write pointer changing? >=20 > Is GMAC stuck in pause: >=20 > Normal is: > GMAC 1 > Status 0x5010 (see GM_GPSR_XXX in sky2.h) > Control 0x1800 >=20 > Stuck is > GMAC 1 > Status 0x5810 (or 0x5A10) First, here's the described hang in action, on the Core2 Duo on a 1Gb hub: GMAC 1 Status/Control remains at 0x5010/0x1800 until module is removed. Read/write buffer pointers are changing. Full ethtool output in http://www.robsims.com/sky2.netmon.log.gz This machine was also having major throughput problems - 17 kB/s. Rebooting brought it to ~ 20 MB/s. Booting into a kernel with the proprietary sk98lin kernel module showed ~ 80MB/s. Finally, returning to sky2 gave 117 MB/s. Tests run using netcat, dd, /dev/zero, and /dev/null, transmitting from the problem box to an e1000 via a Netgear GS108. No hangs were observed during the "load test." I also had a hang on a Pentium 4 w/sky2, 100Mb/s hub. I neglected to try removing and re-inserting the module before rebooting. GMAC 1 Status 0xF004 Control 0x1800 RAMbuffer pointers not moving, Read buffer Read pointer !=3D Write pointer. http://www.robsims.com/sky2.ethtooldumps.tgz Thanks for looking at this. --=20 Rob --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGCI5WnvKppSZW8osRAvSyAKCDQeRr44R9JLVgCSUAslbnOXriowCgl2m5 pY8ojjwPvEOYzJdYxk+v3xo= =Ftub -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--