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/radeon radeon: Fix missing un...
details: https://anonhg.NetBSD.org/src/rev/f1f1a85224f3
branches: trunk
changeset: 1028478:f1f1a85224f3
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:08:25 2021 +0000
description:
radeon: Fix missing unlocks in radeon fence.
diffstat:
sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 60963a901600 -r f1f1a85224f3 sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c Sun Dec 19 11:08:17 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_fence.c Sun Dec 19 11:08:25 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radeon_fence.c,v 1.20 2021/12/19 11:08:17 riastradh Exp $ */
+/* $NetBSD: radeon_fence.c,v 1.21 2021/12/19 11:08:25 riastradh Exp $ */
/*
* Copyright 2009 Jerome Glisse.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_fence.c,v 1.20 2021/12/19 11:08:17 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_fence.c,v 1.21 2021/12/19 11:08:25 riastradh Exp $");
#include <linux/atomic.h>
#include <linux/firmware.h>
@@ -326,6 +326,9 @@
if (!down_read_trylock(&rdev->exclusive_lock)) {
/* just reschedule the check if a reset is going on */
radeon_fence_schedule_check(rdev, ring);
+#ifdef __NetBSD__
+ spin_unlock(&rdev->fence_lock);
+#endif
return;
}
@@ -524,6 +527,7 @@
ret = dma_fence_signal_locked(&fence->base);
if (!ret)
DMA_FENCE_TRACE(&fence->base, "signaled from radeon_fence_signaled\n");
+ spin_unlock(&fence->rdev->fence_lock);
return true;
}
spin_unlock(&fence->rdev->fence_lock);
Home |
Main Index |
Thread Index |
Old Index