Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom
@ 2022-04-01  7:28 Arjun Melkaveri
  2022-04-01  7:48 ` [igt-dev] ✗ GitLab.Pipeline: warning for tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom (rev2) Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Arjun Melkaveri @ 2022-04-01  7:28 UTC (permalink / raw)
  To: arjun.melkaveri, ramalingam.c, ashutosh.dixit, igt-dev

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

v2: Added missing intel_ctx_destroy.

Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Arjun Melkaveri <arjun.melkaveri@intel.com>
---
 tests/i915/gem_lmem_swapping.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/i915/gem_lmem_swapping.c b/tests/i915/gem_lmem_swapping.c
index 43f0688f..432607b0 100644
--- a/tests/i915/gem_lmem_swapping.c
+++ b/tests/i915/gem_lmem_swapping.c
@@ -428,10 +428,14 @@ 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);
 
+		intel_ctx_destroy(fd, ctx);
 		close(fd);
 	}
 
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [igt-dev] [PATCH i-g-t] tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom
@ 2022-04-01  7:25 Arjun Melkaveri
  0 siblings, 0 replies; 10+ messages in thread
From: Arjun Melkaveri @ 2022-04-01  7:25 UTC (permalink / raw)
  To: arjun.melkaveri, ramalingam.c, ashutosh.dixit, igt-dev

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

Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Arjun Melkaveri <arjun.melkaveri@intel.com>
---
 tests/i915/gem_lmem_swapping.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/i915/gem_lmem_swapping.c b/tests/i915/gem_lmem_swapping.c
index 43f0688f..fb260bcb 100644
--- a/tests/i915/gem_lmem_swapping.c
+++ b/tests/i915/gem_lmem_swapping.c
@@ -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);
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-04-01 17:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-01  7:28 [igt-dev] [PATCH i-g-t] tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom Arjun Melkaveri
2022-04-01  7:48 ` [igt-dev] ✗ GitLab.Pipeline: warning for tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom (rev2) Patchwork
2022-04-01  8:15 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2022-04-01  8:29 ` [igt-dev] [PATCH i-g-t] tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom Ramalingam C
2022-04-01  8:55   ` Melkaveri, Arjun
2022-04-01  9:09     ` Ramalingam C
2022-04-01  9:10 ` Matthew Auld
2022-04-01 17:52   ` Dixit, Ashutosh
2022-04-01  9:32 ` [igt-dev] ✗ Fi.CI.IGT: failure for tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom (rev2) Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2022-04-01  7:25 [igt-dev] [PATCH i-g-t] tests/i915/gem_lmem_swapping: Fix bug in test_smem_oom Arjun Melkaveri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox