[igt-dev] [PATCH i-g-t 2/2] i915/gem_ctx_create: lower time of active subtest

Kamil Konieczny kamil.konieczny at linux.intel.com
Fri Mar 18 16:04:45 UTC 2022


Active subtest check for old context reclaim in driver and
repeat this for each engine for 20 seconds. On old gpu gens
there are low number of engines so it runs in reasonable time,
but on new ones it can take as long as over 800s. Lower total
time taken by running it for only one engine from each class.
Choose engine to run at random so every egnine will be tested in
long run on CI.

Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
 tests/i915/gem_ctx_create.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_ctx_create.c b/tests/i915/gem_ctx_create.c
index 44846652..df71227e 100644
--- a/tests/i915/gem_ctx_create.c
+++ b/tests/i915/gem_ctx_create.c
@@ -618,7 +618,7 @@ igt_main
 		active(fd, &cfg, NULL, 20, ncpus);
 
 	igt_subtest_with_dynamic("active") {
-		for_each_ctx_cfg_engine(fd, &cfg, e) {
+		for_one_random_ctx_cfg_engine(fd, &cfg, e) {
 			igt_dynamic_f("%s", e->name)
 				active(fd, &cfg, e, 20, 1);
 		}
-- 
2.32.0



More information about the igt-dev mailing list