[PATCH i-g-t] tests/core_hotunplug: Add i915 debugfs health check

Janusz Krzysztofik janusz.krzysztofik at linux.intel.com
Wed Oct 7 17:27:02 UTC 2020


Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik at linux.intel.com>
---
 tests/core_hotunplug.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/tests/core_hotunplug.c b/tests/core_hotunplug.c
index 70669c590..df617a08a 100644
--- a/tests/core_hotunplug.c
+++ b/tests/core_hotunplug.c
@@ -249,7 +249,19 @@ static int local_i915_healthcheck(int i915, const char *prefix)
 		.buffer_count = 1,
 	};
 	const struct intel_execution_engine2 *engine;
-	int fence = -1;
+	int params, fence = -1;
+	const char *reset;
+	bool success;
+
+	local_debug("%s%s\n", prefix, "running i915 sysfs healthcheck");
+	params = igt_params_open(i915);
+	igt_assert_fd(params)
+	reset = igt_sysfs_get(params, "reset");
+	close(params);
+	igt_assert(reset);
+	success = igt_params_set(i915, "reset", "%s", reset);
+	free(reset);
+	igt_assert(success);
 
 	local_debug("%s%s\n", prefix, "running i915 GPU healthcheck");
 	if (local_i915_is_wedged(i915))
-- 
2.21.1



More information about the Intel-gfx-trybot mailing list