tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom
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]>
Signed-off-by Arjun Melkaveri <[email protected]>
--- tests/i915/gem_lmem_swapping.c | 3 +++ 1 file changed, 3 insertions(+)
tests/i915/gem_lmem_swapping.c +3 -0
@@ -428,6 +428,9 @@ static void test_smem_oom(int i915,fill_params (i915, ¶ms, 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, ®ion->region, ¶ms, params.seed + child +1 );
Signature · 1 line
2.25.1