summaryrefslogtreecommitdiff
path: root/tests/i915/gem_ctx_switch.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-01-27 09:01:12 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-01-27 10:10:03 +0000
commitf855f3f1f17e643d50dcbc2fa1dc4f7f8567192e (patch)
tree585d4b17be081c68a2719a41c0dd0ccf7e103377 /tests/i915/gem_ctx_switch.c
parent29d77cd8b8b86b73430dc65f5c248db53d00df71 (diff)
i915/gem_ctx_switch: Reduce runtime
Reduce the upper timeout for stress tests from 150s to a mere 20s, and quick tests to 2s. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_ctx_switch.c')
-rw-r--r--tests/i915/gem_ctx_switch.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/i915/gem_ctx_switch.c b/tests/i915/gem_ctx_switch.c
index a65d1b02..5f94dac8 100644
--- a/tests/i915/gem_ctx_switch.c
+++ b/tests/i915/gem_ctx_switch.c
@@ -357,18 +357,18 @@ igt_main
}
igt_subtest_f("legacy-%s%s", e->name, p->name)
- single(fd, light, e2, p->flags, 1, 5);
+ single(fd, light, e2, p->flags, 1, 2);
igt_subtest_f("legacy-%s-heavy%s",
e->name, p->name)
- single(fd, heavy, e2, p->flags, 1, 5);
+ single(fd, heavy, e2, p->flags, 1, 2);
igt_subtest_f("legacy-%s-forked%s",
e->name, p->name)
single(fd, light, e2, p->flags, ncpus,
- 150);
+ 20);
igt_subtest_f("legacy-%s-forked-heavy%s",
e->name, p->name)
single(fd, heavy, e2, p->flags, ncpus,
- 150);
+ 20);
}
}
}
@@ -383,33 +383,33 @@ igt_main
}
igt_subtest_f("%s%s", e2->name, p->name)
- single(fd, light, e2, p->flags, 1, 5);
+ single(fd, light, e2, p->flags, 1, 2);
igt_subtest_f("%s-heavy%s", e2->name, p->name)
- single(fd, heavy, e2, p->flags, 1, 5);
+ single(fd, heavy, e2, p->flags, 1, 2);
igt_subtest_f("%s-forked%s", e2->name, p->name)
single(fd, light, e2, p->flags, ncpus,
- 150);
+ 20);
igt_subtest_f("%s-forked-heavy%s",
e2->name, p->name)
single(fd, heavy, e2, p->flags, ncpus,
- 150);
+ 20);
}
}
}
igt_subtest("all-light")
- all(fd, light, 0, 5);
+ all(fd, light, 0, 2);
igt_subtest("all-heavy")
- all(fd, heavy, 0, 5);
+ all(fd, heavy, 0, 2);
igt_subtest_group {
igt_fixture {
igt_require(gem_has_queues(fd));
}
igt_subtest("queue-light")
- all(fd, light, QUEUE, 5);
+ all(fd, light, QUEUE, 2);
igt_subtest("queue-heavy")
- all(fd, heavy, QUEUE, 5);
+ all(fd, heavy, QUEUE, 2);
}
igt_fixture {