Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/pci drm(4): Mark PCI interrupt handler...



details:   https://anonhg.NetBSD.org/src/rev/4d048901a74f
branches:  trunk
changeset: 372150:4d048901a74f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Oct 28 21:58:48 2022 +0000

description:
drm(4): Mark PCI interrupt handlers as MP-safe.

diffstat:

 sys/external/bsd/drm2/pci/drm_pci.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 7b9cd10feee5 -r 4d048901a74f sys/external/bsd/drm2/pci/drm_pci.c
--- a/sys/external/bsd/drm2/pci/drm_pci.c       Fri Oct 28 21:58:27 2022 +0000
+++ b/sys/external/bsd/drm2/pci/drm_pci.c       Fri Oct 28 21:58:48 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_pci.c,v 1.47 2021/12/19 11:54:32 riastradh Exp $   */
+/*     $NetBSD: drm_pci.c,v 1.48 2022/10/28 21:58:48 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.47 2021/12/19 11:54:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.48 2022/10/28 21:58:48 riastradh Exp $");
 
 #include <sys/types.h>
 #include <sys/errno.h>
@@ -188,6 +188,8 @@
                }
        }
 
+       pci_intr_setattr(pa->pa_pc, &irq_cookie->intr_handles[0],
+           PCI_INTR_MPSAFE, true);
        intrstr = pci_intr_string(pa->pa_pc, irq_cookie->intr_handles[0],
            intrbuf, sizeof(intrbuf));
        irq_cookie->ih_cookie = pci_intr_establish_xname(pa->pa_pc,



Home | Main Index | Thread Index | Old Index