]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Store the execution priority on the context
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Nov 2016 20:41:04 +0000 (20:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Nov 2016 21:01:22 +0000 (21:01 +0000)
commit0fa0c37f9965142a7fdafcc3bea1f0010c1eeecf
tree615fc93f8e14244b45d876ca6b87ff219b02090e
parentbb905ef43cb04d6ba34e4f09539b29a6cb6a5bd8
drm/i915: Store the execution priority on the context

In order to support userspace defining different levels of importance to
different contexts, and in particular the preferred order of execution,
store a priority value on each context. By default, the kernel's
context, which is used for idling and other background tasks, is given
minimum priority (i.e. all user contexts will execute before the kernel).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161114204105.29171-9-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_gem_request.c