OSDN Git Service

drm/i915: Introduce struct class_instance for engines across the uAPI
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Apr 2019 07:14:16 +0000 (08:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 17 Apr 2019 06:25:42 +0000 (07:25 +0100)
commitd1172ab3d443e84ade75285f8c107bfac7e386d8
tree9e01d5ab883a39c72cd6525bbd8b1de6c03ce28f
parentb16b2a2f70b16089ff460c53471af7c0b33ce37a
drm/i915: Introduce struct class_instance for engines across the uAPI

SSEU reprogramming of the context introduced the notion of engine class
and instance for a forwards compatible method of describing any engine
beyond the old execbuf interface. We wish to adopt this class:instance
description for more interfaces, so pull it out into a separate type for
userspace convenience.

Fixes: e46c2e99f600 ("drm/i915: Expose RPCS (SSEU) configuration to userspace (Gen11 only)")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Cc: Tony Ye <tony.ye@intel.com>
Cc: Andi Shyti <andi@etezian.org>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Acked-by: Tony Ye <tony.ye@intel.com>
Reviewed-by: Andi Shyti <andi@etezian.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190412071416.30097-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c
include/uapi/drm/i915_drm.h