summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-04-18 04:18:36 +0000
committerderaadt <deraadt@openbsd.org>2011-04-18 04:18:36 +0000
commit91aa890b0b5e7e6ba433b299d007926acc454200 (patch)
treebbb9db2d1937fae52c52963b52baa8f298634163
parentkeep an eye out for wdc registers returning 0xff. if they return 0xff, (diff)
downloadwireguard-openbsd-91aa890b0b5e7e6ba433b299d007926acc454200.tar.xz
wireguard-openbsd-91aa890b0b5e7e6ba433b299d007926acc454200.zip
since the pciide driver's interrupt handler can return -1 during hotplug
eject events, then the ppb's interrupt handler can be run at IPL_BIO. This makes a huge difference on modern server with mpi/bge/bnx. In snapshots for about 2 weeks now...
-rw-r--r--sys/dev/pci/ppb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ppb.c b/sys/dev/pci/ppb.c
index 9524bc80fad..2009fd7dfd8 100644
--- a/sys/dev/pci/ppb.c
+++ b/sys/dev/pci/ppb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ppb.c,v 1.47 2010/12/30 00:58:22 kettenis Exp $ */
+/* $OpenBSD: ppb.c,v 1.48 2011/04/18 04:18:36 deraadt Exp $ */
/* $NetBSD: ppb.c,v 1.16 1997/06/06 23:48:05 thorpej Exp $ */
/*
@@ -170,7 +170,7 @@ ppbattach(struct device *parent, struct device *self, void *aux)
if (pci_get_capability(pc, pa->pa_tag, PCI_CAP_PCIEXPRESS,
&sc->sc_cap_off, &reg) && (reg & PCI_PCIE_XCAP_SI)) {
if (pci_intr_map(pa, &ih) == 0)
- sc->sc_intrhand = pci_intr_establish(pc, ih, IPL_TTY,
+ sc->sc_intrhand = pci_intr_establish(pc, ih, IPL_BIO,
ppb_intr, sc, self->dv_xname);
if (sc->sc_intrhand) {