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/gt i915: Destroy gen8 pp...



details:   https://anonhg.NetBSD.org/src/rev/33fe9e7ea535
branches:  trunk
changeset: 1028855:33fe9e7ea535
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:13:01 2021 +0000

description:
i915: Destroy gen8 ppgtt page directory spin lock.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/gt/gen8_ppgtt.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 8cc246dbdffe -r 33fe9e7ea535 sys/external/bsd/drm2/dist/drm/i915/gt/gen8_ppgtt.c
--- a/sys/external/bsd/drm2/dist/drm/i915/gt/gen8_ppgtt.c       Sun Dec 19 12:12:54 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gt/gen8_ppgtt.c       Sun Dec 19 12:13:01 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gen8_ppgtt.c,v 1.9 2021/12/19 12:12:54 riastradh Exp $ */
+/*     $NetBSD: gen8_ppgtt.c,v 1.10 2021/12/19 12:13:01 riastradh Exp $        */
 
 // SPDX-License-Identifier: MIT
 /*
@@ -6,7 +6,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gen8_ppgtt.c,v 1.9 2021/12/19 12:12:54 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gen8_ppgtt.c,v 1.10 2021/12/19 12:13:01 riastradh Exp $");
 
 #include <linux/log2.h>
 
@@ -228,8 +228,11 @@
                        start += count;
                }
 
-               if (release_pd_entry(pd, idx, pt, scratch))
+               if (release_pd_entry(pd, idx, pt, scratch)) {
+                       if (lvl)
+                               spin_lock_destroy(&as_pd(pt)->lock);
                        free_px(vm, pt);
+               }
        } while (idx++, --len);
 
        return start;



Home | Main Index | Thread Index | Old Index