Re: de0 doze off

From: Raphael H. Becker <rabe_at_p-i-n.com>
Date: Fri, 17 Sep 2004 20:38:51 +0200
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
_at__at_ -4758,7 +4758,7 _at__at_
     /* 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
Received on Fri Sep 17 2004 - 16:38:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:12 UTC