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 i915: Add waiter to list...
details: https://anonhg.NetBSD.org/src/rev/82f35e77408b
branches: trunk
changeset: 1028744:82f35e77408b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:54:57 2021 +0000
description:
i915: Add waiter to list so we will actually get woken!
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_sw_fence.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 386efab8bb3d -r 82f35e77408b sys/external/bsd/drm2/dist/drm/i915/i915_sw_fence.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_sw_fence.c Sun Dec 19 11:54:48 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_sw_fence.c Sun Dec 19 11:54:57 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_sw_fence.c,v 1.3 2021/12/19 11:36:08 riastradh Exp $ */
+/* $NetBSD: i915_sw_fence.c,v 1.4 2021/12/19 11:54:57 riastradh Exp $ */
/*
* SPDX-License-Identifier: MIT
@@ -7,7 +7,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_sw_fence.c,v 1.3 2021/12/19 11:36:08 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_sw_fence.c,v 1.4 2021/12/19 11:54:57 riastradh Exp $");
#include <linux/slab.h>
#include <linux/dma-fence.h>
@@ -184,7 +184,6 @@
struct i915_sw_fence_wq sfw;
int ret;
- INIT_LIST_HEAD(&waiter.entry);
waiter.flags = 0;
waiter.func = autoremove_wake_function;
waiter.private = &sfw;
@@ -193,6 +192,7 @@
DRM_INIT_WAITQUEUE(&sfw.wq, "i915swf");
spin_lock(&fence->wait.lock);
+ list_add_tail(&waiter.entry, &fence->wait.head);
DRM_SPIN_WAIT_NOINTR_UNTIL(ret, &sfw.wq, &fence->wait.lock,
i915_sw_fence_done(fence));
spin_unlock(&fence->wait.lock);
Home |
Main Index |
Thread Index |
Old Index