[igt-dev] [PATCH i-g-t] tests/gem_fenced_exec_thrash: s/EDEADLK/ENOBUFS/

Ville Syrjala ville.syrjala at linux.intel.com
Mon Jul 12 07:49:36 UTC 2021


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Adjust the expected errno for running out of fences to
ENOBUFS from EDEADLK as per kernel commit 78d2ad7eb4e1
("drm/i915/gt: Fix -EDEADLK handling regression").

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/i915/gem_fenced_exec_thrash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_fenced_exec_thrash.c b/tests/i915/gem_fenced_exec_thrash.c
index 13812bb7e429..6497ff57647a 100644
--- a/tests/i915/gem_fenced_exec_thrash.c
+++ b/tests/i915/gem_fenced_exec_thrash.c
@@ -182,7 +182,7 @@ igt_main
 			run_test(fd, num_fences, 0, flags);
 	}
 	igt_subtest("too-many-fences")
-		run_test(fd, num_fences + 1, intel_gen(devid) >= 4 ? 0 : EDEADLK, 0);
+		run_test(fd, num_fences + 1, intel_gen(devid) >= 4 ? 0 : ENOBUFS, 0);
 
 	igt_fixture
 		close(fd);
-- 
2.31.1



More information about the igt-dev mailing list