[Intel-gfx] [RFC 0/2] New engine discovery and execbuffer2 engine selection uAPI

Tvrtko Ursulin tursulin at ursulin.net
Tue Apr 18 16:56:13 UTC 2017


From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Inspired by the recent introduction of the engine class and instance concept,
and a chat with Chris Wilson about a potential unification of PCI id based
device discovery across multiple userspace components, I have cooked up two
patches to gather some opinions on whether this sort of uAPI would be
interesting for a wider audience.

First patch is basically and old idea by Jon Bloomfield on how to do engine
discovery, while the second one is just a quick hack to show how a similar
approach could work for execbuffer2.

Both patches are compile tested only and intended only to start a discussion.

Tvrtko Ursulin (2):
  drm/i915: Engine discovery uAPI
  drm/i915: Select engines via class and instance in execbuffer2

 drivers/gpu/drm/i915/i915_drv.c            |  1 +
 drivers/gpu/drm/i915/i915_drv.h            |  3 ++
 drivers/gpu/drm/i915/i915_gem_execbuffer.c | 36 ++++++++++++++++++
 drivers/gpu/drm/i915/intel_engine_cs.c     | 59 ++++++++++++++++++++++++++++++
 include/uapi/drm/i915_drm.h                | 47 +++++++++++++++++++++++-
 5 files changed, 145 insertions(+), 1 deletion(-)

-- 
2.9.3



More information about the Intel-gfx mailing list