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:
2e8f9d3
)
drm/i915: Wait for reset to complete before returning from debugfs/i915_wedged
author
Chris Wilson
<
[email protected]
>
Thu, 16 Mar 2017 17:13:05 +0000
(17:13 +0000)
committer
Chris Wilson
<
[email protected]
>
Thu, 16 Mar 2017 17:17:15 +0000
(17:17 +0000)
Provide some serialisation between user operations by waiting for the
reset initiated by setting i915_wedged to complete.
The automatic wait here makes
echo 1 > i915_wedged; cat i915_error_state
do the right thing, and not risk reporting "No error collected".
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Tvrtko Ursulin <
[email protected]
>
Cc: Mika Kuoppala <
[email protected]
>
Reviewed-by: Mika Kuoppala <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/i915_debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_debugfs.c
b/drivers/gpu/drm/i915/i915_debugfs.c
index d62cf2e51d1258b4d16759cc96ffcab805434327..aea51fb3851001fa1a0684abe5bd32a898779f07 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_debugfs.c
+++ b/
drivers/gpu/drm/i915/i915_debugfs.c
@@
-4135,6
+4135,10
@@
i915_wedged_set(void *data, u64 val)
i915_handle_error(dev_priv, val,
"Manually setting wedged to %llu", val);
+ wait_on_bit(&dev_priv->gpu_error.flags,
+ I915_RESET_HANDOFF,
+ TASK_UNINTERRUPTIBLE);
+
return 0;
}