drm/i915: Add ioctl to set per-context parameters
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 24 Dec 2014 16:13:40 +0000 (08:13 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 7 Jan 2015 17:19:06 +0000 (18:19 +0100)
commitc9dc0f35986c0e2fc81e0b71ddc7e3adad733829
treed59a7dc0157916e519d9aa04527f85eea670cec5
parentf9b61ff6bce9a44555324b29e593fdffc9a115bc
drm/i915: Add ioctl to set per-context parameters

Sometimes we wish to tweak how an individual context behaves. Since we
always create a context for every filp, this means that individual
processes can fine tune their behaviour even if they do not explicitly
create a context.

The first example parameter here is to enable multi-process GPU testing,
but the interface should be able to cope with passing arbitrarily complex
parameters.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Testcase: igt/gem_reset_stats/ban-period-*
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c
include/uapi/drm/i915_drm.h