From owner-freebsd-hardware@FreeBSD.ORG Tue Jul 18 19:00:37 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 B701616A4DD for ; Tue, 18 Jul 2006 19:00:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3FE543D55 for ; Tue, 18 Jul 2006 19:00:36 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6IJ0TOn055606; Tue, 18 Jul 2006 15:00:33 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hardware@freebsd.org Date: Tue, 18 Jul 2006 15:00:21 -0400 User-Agent: KMail/1.9.1 References: <1152697468.31818.15.camel@olipc.insign.local> <1153221904.23956.25.camel@olipc.insign.local> In-Reply-To: <1153221904.23956.25.camel@olipc.insign.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607181500.21683.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 18 Jul 2006 15:00:35 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1604/Tue Jul 18 11:41:03 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Olivier Mueller 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: Tue, 18 Jul 2006 19:00:37 -0000 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); } -- John Baldwin