@@ -496,8 +496,12 @@ igt_main
{
const intel_ctx_t *ctx;
igt_hang_t hang = {};
+ struct gem_engine_properties saved_params[GEM_MAX_ENGINES];
+ int num_engines = 0;
igt_fixture {
+ const struct intel_execution_engine2 *e;
+
device = drm_open_driver(DRIVER_INTEL);
igt_require_gem(device);
@@ -511,6 +515,13 @@ igt_main
igt_require(has_error_state(sysfs));
gem_require_mmap_device_coherent(device);
+
+ for_each_physical_engine(device, e) {
+ saved_params[num_engines].engine = e;
+ saved_params[num_engines].preempt_timeout = 500;
+ saved_params[num_engines].heartbeat_interval = 1000;
+ gem_engine_properties_configure(device, saved_params + num_engines++);
+ }
}
igt_describe("Basic error capture");
@@ -542,6 +553,11 @@ igt_main
do_tests("engine", "engine", ctx);
igt_fixture {
+ int i;
+
+ for (i = 0; i < num_engines; i++)
+ gem_engine_properties_restore(device, saved_params + i);
+
igt_disallow_hang(device, hang);
intel_ctx_destroy(device, ctx);
close(device);