From owner-freebsd-current@FreeBSD.ORG Fri Sep 17 18:38:55 2004 Return-Path: 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 33CFF16A4CE for ; Fri, 17 Sep 2004 18:38:55 +0000 (GMT) Received: from dns.p-i-n.com (dns.p-i-n.com [145.253.185.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FCD843D41 for ; Fri, 17 Sep 2004 18:38:54 +0000 (GMT) (envelope-from rabe@p-i-n.com) Received: from p-i-n.com (inside.p-i-n.com [129.10.9.21]) by dns.p-i-n.com (8.12.9p2/8.12.9) with ESMTP id i8HIcqFx013300 for ; Fri, 17 Sep 2004 20:38:52 +0200 (CEST) (envelope-from rabe@p-i-n.com) Received: (from rabe@localhost) by p-i-n.com (8.11.6/8.11.6) id i8HIcpT20403 for freebsd-current@freebsd.org; Fri, 17 Sep 2004 20:38:51 +0200 (CEST) (envelope-from rabe) Date: Fri, 17 Sep 2004 20:38:51 +0200 From: "Raphael H. Becker" To: freebsd-current@freebsd.org Message-ID: <20040917203851.F55054@p-i-n.com> References: <20040917065926.D55054@p-i-n.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rwatson@freebsd.org on Fri, Sep 17, 2004 at 09:38:46AM -0400 Organization: PHOENIX Pharmahandel AG & Co KG, Mannheim, Deutschland Subject: Re: de0 doze off X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 17 Sep 2004 18:38:55 -0000 On Fri, Sep 17, 2004 at 09:38:46AM -0400, Robert Watson wrote: > On Fri, 17 Sep 2004, Raphael H. Becker wrote: > > on one of my older boxes my D-Link ("tulip") card dozes off when > > transfering some megabytes of data eg scp. > > > > When stalled, the interface can be brought back by "ifconfig down/up". > > > > The box is actually running BETA4/GENERIC from last night, this appeared > > after BETA1 which was the last stable for this. > > If you set debug.mpsafenet=0 in loader.conf, does the problem go away? Yes, just tested with around 300MB via FTP: 10.6MBytes/sec > We might be looking at a race condition in the task queue handoff for > IFF_NEEDSGIANT. > Another possible testing avenue (which might be slightly unstable but > would illustrate the point) would be to leave debug.mpsafenet=1, ok > disable preemption, Sorry, how exactly do I do this? > and remove the IFF_NEEDSGIANT flag from the if_de driver flags. edited as following --- if_de.c.orig Fri Sep 17 18:53:41 2004 +++ if_de.c Fri Sep 17 18:54:00 2004 @@ -4758,7 +4758,7 @@ /* XXX: driver name/unit should be set some other way */ ifp->if_dname = "de"; ifp->if_dunit = sc->tulip_unit; - ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST|IFF_NEEDSGIANT; + ifp->if_flags = IFF_BROADCAST|IFF_SIMPLEX|IFF_MULTICAST; ifp->if_ioctl = tulip_ifioctl; ifp->if_start = tulip_ifstart; ifp->if_watchdog = tulip_ifwatchdog; Regards Raphael Becker