summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_object.h
diff options
context:
space:
mode:
authorChris Wilson2017-02-13 18:15:39 +0100
committerChris Wilson2017-02-13 21:45:54 +0100
commit8d28ba4568f4973b7fc5b12100a720979c16b4f0 (patch)
treed632a840aea901d86f219466d2b8d5490fc11eda /drivers/gpu/drm/i915/i915_gem_object.h
parentdrm/i915: Add initial selftests for i915_gem_gtt (diff)
downloadkernel-qcow2-linux-8d28ba4568f4973b7fc5b12100a720979c16b4f0.tar.gz
kernel-qcow2-linux-8d28ba4568f4973b7fc5b12100a720979c16b4f0.tar.xz
kernel-qcow2-linux-8d28ba4568f4973b7fc5b12100a720979c16b4f0.zip
drm/i915: Exercise filling the top/bottom portions of the ppgtt
Allocate objects with varying number of pages (which should hopefully consist of a mixture of contiguous page chunks and so coalesced sg lists) and check that the sg walkers in insert_pages cope. v2: Check both small <-> large 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/20170213171558.20942-28-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_object.h')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_object.h b/drivers/gpu/drm/i915/i915_gem_object.h
index 4114cc8a0b9b..02365a5f7c80 100644
--- a/drivers/gpu/drm/i915/i915_gem_object.h
+++ b/drivers/gpu/drm/i915/i915_gem_object.h
@@ -33,6 +33,8 @@
#include <drm/i915_drm.h>
+#include "i915_selftest.h"
+
struct drm_i915_gem_object_ops {
unsigned int flags;
#define I915_GEM_OBJECT_HAS_STRUCT_PAGE 0x1
@@ -84,6 +86,7 @@ struct drm_i915_gem_object {
struct list_head obj_exec_link;
struct list_head batch_pool_link;
+ I915_SELFTEST_DECLARE(struct list_head st_link);
unsigned long flags;