From owner-freebsd-hardware@FreeBSD.ORG Wed Jul 19 06:25:29 2006 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7917016A4DA; Wed, 19 Jul 2006 06:25:29 +0000 (UTC) (envelope-from ps@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AF8B43D4C; Wed, 19 Jul 2006 06:25:29 +0000 (GMT) (envelope-from ps@freebsd.org) Received: from [192.168.1.88] (64-142-76-135.dsl.static.sonic.net [64.142.76.135]) by elvis.mu.org (Postfix) with ESMTP id 0B25C1A3C1E; Tue, 18 Jul 2006 23:25:29 -0700 (PDT) Message-ID: <44BDD058.5030607@freebsd.org> Date: Tue, 18 Jul 2006 23:25:28 -0700 From: Paul Saab User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060530) MIME-Version: 1.0 To: John Baldwin References: <1152697468.31818.15.camel@olipc.insign.local> <1153221904.23956.25.camel@olipc.insign.local> <200607181500.21683.jhb@freebsd.org> In-Reply-To: <200607181500.21683.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: David Christensen , Olivier Mueller , freebsd-hardware@freebsd.org Subject: Re: dell poweredge 1950 : not rebooting under 6.1 (sometimes) + bce0 issues X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 06:25:29 -0000 revision 1.4 needs to be MFC'd John Baldwin wrote: > On Tuesday 18 July 2006 07:25, Olivier Mueller wrote: > >> On Wed, 2006-07-12 at 11:44 +0200, Olivier Mueller wrote: >> >>> Any guess about what I should try? I recompiled the kernel >>> with & without apci support or some different options, but it didn't >>> helped yet. >>> >> Another problem: I wanted to transfer large amount of data (10GB) using >> rsync via the network, and just after 60MB, the network card won't >> answser anymore, and here is what is displayed in dmesg: >> >> bce0: /usr/src/sys/dev/bce/if_bce.c(4644): Error mapping mbuf into TX >> chain! >> bce0: /usr/src/sys/dev/bce/if_bce.c(4644): Error mapping mbuf into TX >> chain! >> bce0: /usr/src/sys/dev/bce/if_bce.c(4644): Error mapping mbuf into TX >> chain! >> [...] >> > > This sounds like it is out of tx descriptors. Do you ever get a watchdog > timeout message? If not, can you try this patch: > > Index: if_bce.c > =================================================================== > RCS file: /usr/cvs/src/sys/dev/bce/if_bce.c,v > retrieving revision 1.5 > diff -u -r1.5 if_bce.c > --- if_bce.c 12 Jul 2006 23:13:09 -0000 1.5 > +++ if_bce.c 18 Jul 2006 18:59:45 -0000 > @@ -4391,6 +4391,9 @@ > DBRUNIF(1, sc->tx_mbuf_alloc--); > > ifp->if_opackets++; > + > + /* Clear the TX timeout timer. */ > + ifp->if_timer = 0; > } > > sc->used_tx_bd--; > @@ -4406,9 +4409,6 @@ > BUS_SPACE_BARRIER_READ); > } > > - /* Clear the TX timeout timer. */ > - ifp->if_timer = 0; > - > /* Clear the tx hardware queue full flag. */ > if ((sc->used_tx_bd + BCE_TX_SLACK_SPACE) < USABLE_TX_BD) { > DBRUNIF((ifp->if_drv_flags & IFF_DRV_OACTIVE), > @@ -5031,10 +5031,12 @@ > > /* DBRUN(BCE_FATAL, bce_breakpoint(sc)); */ > > + BCE_LOCK(sc); > ifp->if_drv_flags &= ~IFF_DRV_RUNNING; > > - bce_init(sc); > + bce_init_locked(sc); > ifp->if_oerrors++; > + BCE_UNLOCK(sc); > > } > > >