Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Interrupt handlers aren't MP-safe yet so use IPL...
details: https://anonhg.NetBSD.org/src/rev/0620483d2dc2
branches: trunk
changeset: 339985:0620483d2dc2
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Aug 19 06:16:18 2015 +0000
description:
Interrupt handlers aren't MP-safe yet so use IPL_USB which is IPL_VM
which takes the kernel lock.
diffstat:
sys/dev/pci/ehci_pci.c | 6 +++---
sys/dev/pci/ohci_pci.c | 6 +++---
sys/dev/pci/uhci_pci.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r 6ca952588764 -r 0620483d2dc2 sys/dev/pci/ehci_pci.c
--- a/sys/dev/pci/ehci_pci.c Wed Aug 19 05:47:38 2015 +0000
+++ b/sys/dev/pci/ehci_pci.c Wed Aug 19 06:16:18 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci_pci.c,v 1.60 2015/07/15 03:54:53 msaitoh Exp $ */
+/* $NetBSD: ehci_pci.c,v 1.61 2015/08/19 06:16:18 skrll Exp $ */
/*
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.60 2015/07/15 03:54:53 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.61 2015/08/19 06:16:18 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -177,7 +177,7 @@
* Allocate IRQ
*/
intrstr = pci_intr_string(pc, ih, intrbuf, sizeof(intrbuf));
- sc->sc_ih = pci_intr_establish(pc, ih, IPL_SCHED, ehci_intr, sc);
+ sc->sc_ih = pci_intr_establish(pc, ih, IPL_USB, ehci_intr, sc);
if (sc->sc_ih == NULL) {
aprint_error_dev(self, "couldn't establish interrupt");
if (intrstr != NULL)
diff -r 6ca952588764 -r 0620483d2dc2 sys/dev/pci/ohci_pci.c
--- a/sys/dev/pci/ohci_pci.c Wed Aug 19 05:47:38 2015 +0000
+++ b/sys/dev/pci/ohci_pci.c Wed Aug 19 06:16:18 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci_pci.c,v 1.53 2014/09/21 14:30:22 christos Exp $ */
+/* $NetBSD: ohci_pci.c,v 1.54 2015/08/19 06:16:18 skrll Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci_pci.c,v 1.53 2014/09/21 14:30:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci_pci.c,v 1.54 2015/08/19 06:16:18 skrll Exp $");
#include "ehci.h"
@@ -142,7 +142,7 @@
* Allocate IRQ
*/
intrstr = pci_intr_string(pc, ih, intrbuf, sizeof(intrbuf));
- sc->sc_ih = pci_intr_establish(pc, ih, IPL_SCHED, ohci_intr, sc);
+ sc->sc_ih = pci_intr_establish(pc, ih, IPL_USB, ohci_intr, sc);
if (sc->sc_ih == NULL) {
aprint_error_dev(self, "couldn't establish interrupt");
if (intrstr != NULL)
diff -r 6ca952588764 -r 0620483d2dc2 sys/dev/pci/uhci_pci.c
--- a/sys/dev/pci/uhci_pci.c Wed Aug 19 05:47:38 2015 +0000
+++ b/sys/dev/pci/uhci_pci.c Wed Aug 19 06:16:18 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uhci_pci.c,v 1.58 2014/09/21 14:30:22 christos Exp $ */
+/* $NetBSD: uhci_pci.c,v 1.59 2015/08/19 06:16:18 skrll Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci_pci.c,v 1.58 2014/09/21 14:30:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci_pci.c,v 1.59 2015/08/19 06:16:18 skrll Exp $");
#include "ehci.h"
@@ -132,7 +132,7 @@
return;
}
intrstr = pci_intr_string(pc, ih, intrbuf, sizeof(intrbuf));
- sc->sc_ih = pci_intr_establish(pc, ih, IPL_SCHED, uhci_intr, sc);
+ sc->sc_ih = pci_intr_establish(pc, ih, IPL_USB, uhci_intr, sc);
if (sc->sc_ih == NULL) {
aprint_error_dev(self, "couldn't establish interrupt");
if (intrstr != NULL)
Home |
Main Index |
Thread Index |
Old Index