From a315476a6ba07f83631a60355bd01a6f73ced50b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 6 Sep 2014 08:16:27 +0100 Subject: igt/gem_evict_(alignment|everything): contend with GPU hangs Signed-off-by: Chris Wilson --- tests/gem_evict_alignment.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/gem_evict_alignment.c') 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 -- cgit v1.2.3