[PATCH 19/19] drm/i915: Drain freed objects in gem_contexts selftest

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Tue Sep 14 13:34:35 UTC 2021


We will no longer be able to unbind freed objects in selftests,
fix it up in gem_contexts selftest too.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
index b32f7fed2d9c..8365a1061116 100644
--- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
@@ -1724,6 +1724,7 @@ static int read_from_scratch(struct i915_gem_context *ctx,
 	i915_vm_put(vm);
 out:
 	i915_gem_object_put(obj);
+	i915_gem_drain_freed_objects(i915);
 	return err;
 }
 
-- 
2.33.0



More information about the Intel-gfx-trybot mailing list