Re: [Intel-gfx] [PATCH] drm/i915: Return -ENOENT for unknown contexts

2014-04-17 Thread Chris Wilson
On Wed, Apr 16, 2014 at 11:58:09AM +0300, Mika Kuoppala wrote: From: Mika Kuoppala mika.kuopp...@linux.intel.com If hw_contexts are disabled, we always return the per file descriptor default context stats. Make sure that the context is correctly given and fail accordingly if not.

Re: [Intel-gfx] [PATCH] drm/i915: Return -ENOENT for unknown contexts

2014-04-17 Thread Mika Kuoppala
Chris Wilson ch...@chris-wilson.co.uk writes: On Wed, Apr 16, 2014 at 11:58:09AM +0300, Mika Kuoppala wrote: From: Mika Kuoppala mika.kuopp...@linux.intel.com If hw_contexts are disabled, we always return the per file descriptor default context stats. Make sure that the context is

[Intel-gfx] [PATCH] drm/i915: Return -ENOENT for unknown contexts

2014-04-16 Thread Mika Kuoppala
From: Mika Kuoppala mika.kuopp...@linux.intel.com If hw_contexts are disabled, we always return the per file descriptor default context stats. Make sure that the context is correctly given and fail accordingly if not. Testcase: igt/gem_reset_stats/params Signed-off-by: Mika Kuoppala