mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 05:13:47 +00:00
igt/gem: Add GPU hang detection to basic tests
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
@@ -170,6 +170,8 @@ igt_main
|
||||
igt_fixture
|
||||
fd = drm_open_driver(DRIVER_INTEL);
|
||||
|
||||
igt_fork_hang_detector(fd);
|
||||
|
||||
for (e = intel_execution_engines; e->name; e++) {
|
||||
igt_subtest_f("basic-%s", e->name)
|
||||
sync_ring(fd, e->exec_id | e->flags, 1);
|
||||
@@ -182,6 +184,8 @@ igt_main
|
||||
igt_subtest("forked-all")
|
||||
sync_ring(fd, ~0u, ncpus);
|
||||
|
||||
igt_stop_hang_detector();
|
||||
|
||||
igt_fixture
|
||||
close(fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user