mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 04:42:53 +00:00
igt/gem_evict_(alignment|everything): contend with GPU hangs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user