From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932333AbWAUAky (ORCPT ); Fri, 20 Jan 2006 19:40:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932337AbWAUAky (ORCPT ); Fri, 20 Jan 2006 19:40:54 -0500 Received: from viper.oldcity.dca.net ([216.158.38.4]:3525 "HELO viper.oldcity.dca.net") by vger.kernel.org with SMTP id S932331AbWAUAkx (ORCPT ); Fri, 20 Jan 2006 19:40:53 -0500 Subject: Re: My vote against eepro* removal From: Lee Revell To: Evgeniy Polyakov Cc: kus Kusche Klaus , John Ronciak , Adrian Bunk , linux-kernel@vger.kernel.org, john.ronciak@intel.com, ganesh.venkatesan@intel.com, jesse.brandeburg@intel.com, netdev@vger.kernel.org, Steven Rostedt In-Reply-To: <20060120095548.GA16000@2ka.mipt.ru> References: <20060120095548.GA16000@2ka.mipt.ru> Content-Type: text/plain Date: Fri, 20 Jan 2006 19:40:50 -0500 Message-Id: <1137804050.3241.32.camel@mindpipe> Mime-Version: 1.0 X-Mailer: Evolution 2.5.4 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2006-01-20 at 12:55 +0300, Evgeniy Polyakov wrote: > > Analysis of e100: > > * If I comment out the whole body of e100_watchdog except for the > > timer re-registration, the delays are gone (so it is really the > > body of e100_watchdog). However, this makes eth0 non-functional. > > * Commenting out parts of it, I found out that most of the time > > goes into its first half: The code from mii_ethtool_gset to > > mii_check_link (including) makes the big difference, as far as > > I can tell especially mii_ethtool_gset. > > Each MDIO read can take upto 2 msecs (!) and at least 20 usecs in > e100, > and this runs in timer handler. > Concider attaching (only compile tested) patch which moves e100 > watchdog > into workqueue. Seems like the important question is, why does e100 need a watchdog if eepro100 works fine without one? Isn't the point of a watchdog in this context to work around other bugs in the driver (or the hardware)? Lee