[PATCH 3/7] tests/i915/gem_exec_capture: Clear out old errors before capturing new ones

Thomas Hellström thomas.hellstrom at linux.intel.com
Tue Oct 19 06:30:40 UTC 2021


From: Thomas Hellström <thomas.hellstrom at intel.com>

Clear out old errors before capturing new ones. Otherwise we might have
captured buffers from a previous error / reset returned.

Signed-off-by: Thomas Hellström <thomas.hellstrom at intel.com>
---
 tests/i915/gem_exec_capture.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c
index 705d1875..bd14dab6 100644
--- a/tests/i915/gem_exec_capture.c
+++ b/tests/i915/gem_exec_capture.c
@@ -172,6 +172,7 @@ static void __capture1(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx,
 		igt_assert(gem_bo_busy(fd, obj[SCRATCH].handle));
 	munmap(seqno, 4096);
 
+	igt_sysfs_set(dir, "error", "Begone!");
 	/* Check that only the buffer we marked is reported in the error */
 	igt_force_gpu_reset(fd);
 	check_error_state(dir, &obj[CAPTURE]);
@@ -229,6 +230,7 @@ static struct offset {
 	struct offset *offsets;
 	int i;
 
+	igt_sysfs_set(dir, "error", "Begone!");
 	offsets = calloc(count, sizeof(*offsets));
 	igt_assert(offsets);
 
-- 
2.31.1



More information about the Intel-gfx-trybot mailing list