Module Name: src Committed By: riastradh Date: Fri Oct 28 21:57:58 UTC 2022
Modified Files: src/sys/dev/pci: xhci_pci.c Log Message: xhci(4): Mark PCI interrupt handler MP-safe. xhci_intr has its own intr lock to coordinate with the MP-safe softint it defers all its work to, other than reading and writing a few registers to get and acknowledge the interrupt status. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/dev/pci/xhci_pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/xhci_pci.c diff -u src/sys/dev/pci/xhci_pci.c:1.31 src/sys/dev/pci/xhci_pci.c:1.32 --- src/sys/dev/pci/xhci_pci.c:1.31 Tue Oct 11 09:18:22 2022 +++ src/sys/dev/pci/xhci_pci.c Fri Oct 28 21:57:58 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: xhci_pci.c,v 1.31 2022/10/11 09:18:22 msaitoh Exp $ */ +/* $NetBSD: xhci_pci.c,v 1.32 2022/10/28 21:57:58 riastradh Exp $ */ /* OpenBSD: xhci_pci.c,v 1.4 2014/07/12 17:38:51 yuo Exp */ /* @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: xhci_pci.c,v 1.31 2022/10/11 09:18:22 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xhci_pci.c,v 1.32 2022/10/28 21:57:58 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_xhci_pci.h" @@ -229,6 +229,7 @@ xhci_pci_attach(device_t parent, device_ } intrstr = pci_intr_string(pc, psc->sc_pihp[0], intrbuf, sizeof(intrbuf)); + pci_intr_setattr(pa->pa_pc, &psc->sc_pihp[0], PCI_INTR_MPSAFE, true); psc->sc_ih = pci_intr_establish_xname(pc, psc->sc_pihp[0], IPL_USB, xhci_intr, sc, device_xname(sc->sc_dev)); if (psc->sc_ih == NULL) {