summaryrefslogtreecommitdiff
path: root/tests/gem_evict_everything.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-09-06 08:16:27 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-01-07 17:35:14 +0000
commita315476a6ba07f83631a60355bd01a6f73ced50b (patch)
tree16d682819835985dfad375206be52c2f2dfb14b4 /tests/gem_evict_everything.c
parentce79b7aa8010d848d4e9c417bcba375eac958f60 (diff)
igt/gem_evict_(alignment|everything): contend with GPU hangs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_evict_everything.c')
-rw-r--r--tests/gem_evict_everything.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/gem_evict_everything.c b/tests/gem_evict_everything.c
index f108da3a..ad198f02 100644
--- a/tests/gem_evict_everything.c
+++ b/tests/gem_evict_everything.c
@@ -235,6 +235,21 @@ igt_main
test_major_evictions(fd, size, count);
}
+ if (igt_fork_hang_helper()) {
+ igt_subtest("swapping-hang")
+ test_swapping_evictions(fd, size, count);
+
+ igt_subtest("minor-hang")
+ test_minor_evictions(fd, size, count);
+
+ igt_subtest("major-hang") {
+ size = 3*gem_aperture_size(fd) / 4;
+ count = 4;
+ test_major_evictions(fd, size, count);
+ }
+
+ igt_stop_hang_helper();
+ }
igt_stop_signal_helper();
igt_fixture {