projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c03467b
)
drm/i915: Markup potential lock for i915_active
author
Chris Wilson
<chris@chris-wilson.co.uk>
Wed, 3 Jul 2019 09:17:18 +0000
(10:17 +0100)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Wed, 3 Jul 2019 11:23:56 +0000
(12:23 +0100)
Make the lockchains more deterministic via i915_active by flagging the
potential lock.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20190703091726.11690-7-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_active.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_active.c
b/drivers/gpu/drm/i915/i915_active.c
index 584b247df9bce9762a506ea9dfe07cafe50b5a42..13f304a29fc836dde7b7da1bf4b86d01d57630f4 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_active.c
+++ b/
drivers/gpu/drm/i915/i915_active.c
@@
-268,6
+268,8
@@
int i915_active_wait(struct i915_active *ref)
int err;
might_sleep();
+ might_lock(&ref->mutex);
+
if (RB_EMPTY_ROOT(&ref->tree))
return 0;