From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965954AbXCPVUI (ORCPT ); Fri, 16 Mar 2007 17:20:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965962AbXCPVUI (ORCPT ); Fri, 16 Mar 2007 17:20:08 -0400 Received: from smtp.osdl.org ([65.172.181.24]:36408 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965954AbXCPVUF (ORCPT ); Fri, 16 Mar 2007 17:20:05 -0400 Date: Fri, 16 Mar 2007 14:16:48 -0700 From: Stephen Hemminger To: Rob Sims Cc: Thomas Glanzmann , LKML , Andreas =?UTF-8?B?QWxsZ8O2d2Vy?= , Michael Gernoth Subject: Re: sky2 PHY setup Message-ID: <20070316141648.15d7ff75@freekitty> In-Reply-To: <20070316203645.GA24699@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> Organization: Linux Foundation X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Mar 2007 14:36:45 -0600 Rob Sims wrote: > On Fri, Mar 16, 2007 at 09:59:32AM -0700, Stephen Hemminger wrote: > > On Fri, 16 Mar 2007 01:29:12 +0100 > > Thomas Glanzmann wrote: > > > > > Hello Stephen, > > > > > > > yesterday I pulled from Linus tree because I saw the sky2 updated and I > > > > tried to break it but it seems that my problems are gone. I let you know > > > > if anything pops up in the future. > > > > > > bad news. I today tried the sky2 driver which is in Linus Kernel Tree > > > (HEAD) on a machine with very high network load and it stopped working > > > without any kernel messages after doing a flawless job under high load > > > for 5 hours. My watchdog rebooted the machine after 500 seconds. ;-( > > > > > > Thomas > > > > I have run for 2+ days under load without problems. It is hard to > > reproduce or do much about your problem without more info. > > 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=458 done=458 > 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 duplex, flow control both 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. Use ethtool -d to dump registers. Need current version of ethtool with decode logic. Then look for things like is Ram buffer read/write pointer changing? Is GMAC stuck in pause: Normal is: GMAC 1 Status 0x5010 (see GM_GPSR_XXX in sky2.h) Control 0x1800 Stuck is GMAC 1 Status 0x5810 (or 0x5A10) -- Stephen Hemminger