path: root/drivers/gpu/drm/i915/selftests/i915_gem_object.c
diff options
authorChris Wilson <>2018-07-06 07:53:07 +0100
committerChris Wilson <>2018-07-06 11:24:00 +0100
commite5d2435bfaeee3f4045e03441d3902c63254b618 (patch)
treea60f49d5c8e559fe594e6f7b8cb3e04489be9a57 /drivers/gpu/drm/i915/selftests/i915_gem_object.c
parent1eca65d922d7543b60610624afd345b4f3d71ae2 (diff)
drm/i915/selftests: Destroy partial tiling vma after use
As we keep VMA around until the object is destroyed, when testing partial tiling we instantiate many, many VMA (as the object is huge allowing for many different partial regions). We test elsewhere our handling of populating large objects with a full set of VMA and checking we can retrieve them afterwards, but in this test we incur the cost of flushing all VMA after every GTT write, dramatically slowing down the test. References: Signed-off-by: Chris Wilson <> Reviewed-by: Matthew Auld <> Link:
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/i915_gem_object.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_object.c b/drivers/gpu/drm/i915/selftests/i915_gem_object.c
index 885153268968..232e5ccf1852 100644
--- a/drivers/gpu/drm/i915/selftests/i915_gem_object.c
+++ b/drivers/gpu/drm/i915/selftests/i915_gem_object.c
@@ -288,6 +288,8 @@ static int check_partial_mapping(struct drm_i915_gem_object *obj,
if (err)
return err;
+ i915_vma_destroy(vma);
return 0;