em and bge driver MPSAFE?

Sergey N. Voronkov serg at tmn.ru
Mon May 23 20:55:42 PDT 2005


On Sat, May 21, 2005 at 11:53:26PM -0700, John-Mark Gurney wrote:
> Mipam wrote this message on Wed, May 11, 2005 at 16:39 +0200:
> > Perhaps lame to ask,
> > But are the em and bge driver MPSAFE?
> > I couldn't find notes about being mpsafe in the man pages of these 
> > drivers?
> 
> I was about to point you to:
> http://www.freebsd.org/projects/busdma/
> 
> But realized that you probably wanted status on 5.x, and not HEAD...
> 
> a quick look at the code shows that both em and bge are MPSAFE... I
> can tell because of no references to Giant or GIANT, and that it using
> XX_LOCK and has functions ending in _locked in them...
> 
> Maybe we need to expand the busdma project to include which driver
> status for 5.x and HEAD?

Probably You are wrong at least about em driver: it steel makes page faults
in kernel mode on my Dual Xeon machine. :-(

"debug.mpsafenet=0" fix this issue completely.

Serg N. Voronkov,
Sibitex JSC.

P.S.: Server is under moderate load and is very important to keep it as
stable as possible, so I can't provide a dump, sorry.


More information about the freebsd-stable mailing list