summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_vma.h
diff options
context:
space:
mode:
authorChris Wilson2017-06-15 10:14:35 +0200
committerChris Wilson2017-06-15 11:53:26 +0200
commit8c45cec48e5871f93e56650f7e476d4ea7174a0e (patch)
tree64494281af5d380c7e42f72c070c35073a31b3bc /drivers/gpu/drm/i915/i915_vma.h
parentdrm/i915: Use vma->exec_entry as our double-entry placeholder (diff)
downloadkernel-qcow2-linux-8c45cec48e5871f93e56650f7e476d4ea7174a0e.tar.gz
kernel-qcow2-linux-8c45cec48e5871f93e56650f7e476d4ea7174a0e.tar.xz
kernel-qcow2-linux-8c45cec48e5871f93e56650f7e476d4ea7174a0e.zip
drm/i915: Split vma exec_link/evict_link
Currently the vma has one link member that is used for both holding its place in the execbuf reservation list, and in any eviction list. This dual property is quite tricky and error prone. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170615081435.17699-3-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_vma.h')
-rw-r--r--drivers/gpu/drm/i915/i915_vma.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_vma.h b/drivers/gpu/drm/i915/i915_vma.h
index 2e03f81dddbe..4d827300d1a8 100644
--- a/drivers/gpu/drm/i915/i915_vma.h
+++ b/drivers/gpu/drm/i915/i915_vma.h
@@ -100,8 +100,11 @@ struct i915_vma {
struct list_head obj_link; /* Link in the object's VMA list */
struct rb_node obj_node;
- /** This vma's place in the batchbuffer or on the eviction list */
- struct list_head exec_list;
+ /** This vma's place in the execbuf reservation list */
+ struct list_head exec_link;
+
+ /** This vma's place in the eviction list */
+ struct list_head evict_link;
/**
* Used for performing relocations during execbuffer insertion.