Re: de0 doze off

From: Robert Watson <rwatson_at_freebsd.org>
Date: Fri, 17 Sep 2004 14:42:39 -0400 (EDT)
On Fri, 17 Sep 2004, Raphael H. Becker wrote:

> > 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?

"options PREEMPTION" may appear in your kernel configuration file -- if it
does, comment it out and re-config/re-compile.

> > 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;

Looks good.  This may result in reduced stability, but it may also tell us
specifically if there's a problem with the IFF_NEEDSGIANT mechanism.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert_at_fledge.watson.org      Principal Research Scientist, McAfee Research
Received on Fri Sep 17 2004 - 16:43:06 UTC

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