mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
igt/gem_softpin: Convert to igt_interruptible
Convert the fixed time interruptible tests to igt_interruptible() for a speed improvement. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
22674ae88b
commit
1abbd69740
@ -491,41 +491,22 @@ igt_main
|
||||
|
||||
igt_subtest("noreloc")
|
||||
test_noreloc(fd, NOSLEEP);
|
||||
igt_subtest("noreloc-interruptible")
|
||||
igt_interruptible(true) test_noreloc(fd, NOSLEEP);
|
||||
igt_subtest("noreloc-S3")
|
||||
test_noreloc(fd, SUSPEND);
|
||||
igt_subtest("noreloc-S4")
|
||||
test_noreloc(fd, HIBERNATE);
|
||||
|
||||
igt_subtest("evict-active")
|
||||
test_evict_active(fd);
|
||||
igt_subtest("evict-snoop")
|
||||
test_evict_snoop(fd);
|
||||
for (int signal = 0; signal <= 1; signal++) {
|
||||
igt_subtest_f("evict-active%s", signal ? "-interruptible" : "")
|
||||
igt_interruptible(signal) test_evict_active(fd);
|
||||
igt_subtest_f("evict-snoop%s", signal ? "-interruptible" : "")
|
||||
igt_interruptible(signal) test_evict_snoop(fd);
|
||||
}
|
||||
igt_subtest("evict-hang")
|
||||
test_evict_hang(fd);
|
||||
|
||||
igt_fork_signal_helper();
|
||||
igt_subtest("noreloc-interruptible") {
|
||||
struct timespec start = {};
|
||||
while (igt_seconds_elapsed(&start) < 20)
|
||||
test_noreloc(fd, NOSLEEP);
|
||||
}
|
||||
igt_subtest("evict-active-interruptible") {
|
||||
struct timespec start = {};
|
||||
while (igt_seconds_elapsed(&start) < 20)
|
||||
test_evict_active(fd);
|
||||
}
|
||||
igt_subtest("evict-snoop-interruptible") {
|
||||
struct timespec start = {};
|
||||
while (igt_seconds_elapsed(&start) < 20)
|
||||
test_evict_snoop(fd);
|
||||
}
|
||||
igt_subtest("evict-hang-interruptible") {
|
||||
struct timespec start = {};
|
||||
while (igt_seconds_elapsed(&start) < 20)
|
||||
test_evict_hang(fd);
|
||||
}
|
||||
igt_stop_signal_helper();
|
||||
|
||||
igt_fixture
|
||||
close(fd);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user