Date: Wed, 29 Oct 2003 11:52:48 -0700 From: Sam Leffler <sam@errno.com> To: freebsd-current@freebsd.org Subject: HEADSUP: MPSAFE network drivers Message-ID: <200310291052.48617.sam@errno.com>
next in thread | raw e-mail | index | archive | help
--Boundary-00=_AyAo/kqb8UNCJFK
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
I'm committing changes to mark various network drivers' interrupt handlers
MPSAFE. To insure folks have a way to backout if they hit problems I've also
added a tunable that lets you disable this w/o rebuilding your kernel. By
default all network drivers that register an interrupt handler INTR_MPSAFE
are setup to run their ISR w/o Giant. If you want to defeat this w/o
changing the code you can set
debug.mpsafenet=0
from the loader when booting and the MPSAFE bit will automatically be removed.
I plan to use this to also control forthcoming changes for registering MPSAFE
netisrs.
The following drivers are marked MPSAFE:
ath, em, ep, fxp, sn, wi, sis
I've got changes coming for bge. Other drivers probably can be marked MPSAFE
but I'm only doing it for those drivers that I can test.
Sam
--Boundary-00=_AyAo/kqb8UNCJFK
Content-Type: message/rfc822;
name="forwarded message"
Content-Transfer-Encoding: 7bit
Content-Description: Sam Leffler <sam@FreeBSD.org>: cvs commit: src/sys/kern
subr_bus.c
Return-Path: <sam@ebb.errno.com>
X-Sieve: cmu-sieve 2.0
Return-Path: <owner-src-committers@FreeBSD.org>
Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119])
by ebb.errno.com (8.12.9/8.12.9) with ESMTP id h9TIUR0w041672
for <sam@errno.com>; Wed, 29 Oct 2003 10:30:27 -0800 (PST)
(envelope-from owner-src-committers@FreeBSD.org)
Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18])
by mx2.freebsd.org (Postfix) with ESMTP id 13165565AF
for <sam@errno.com>; Wed, 29 Oct 2003 10:30:27 -0800 (PST)
(envelope-from owner-src-committers@FreeBSD.org)
Received: by hub.freebsd.org (Postfix)
id 8CA1816A543; Wed, 29 Oct 2003 10:30:23 -0800 (PST)
Delivered-To: sam@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 538)
id 55E9716A4D0; Wed, 29 Oct 2003 10:30:22 -0800 (PST)
Delivered-To: src-committers@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
by hub.freebsd.org (Postfix) with ESMTP
id A6BAE16A4CE; Wed, 29 Oct 2003 10:29:51 -0800 (PST)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
by mx1.FreeBSD.org (Postfix) with ESMTP
id 28FD343FCB; Wed, 29 Oct 2003 10:29:51 -0800 (PST)
(envelope-from sam@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9TIToXJ040695;
Wed, 29 Oct 2003 10:29:51 -0800 (PST)
(envelope-from sam@repoman.freebsd.org)
Received: (from sam@localhost)
by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9TIToUA040694;
Wed, 29 Oct 2003 10:29:50 -0800 (PST)
(envelope-from sam)
Message-Id: <200310291829.h9TIToUA040694@repoman.freebsd.org>
From: Sam Leffler <sam@FreeBSD.org>
Date: Wed, 29 Oct 2003 10:29:50 -0800 (PST)
To: src-committers@FreeBSD.org,
cvs-src@FreeBSD.org,
cvs-all@FreeBSD.org
Subject: cvs commit: src/sys/kern subr_bus.c
X-FreeBSD-CVS-Branch: HEAD
Sender: owner-src-committers@FreeBSD.org
Precedence: bulk
X-Loop: FreeBSD.ORG
Content-Type:
X-UID: 15893
sam 2003/10/29 10:29:50 PST
FreeBSD src repository
Modified files:
sys/kern subr_bus.c
Log:
Add a temporary mechanism to disble INTR_MPSAFE from network interface
drivers. This is prepatory to running more parts of the network system
w/o Giant.
Revision Changes Path
1.135 +13 -0 src/sys/kern/subr_bus.c
http://cvsweb.FreeBSD.org/src/sys/kern/subr_bus.c.diff?r1=1.134&r2=1.135
--Boundary-00=_AyAo/kqb8UNCJFK--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310291052.48617.sam>
