From owner-freebsd-current@FreeBSD.ORG Tue Sep 13 21:35:28 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A442E16A41F for ; Tue, 13 Sep 2005 21:35:28 +0000 (GMT) (envelope-from alanbryan1234@yahoo.com) Received: from web50315.mail.yahoo.com (web50315.mail.yahoo.com [206.190.39.228]) by mx1.FreeBSD.org (Postfix) with SMTP id F2F8943D45 for ; Tue, 13 Sep 2005 21:35:27 +0000 (GMT) (envelope-from alanbryan1234@yahoo.com) Received: (qmail 7329 invoked by uid 60001); 13 Sep 2005 21:35:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=V2VkAMz/PwQXIYtHin87PH3p/eHQhsxxWSIVB6tZyc7afn1DKWDR3oAZKA4ibMyofEnbKUlChDTTIgYOnXUuUFAMNEY1LAFCxFZ/47ZQXHL99myRN2RDQ5TwCkQIiWUjVyCnqdKT9TZ3zAWv9TST3lNeGhACFjYgPzvNI4LAKqs= ; Message-ID: <20050913213527.7327.qmail@web50315.mail.yahoo.com> Received: from [67.99.246.2] by web50315.mail.yahoo.com via HTTP; Tue, 13 Sep 2005 14:35:27 PDT Date: Tue, 13 Sep 2005 14:35:27 -0700 (PDT) From: alan bryan To: Maxime Henrion , current@FreeBSD.org In-Reply-To: <20050912172733.GD20997@elvis.mu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: HEADS UP: call for nve(4) users to test a patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 21:35:28 -0000 Well, I tried it and it's still broken. I patched and re-compiled last night (FreeBSD 6 beta 1). The only change is that it didn't go to 64 before dying, it now died at 63 (whatever these numbers stand for). For example from my demsg: nve0: device timeout (62) nve0: link state changed to DOWN nve0: link state changed to UP nve0: device timeout (63) nve0: link state changed to DOWN nve0: link state changed to UP > ping 10.0.0.1 PING 10.0.0.1 (10.0.0.1): 56 data bytes ping: sendto: No buffer space available ping: sendto: No buffer space available (10.0.0.1 is the gateway) It lasted about 12 hours while slowly counting up to 63 before dying. nForce 4 from the onboard nve in the Shuttle SN25P small form factor PC. If you need anything else just let me know. Thanks for trying! --Alan --- Maxime Henrion wrote: > Hi, > > > > If any of you are using an nve(4) card and are > experiencing "device > timeout" errors, I'd like you to test a very simple > patch. One person > already reported success with it, but I'd like to > see more reports > before committing and hopefully MFC'ing it in time > for 6.0-RELEASE. > > This patch just reduces the size of the TX ring by > one. Many NIC chips > in existence today have such bugs and require > similar fixes, so I'm not > really surprised. It also seems Linux's forcedeth > driver does such a > thing, but it's hard to tell because it uses an > entirely different API > than us. > > Thanks, > Maxime > > ? nve.patch > Index: if_nvereg.h > =================================================================== > RCS file: /home/ncvs/src/sys/dev/nve/if_nvereg.h,v > retrieving revision 1.3 > diff -u -r1.3 if_nvereg.h > --- if_nvereg.h 10 Jun 2005 16:49:12 -0000 1.3 > +++ if_nvereg.h 12 Sep 2005 17:21:21 -0000 > @@ -49,9 +49,9 @@ > > #define NV_RID 0x10 > > -#define TX_RING_SIZE 64 > +#define TX_RING_SIZE 63 > #define RX_RING_SIZE 64 > -#define NV_MAX_FRAGS 63 > +#define NV_MAX_FRAGS 62 > > #define FCS_LEN 4 > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com