Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/external/bsd/drm2/dist/drm/i915 Pull up following rev...



details:   https://anonhg.NetBSD.org/src/rev/fcebde2a32aa
branches:  netbsd-8
changeset: 374118:fcebde2a32aa
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Apr 01 15:40:49 2023 +0000

description:
Pull up following revision(s) (requested by riastradh in ticket #1813):

        sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c: revision 1.9

Lock around use of irq_queue.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 593d7a4874a3 -r fcebde2a32aa sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c      Sat Apr 01 15:28:20 2023 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c      Sat Apr 01 15:40:49 2023 +0000
@@ -824,8 +824,10 @@ static void i915_record_ring_state(struc
        }
 
 #ifdef __NetBSD__
+       spin_lock(&dev_priv->irq_lock);
        ering->waiting = DRM_SPIN_WAITERS_P(&ring->irq_queue,
            &dev_priv->irq_lock);
+       spin_unlock(&dev_priv->irq_lock);
 #else
        ering->waiting = waitqueue_active(&ring->irq_queue);
 #endif



Home | Main Index | Thread Index | Old Index