diff options
author | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2022-04-21 08:50:08 +0200 |
---|---|---|
committer | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2022-04-21 12:13:29 +0200 |
commit | 90d4ef4c10f1ba81e308bc002dd04eafcd42837e (patch) | |
tree | 7466e2c7d45cc52c63bbab1f02b0bc191a1b8557 | |
parent | 891ce2ff8769675b52dcfff3cf1c91bb711ddb03 (diff) |
tests/i915/gem_lmem_swapping: Add parallel-random-verify-ccs subtest
For this subtest we need to use allocator thread so parallel subtests
need to be executed in allocator multi-process aware environment.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
-rw-r--r-- | tests/i915/gem_lmem_swapping.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/i915/gem_lmem_swapping.c b/tests/i915/gem_lmem_swapping.c index e58a1f50..5d93e9da 100644 --- a/tests/i915/gem_lmem_swapping.c +++ b/tests/i915/gem_lmem_swapping.c @@ -576,6 +576,7 @@ static void test_evict(int i915, if (flags & TEST_PARALLEL) { int fd = gem_reopen_driver(i915); + intel_allocator_multiprocess_start(); ctx = intel_ctx_create_all_physical(fd); __gem_context_set_persistence(fd, ctx->id, false); @@ -586,6 +587,7 @@ static void test_evict(int i915, igt_waitchildren(); intel_ctx_destroy(fd, ctx); close(fd); + intel_allocator_multiprocess_stop(); } else { __do_evict(i915, ctx, ®ion->region, ¶ms, params.seed); } @@ -747,6 +749,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) { "verify-random-ccs", TEST_CCS | TEST_RANDOM }, { "heavy-verify-random-ccs", TEST_CCS | TEST_RANDOM | TEST_HEAVY }, { "heavy-verify-multi-ccs", TEST_CCS | TEST_RANDOM | TEST_HEAVY | TEST_ENGINES | TEST_MULTI }, + { "parallel-random-verify-ccs", TEST_PARALLEL | TEST_RANDOM | TEST_CCS }, { } }; const intel_ctx_t *ctx; |