Skip to content

Commit 4c9c0d0

Browse files
committed
drm/i915: Fix retrieval of hangcheck stats
The default context is always supported (as it contains the global hangcheck stats) and the contexts for hangcheck are not limited to any ring. This was dropped in 2013 because it was supposed to have been included with Ben's full-ppgtt patch set. It never landed and the bug remains. References: https://bugs.freedesktop.org/show_bug.cgi?id=65845 Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Chris Wilson <[email protected]> Reviewed-by: Mika Kuoppala <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7fc92e9 commit 4c9c0d0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/i915/i915_gem_context.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,9 +1034,6 @@ int i915_gem_context_reset_stats_ioctl(struct drm_device *dev,
10341034
if (args->flags || args->pad)
10351035
return -EINVAL;
10361036

1037-
if (args->ctx_id == DEFAULT_CONTEXT_HANDLE && !capable(CAP_SYS_ADMIN))
1038-
return -EPERM;
1039-
10401037
ret = i915_mutex_lock_interruptible(dev);
10411038
if (ret)
10421039
return ret;

0 commit comments

Comments
 (0)