aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorGravatar Chris Wilson <chris@chris-wilson.co.uk> 2016-11-14 20:41:04 +0000
committerGravatar Chris Wilson <chris@chris-wilson.co.uk> 2016-11-14 21:01:22 +0000
commit9f792ebafe0079e6cedde726ea943bc0f412ff6b (patch)
tree615fc93f8e14244b45d876ca6b87ff219b02090e /drivers/gpu/drm/i915/i915_drv.h
parentdrm/i915/scheduler: Execute requests in order of priorities (diff)
downloadlinux-9f792ebafe0079e6cedde726ea943bc0f412ff6b.tar.gz
linux-9f792ebafe0079e6cedde726ea943bc0f412ff6b.tar.bz2
linux-9f792ebafe0079e6cedde726ea943bc0f412ff6b.zip
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
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 00a0c6c2515a..0e7e33b73d09 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -936,6 +936,7 @@ struct i915_gem_context {
/* Unique identifier for this context, used by the hw for tracking */
unsigned int hw_id;
u32 user_handle;
+ int priority; /* greater priorities are serviced first */
u32 ggtt_alignment;