diff options
author | Chris Wilson | 2017-02-13 18:15:39 +0100 |
---|---|---|
committer | Chris Wilson | 2017-02-13 21:45:54 +0100 |
commit | 8d28ba4568f4973b7fc5b12100a720979c16b4f0 (patch) | |
tree | d632a840aea901d86f219466d2b8d5490fc11eda /drivers/gpu/drm/i915/i915_gem_object.h | |
parent | drm/i915: Add initial selftests for i915_gem_gtt (diff) | |
download | kernel-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.h | 3 |
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; |