OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb6d7c7
)
drm/i915/selftests: Fill in a little more of the dummy fence
author
Chris Wilson
<chris@chris-wilson.co.uk>
Mon, 8 Jul 2019 11:30:38 +0000
(12:30 +0100)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Tue, 9 Jul 2019 07:34:22 +0000
(08:34 +0100)
Initialise the dma_fence innards in preparation for making
dma_fence_signal() always check the callback list.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20190708113038.19251-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gt/selftest_lrc.c
b/drivers/gpu/drm/i915/gt/selftest_lrc.c
index
11f4905
..
672bdaa
100644
(file)
--- a/
drivers/gpu/drm/i915/gt/selftest_lrc.c
+++ b/
drivers/gpu/drm/i915/gt/selftest_lrc.c
@@
-859,6
+859,10
@@
static struct i915_request *dummy_request(struct intel_engine_cs *engine)
i915_sw_fence_init(&rq->submit, dummy_notify);
set_bit(I915_FENCE_FLAG_ACTIVE, &rq->fence.flags);
+ spin_lock_init(&rq->lock);
+ rq->fence.lock = &rq->lock;
+ INIT_LIST_HEAD(&rq->fence.cb_list);
+
return rq;
}