summaryrefslogtreecommitdiff
path: root/tests/gem_evict_alignment.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_alignment.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_alignment.c')
-rw-r--r--tests/gem_evict_alignment.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/gem_evict_alignment.c b/tests/gem_evict_alignment.c
index 43d39ed5..0ec58099 100644
--- a/tests/gem_evict_alignment.c
+++ b/tests/gem_evict_alignment.c
@@ -222,6 +222,21 @@ igt_main
count = 4;
major_evictions(fd, size, count);
}
+
+ if (igt_fork_hang_helper()) {
+ igt_subtest("minor-hang") {
+ size = 1024 * 1024;
+ count = 3*gem_aperture_size(fd) / size / 4;
+ minor_evictions(fd, size, count);
+ }
+
+ igt_subtest("major-hang") {
+ size = 3*gem_aperture_size(fd) / 4;
+ count = 4;
+ major_evictions(fd, size, count);
+ }
+ igt_stop_hang_helper();
+ }
igt_stop_signal_helper();
igt_fixture