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/gem i915: Destroy locks ...



details:   https://anonhg.NetBSD.org/src/rev/c3dbe16088ff
branches:  trunk
changeset: 1028768:c3dbe16088ff
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:58:57 2021 +0000

description:
i915: Destroy locks when done.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_object.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 8d7a7980d48e -r c3dbe16088ff sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_object.c
--- a/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_object.c Sun Dec 19 11:58:49 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_object.c Sun Dec 19 11:58:57 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gem_object.c,v 1.7 2021/12/19 11:58:50 riastradh Exp $    */
+/*     $NetBSD: i915_gem_object.c,v 1.8 2021/12/19 11:58:57 riastradh Exp $    */
 
 /*
  * Copyright © 2017 Intel Corporation
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gem_object.c,v 1.7 2021/12/19 11:58:50 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gem_object.c,v 1.8 2021/12/19 11:58:57 riastradh Exp $");
 
 #include <linux/bitmap.h>
 #include <linux/sched/mm.h>
@@ -177,6 +177,11 @@
                container_of(head, typeof(*obj), rcu);
        struct drm_i915_private *i915 = to_i915(obj->base.dev);
 
+       /* i915_gem_object_init */
+       spin_lock_destroy(&obj->mmo.lock);
+       spin_lock_destroy(&obj->vma.lock);
+       mutex_destroy(&obj->mm.lock);
+
        dma_resv_fini(&obj->base._resv);
        drm_vma_node_destroy(&obj->base.vma_node);
        i915_gem_object_free(obj);



Home | Main Index | Thread Index | Old Index