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 only sp...



details:   https://anonhg.NetBSD.org/src/rev/337db75152fd
branches:  trunk
changeset: 1028847:337db75152fd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:12:00 2021 +0000

description:
i915: Destroy only spin locks we created in gen8 ppgtt.

diffstat:

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

diffs (29 lines):

diff -r bf7ff93dacbf -r 337db75152fd 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:11:46 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gt/gen8_ppgtt.c       Sun Dec 19 12:12:00 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gen8_ppgtt.c,v 1.7 2021/12/19 12:07:47 riastradh Exp $ */
+/*     $NetBSD: gen8_ppgtt.c,v 1.8 2021/12/19 12:12:00 riastradh Exp $ */
 
 // SPDX-License-Identifier: MIT
 /*
@@ -6,7 +6,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gen8_ppgtt.c,v 1.7 2021/12/19 12:07:47 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gen8_ppgtt.c,v 1.8 2021/12/19 12:12:00 riastradh Exp $");
 
 #include <linux/log2.h>
 
@@ -159,9 +159,9 @@
 
                        __gen8_ppgtt_cleanup(vm, *pde, GEN8_PDES, lvl - 1);
                } while (pde++, --count);
+               spin_lock_destroy(&pd->lock);
        }
 
-       spin_lock_destroy(&pd->lock);
        free_px(vm, pd);
 }
 



Home | Main Index | Thread Index | Old Index