Re: HEADSUP: MPSAFE network drivers
From: Sam Leffler (sam_at_errno.com)
Date: 10/30/03
- Previous message: Jan.Stary_at_ff.cuni.cz: "'/etc/rc.d/pccard restart' starts a second one"
- In reply to: Pawel Jakub Dawidek: "Re: HEADSUP: MPSAFE network drivers"
- Next in thread: David O'Brien: "Re: HEADSUP: MPSAFE network drivers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Pawel Jakub Dawidek <nick@garage.freebsd.pl> Date: Thu, 30 Oct 2003 08:01:23 -0800
On Thursday 30 October 2003 01:22 am, Pawel Jakub Dawidek wrote:
> On Wed, Oct 29, 2003 at 11:52:48AM -0700, Sam Leffler wrote:
> +> 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.
>
> Because there is so many drivers, maybe you could prepare some regression
> tests designed to check changed things. This will allow people to test your
> changes - it is not very easy now if we don't know what we're looking for
> exactly PLUS those drivers aren't marked MPSAFE by default.
Unfortunately there is no easy way to decide if the locking in a driver is
correct; otherwise I'd simply test them and not provide a fallback as a I
did. Before I commit any driver I run with it for at least a few weeks (in
some cases months) on a variety of machines (workstation, server, laptop,
firewall). If there are no problems then I commit the change. The driver
changes I committed yesterday I've been running for >4 months. Likewise, the
next round of locking changes to push Giant up have been running for ~2
months.
Otherwise the main safeguard I use are numerous assertions to validate
assumptions.
Sam
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
- Previous message: Jan.Stary_at_ff.cuni.cz: "'/etc/rc.d/pccard restart' starts a second one"
- In reply to: Pawel Jakub Dawidek: "Re: HEADSUP: MPSAFE network drivers"
- Next in thread: David O'Brien: "Re: HEADSUP: MPSAFE network drivers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- [GIT PATCH] ACPI patches for 2.6.21 - part II (resend)
... Adds the sony-laptop driver, which controls brightness on akpm's vaio... ...
Adds the ACPI support needed by the upcoming rtc driver ... ACPI: bay: fix wrong
order of kzalloc arguments ... commit 255f0385c8e0d6b9005c0e09fffb5bd852f3b506 ...
(Linux-Kernel) - cvs-src summary for 04/04/2004
... You can get old summaries, and an HTML version of this one, at ... Vinod Hashyap
added a driver for `3ware's 9000 series`_ ... depending on which branch the commit
is being made to. ... this same change means that USB keyboards will not be ...
(freebsd-current) - cvs-src summary for 07/03/04
... Ruslan Ermilov committed a new Netgraph node type to support 802.1q ... Nate
Lawson committed the ACPI standard video extensions driver, ... noting that the commit
would "Fix tinderbox builds". ... (freebsd-current) - Re: Kconfig warnings on latest GIT
... commit 7d776cb596994219584257eb5956b87628e5deaf ... etc. There's a QE library
and a bunch of other support code in the ... Kconfig option, like UCC_FAST_TEMP
in the driver's Kconfig. ... The dillema is that there is no single device driver class
that depends on ... (Linux-Kernel) - RE: audigy 2
... I'd really like to see Audigy support in the tree. ... > People create patches
all the time and maintain them ... My PCM-only driver is commitable. ... and do
it, and when you are happy with the result, I'll do the commit. ... (freebsd-current)