From owner-freebsd-net@FreeBSD.ORG Thu Aug 17 04:30:40 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCE5A16A4DE for ; Thu, 17 Aug 2006 04:30:40 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB55643D58 for ; Thu, 17 Aug 2006 04:30:39 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by py-out-1112.google.com with SMTP id c59so613522pyc for ; Wed, 16 Aug 2006 21:30:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=f5tgsaAzWnqLlZjwmNfS3T6eVyw9mfcENJX2ZxCyDQeQ+6mM3riUs+TK32OjFBlPynOjYO6B8JrDpaNR2fOR4YvXlFfinFQnn7VZ86YNwzrSmZb3jaA91Thj99wG/XTWMEDeQDRkcMrsuW48CcgqxWOkiykaew2xUDRyIm5p0cQ= Received: by 10.35.128.1 with SMTP id f1mr2868186pyn; Wed, 16 Aug 2006 21:30:39 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 20sm55047nzp.2006.08.16.21.30.36; Wed, 16 Aug 2006 21:30:38 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k7H4WiSX051687 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Aug 2006 13:32:44 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k7H4Wgnd051686; Thu, 17 Aug 2006 13:32:42 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 17 Aug 2006 13:32:42 +0900 From: Pyun YongHyeon To: Daniel Ryslink Message-ID: <20060817043242.GF49739@cdnetworks.co.kr> References: <20060811100536.V80282@k2.vol.cz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8nsIa27JVQLqB7/C" Content-Disposition: inline In-Reply-To: <20060811100536.V80282@k2.vol.cz> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: Problems with em interfaces on FreeBSD 6.1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2006 04:30:40 -0000 --8nsIa27JVQLqB7/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Aug 11, 2006 at 10:06:00AM +0200, Daniel Ryslink wrote: > > Hello, > > We have currently upgraded one of our routers to Gigabit connectivity and > FreeBSD 6.1 Release. > > The hardware is Supermicro SuperServer 5015M-T - we have tried both the > integrated NIC and yet another external Intel NIC - specifically > > Intel PRO/1000 MT Dual Port Server Adapter > PWLA8492MT > > The problem is that several times a day, the following appears in > messages: > > Aug 11 08:41:44 b2 kernel: em0: watchdog timeout -- resetting > > accompanied with a loss of connectivity lasting for several seconds. > > We have tried using both the default driver that came with the FreeBSD > installation as well as the newest driver from Intel dated 2th April 2006 > compiled as a module, but the problem still persists. > > If anyone encountered the problem and has a solution, I would be very > grateful. > Because I can't reproduce it here and I failed to find a possible cause of the issue. As a last resort would you give attached patch a try? The patch was generated against latest stable. -- Regards, Pyun YongHyeon --8nsIa27JVQLqB7/C Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="em.debug.patch" --- if_em.c.orig Fri Aug 11 10:56:10 2006 +++ if_em.c Thu Aug 17 13:27:43 2006 @@ -943,6 +943,15 @@ return; } + /* Relaim pending Tx descriptors */ + em_txeof(adapter); + if (adapter->num_tx_desc_avail == adapter->num_tx_desc) { + device_printf(adapter->dev, + "Missing Tx completion interrupt!\n"); + EM_UNLOCK(adapter); + return; + } + if (em_check_for_link(&adapter->hw) == 0) device_printf(adapter->dev, "watchdog timeout -- resetting\n"); --8nsIa27JVQLqB7/C--