Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 2004 14:42:39 -0400 (EDT)
From:      Robert Watson <rwatson@freebsd.org>
To:        "Raphael H. Becker" <rabe@p-i-n.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: de0 doze off
Message-ID:  <Pine.NEB.3.96L.1040917144129.61165F-100000@fledge.watson.org>
In-Reply-To: <20040917203851.F55054@p-i-n.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> @@ -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;

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@fledge.watson.org      Principal Research Scientist, McAfee Research




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1040917144129.61165F-100000>