[Intel-gfx] [PATCH] drm/i915/bdw: Return -ENONENT on default ctx destroy

Chris Wilson chris at chris-wilson.co.uk
Mon Dec 30 14:09:13 CET 2013


On Tue, Dec 24, 2013 at 04:02:54PM -0800, Ben Widawsky wrote:
> This was an accidental "ABI" change introduced during PPGTT:
> 
> commit 0eea67eb26000657079b7fc41079097942339452
> Author: Ben Widawsky <ben at bwidawsk.net>
> Date:   Fri Dec 6 14:11:19 2013 -0800
> 
>     drm/i915: Create a per file_priv default context
> 
> The failure test application actually tests the return type. The other
> option is to simply change the test.
> 
> Signed-off-by: Ben Widawsky <ben at bwidawsk.net>

I was thinking that EPERM on the untouchable default context was right,
until I noticed that this was destroy and it is never possible to
destroy the default. (Not even root can, so you can not raise your
privileges and make the ioctl work.)

Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list