igt/gem_evict_(alignment|everything): contend with GPU hangs

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2014-09-06 08:16:27 +01:00
parent ce79b7aa80
commit a315476a6b
4 changed files with 103 additions and 0 deletions
+15
View File
@@ -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
+15
View File
@@ -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 {