mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +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:
parent
98dcf2f0dc
commit
9d61a685e9
@ -107,6 +107,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)
|
||||
noop(fd, e->exec_id | e->flags);
|
||||
@ -116,6 +118,8 @@ igt_main
|
||||
gtt(fd, e->exec_id | e->flags);
|
||||
}
|
||||
|
||||
igt_stop_hang_detector();
|
||||
|
||||
igt_fixture
|
||||
close(fd);
|
||||
}
|
||||
|
@ -166,6 +166,8 @@ igt_main
|
||||
gem_write(device, handle, 0, &bbe, sizeof(bbe));
|
||||
}
|
||||
|
||||
igt_fork_hang_detector(device);
|
||||
|
||||
igt_subtest("basic")
|
||||
all(device, handle, 10);
|
||||
|
||||
@ -176,6 +178,8 @@ igt_main
|
||||
igt_subtest("all")
|
||||
all(device, handle, 150);
|
||||
|
||||
igt_stop_hang_detector();
|
||||
|
||||
igt_fixture {
|
||||
gem_close(device, handle);
|
||||
close(device);
|
||||
|
@ -96,10 +96,14 @@ igt_main
|
||||
igt_fixture
|
||||
fd = drm_open_driver_master(DRIVER_INTEL);
|
||||
|
||||
igt_fork_hang_detector(fd);
|
||||
|
||||
for (e = intel_execution_engines; e->name; e++)
|
||||
igt_subtest_f("basic-%s", e->name)
|
||||
store_dword(fd, e->exec_id | e->flags);
|
||||
|
||||
igt_stop_hang_detector();
|
||||
|
||||
igt_fixture
|
||||
close(fd);
|
||||
}
|
||||
|
@ -241,6 +241,8 @@ igt_main
|
||||
igt_fixture
|
||||
fd = drm_open_driver_master(DRIVER_INTEL);
|
||||
|
||||
igt_fork_hang_detector(fd);
|
||||
|
||||
igt_subtest("basic-S3")
|
||||
run_test(fd, -1, SUSPEND);
|
||||
igt_subtest("basic-S4")
|
||||
@ -257,6 +259,8 @@ igt_main
|
||||
}
|
||||
}
|
||||
|
||||
igt_stop_hang_detector();
|
||||
|
||||
igt_fixture
|
||||
close(fd);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user