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/include/drm drm: Set IPL_DRM to IPL_VM...



details:   https://anonhg.NetBSD.org/src/rev/d7647e9f1afb
branches:  trunk
changeset: 1028840:d7647e9f1afb
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:10:58 2021 +0000

description:
drm: Set IPL_DRM to IPL_VM, not IPL_TTY.

We might want some of this stuff to work at higher IPL when dealing
with ddb during crashes, but...everything else in drm uses IPL_VM,
including Linux spin locks, which means we've been failing to block
interrupts during spin locks for the entire time this code has
existed...which is a little embarrassing.

diffstat:

 sys/external/bsd/drm2/include/drm/drm_irq_netbsd.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r f9bf9c278c9a -r d7647e9f1afb sys/external/bsd/drm2/include/drm/drm_irq_netbsd.h
--- a/sys/external/bsd/drm2/include/drm/drm_irq_netbsd.h        Sun Dec 19 12:10:51 2021 +0000
+++ b/sys/external/bsd/drm2/include/drm/drm_irq_netbsd.h        Sun Dec 19 12:10:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_irq_netbsd.h,v 1.5 2018/08/27 06:16:01 riastradh Exp $     */
+/*     $NetBSD: drm_irq_netbsd.h,v 1.6 2021/12/19 12:10:58 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -43,6 +43,6 @@
 
 #define        IRQF_SHARED     0       /* XXX */
 
-#define        IPL_DRM         IPL_TTY /* XXX */
+#define        IPL_DRM         IPL_VM  /* XXX */
 
 #endif  /* _DRM_DRM_IRQ_NETBSD_H_ */



Home | Main Index | Thread Index | Old Index