[igt-dev] [PATCH 4/4] gem_exec_parallel: allow unlimited open files

Lucas De Marchi lucas.demarchi at intel.com
Thu Apr 4 22:39:25 UTC 2019


I was looking into a failure in which I had

libkmod: ERROR ../libkmod/libkmod-config.c:790 conf_files_list: opendir(/etc/modprobe.d): Too many open files
libkmod: ERROR ../libkmod/libkmod-config.c:790 conf_files_list: opendir(/lib/modprobe.d): Too many open files
(gem_exec_parallel:1315) igt_kmod-WARNING: Could not load i915
(gem_exec_parallel:1315) igt_kmod-WARNING: Could not load i915

I got curious because libkmod doesn't open more than one config file at
a time. What's happening is that libkmod is not the culprit, it's just
the one that failed because we open /dev/dri/card0 -ETOOMANYTIMES.

Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
 tests/i915/gem_exec_parallel.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/i915/gem_exec_parallel.c b/tests/i915/gem_exec_parallel.c
index f8320c3a..54209455 100644
--- a/tests/i915/gem_exec_parallel.c
+++ b/tests/i915/gem_exec_parallel.c
@@ -164,8 +164,10 @@ static void all(int fd, unsigned engine, unsigned flags)
 	if (flags & CONTEXTS)
 		gem_require_contexts(fd);
 
-	if (flags & FDS)
+	if (flags & FDS) {
 		igt_require(gen > 5);
+		igt_require(igt_allow_unlimited_files());
+	}
 
 	nengine = 0;
 	if (engine == ALL_ENGINES) {
-- 
2.21.0



More information about the igt-dev mailing list