Module Name: src
Committed By: riastradh
Date: Fri Oct 28 21:58:48 UTC 2022
Modified Files:
src/sys/external/bsd/drm2/pci: drm_pci.c
Log Message:
drm(4): Mark PCI interrupt handlers as MP-safe.
To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/external/bsd/drm2/pci/drm_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/external/bsd/drm2/pci/drm_pci.c
diff -u src/sys/external/bsd/drm2/pci/drm_pci.c:1.47 src/sys/external/bsd/drm2/pci/drm_pci.c:1.48
--- src/sys/external/bsd/drm2/pci/drm_pci.c:1.47 Sun Dec 19 11:54:32 2021
+++ src/sys/external/bsd/drm2/pci/drm_pci.c Fri Oct 28 21:58:48 2022
@@ -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 @@ drm_pci_request_irq(struct drm_device *d
}
}
+ 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,