]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Extend I915_CONTEXT_PARAM_SSEU to support local ctx->engine[]
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 May 2019 21:11:27 +0000 (22:11 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 May 2019 07:40:34 +0000 (08:40 +0100)
commit8d433fa25e337466763dd4b52a85efdb75d414f8
tree8c75b1463c93d723db48985e75897e66d5110ff0
parentf0ee2bd6c1c728534158b93f60fd5feff48bfc3a
drm/i915: Extend I915_CONTEXT_PARAM_SSEU to support local ctx->engine[]

Allow the user to specify a local engine index (as opposed to
class:index) that they can use to refer to a preset engine inside the
ctx->engine[] array defined by an earlier I915_CONTEXT_PARAM_ENGINES.
This will be useful for setting SSEU parameters on virtual engines that
are local to the context and do not have a valid global class:instance
lookup.

Note that due to the ambiguity in using class:instance with
ctx->engines[], if a user supplied engine map is active the user must
specify the engine to alter by its index into the ctx->engines[].

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190521211134.16117-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c
include/uapi/drm/i915_drm.h