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/dist/drm/i915 We don't deal in waitque...



details:   https://anonhg.NetBSD.org/src/rev/601923d1a986
branches:  trunk
changeset: 992659:601923d1a986
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:24:25 2018 +0000

description:
We don't deal in waitqueues.  We only deal in DRM_WAITQUEUEs.

diffstat:

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

diffs (41 lines):

diff -r 98c29a62ec63 -r 601923d1a986 sys/external/bsd/drm2/dist/drm/i915/intel_lrc.c
--- a/sys/external/bsd/drm2/dist/drm/i915/intel_lrc.c   Mon Aug 27 07:24:12 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/intel_lrc.c   Mon Aug 27 07:24:25 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intel_lrc.c,v 1.5 2018/08/27 07:24:12 riastradh Exp $  */
+/*     $NetBSD: intel_lrc.c,v 1.6 2018/08/27 07:24:25 riastradh Exp $  */
 
 /*
  * Copyright © 2014 Intel Corporation
@@ -135,7 +135,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intel_lrc.c,v 1.5 2018/08/27 07:24:12 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_lrc.c,v 1.6 2018/08/27 07:24:25 riastradh Exp $");
 
 #include <drm/drmP.h>
 #include <drm/i915_drm.h>
@@ -1928,6 +1928,10 @@
        }
 
        lrc_destroy_wa_ctx_obj(ring);
+
+#ifdef __NetBSD__
+       DRM_DESTROY_WAITQUEUE(&ring->irq_queue);
+#endif
 }
 
 static int logical_ring_init(struct drm_device *dev, struct intel_engine_cs *ring)
@@ -1941,7 +1945,11 @@
        INIT_LIST_HEAD(&ring->active_list);
        INIT_LIST_HEAD(&ring->request_list);
        i915_gem_batch_pool_init(dev, &ring->batch_pool);
+#ifdef __NetBSD__
+       DRM_INIT_WAITQUEUE(&ring->irq_queue, "i915lrc");
+#else
        init_waitqueue_head(&ring->irq_queue);
+#endif
 
        INIT_LIST_HEAD(&ring->execlist_queue);
        INIT_LIST_HEAD(&ring->execlist_retired_req_list);



Home | Main Index | Thread Index | Old Index