From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rogier Wolff Subject: Re: Transmit timeout with E1000 Date: Wed, 11 Jan 2006 14:56:28 +0100 Message-ID: <20060111135627.GB8292@bitwizard.nl> References: <20060110151254.GA24273@harddisk-recovery.com> <20060111125946.GA18203@harddisk-recovery.nl> <20060111132208.GA2332@harddisk-recovery.nl> <20060111134349.GA11630@harddisk-recovery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jesse Brandeburg , e1000-devel@lists.sourceforge.net, netdev@vger.kernel.org, Rogier Wolff Return-path: To: Erik Mouw Content-Disposition: inline In-Reply-To: <20060111134349.GA11630@harddisk-recovery.com> Sender: e1000-devel-admin@lists.sourceforge.net Errors-To: e1000-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: List-Id: netdev.vger.kernel.org On Wed, Jan 11, 2006 at 02:43:49PM +0100, Erik Mouw wrote: > The system only recovers after the Netdev watchdog found out that the > transmit timed out. However, the e1000 register dump starts about 4 to > 5 seconds earlier: a possible workaround would be to trigger the > timeout code path as soon as the register dump starts. Found a typo. Roger. --- e1000_main.c.orig 2006-01-11 14:53:23.000000000 +0100 +++ e1000_main.c 2006-01-11 14:53:38.000000000 +0100 @@ -3449,7 +3449,7 @@ } for (i = 0; i < E1000_MAX_INTR; i++) - if (unlikely(!adapter->clean_rx(adapter, adapter->rx_ring) & + if (unlikely(!adapter->clean_rx(adapter, adapter->rx_ring) && !e1000_clean_tx_irq(adapter, adapter->tx_ring))) break; -- ** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 ** *-- BitWizard writes Linux device drivers for any device you may have! --* Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. Does it sit on the couch all day? Is it unemployed? Please be specific! Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click