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:
d538704
)
drm/i915: Complete pending resets before get-reset-stats ioctl
author
Chris Wilson
<
[email protected]
>
Fri, 13 May 2016 10:57:20 +0000
(11:57 +0100)
committer
Chris Wilson
<
[email protected]
>
Fri, 13 May 2016 11:38:52 +0000
(12:38 +0100)
The get-reset-stats ioctls wasn't waiting for a pending reset before
reporting its statistics, and so was ignoring a hang generated by the
context that should have been reported against said context.
Signed-off-by: Chris Wilson <
[email protected]
>
Tested-by: Mika Kuoppala <
[email protected]
>
Reviewed-by: Mika Kuoppala <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/i915_gem_context.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem_context.c
b/drivers/gpu/drm/i915/i915_gem_context.c
index f3c76ca6b411f18098ca8170281b8fa9251df2a1..2aedd188473dbf1679ff02d9956bd8ffd9f94167 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem_context.c
+++ b/
drivers/gpu/drm/i915/i915_gem_context.c
@@
-1056,7
+1056,7
@@
int i915_gem_context_reset_stats_ioctl(struct drm_device *dev,
if (args->ctx_id == DEFAULT_CONTEXT_HANDLE && !capable(CAP_SYS_ADMIN))
return -EPERM;
- ret =
mutex_lock_interruptible(&dev->struct_mutex
);
+ ret =
i915_mutex_lock_interruptible(dev
);
if (ret)
return ret;