Skip to contentSkip to conversation

tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom

PATCH New Arjun Melkaveri 1 participant 1 message Apr 1, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom

ctx was not initialized with all physical engines, after device reopening.
This change would resolve assert issue seen in __do_evict.

Cc Ashutosh Dixit <[email protected]>
Cc Ramalingam C <[email protected]>
---
 tests/i915/gem_lmem_swapping.c | 3 +++
 1 file changed, 3 insertions(+)
tests/i915/gem_lmem_swapping.c +3 -0
index 43f0688f..fb260bcb 100644
@@ -428,6 +428,9 @@ static void test_smem_oom(int i915,
 
 		fill_params(i915, &params, region, 0, 1, true);
 
+		ctx = intel_ctx_create_all_physical(fd);
+		__gem_context_set_persistence(fd, ctx->id, false);
+
 		igt_install_exit_handler(smem_oom_exit_handler);
 		__do_evict(fd, ctx, &region->region, &params,
 			   params.seed + child + 1);
Signature · 1 line
2.25.1