summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_timeline.h
diff options
context:
space:
mode:
authorChris Wilson2016-10-28 14:58:58 +0200
committerChris Wilson2016-10-28 21:53:57 +0200
commit80b204bce8f27b52cd65839e0e6144b4452ae3de (patch)
tree081a0a9a239818514c977fe00e469e9a3d0adf42 /drivers/gpu/drm/i915/i915_gem_timeline.h
parentdrm/i915: Defer setting of global seqno on request to submission (diff)
downloadkernel-qcow2-linux-80b204bce8f27b52cd65839e0e6144b4452ae3de.tar.gz
kernel-qcow2-linux-80b204bce8f27b52cd65839e0e6144b4452ae3de.tar.xz
kernel-qcow2-linux-80b204bce8f27b52cd65839e0e6144b4452ae3de.zip
drm/i915: Enable multiple timelines
With the infrastructure converted over to tracking multiple timelines in the GEM API whilst preserving the efficiency of using a single execution timeline internally, we can now assign a separate timeline to every context with full-ppgtt. v2: Add a comment to indicate the xfer between timelines upon submission. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20161028125858.23563-35-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_timeline.h')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_timeline.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_timeline.h b/drivers/gpu/drm/i915/i915_gem_timeline.h
index 18e603980dd9..f2bf7b1d49a1 100644
--- a/drivers/gpu/drm/i915/i915_gem_timeline.h
+++ b/drivers/gpu/drm/i915/i915_gem_timeline.h
@@ -34,7 +34,8 @@ struct i915_gem_timeline;
struct intel_timeline {
u64 fence_context;
u32 last_submitted_seqno;
- u32 last_pending_seqno;
+
+ spinlock_t lock;
/**
* List of breadcrumbs associated with GPU requests currently