[igt-dev] [PATCH i-g-t] tests/i915/gem_eio: Fix missing multiprocess allocator environment

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Mon Apr 4 08:48:52 UTC 2022


On discrete we need to ensure that allocator is able to run in
multiprocess mode otherwise we encounter crashes.

Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/4928

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
 tests/i915/gem_eio.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c
index 39cd6a1deb..d9689534d5 100644
--- a/tests/i915/gem_eio.c
+++ b/tests/i915/gem_eio.c
@@ -1111,9 +1111,14 @@ igt_main
 
 			igt_display_require(&display, fd);
 			igt_display_require_output(&display);
+			intel_allocator_multiprocess_start();
 		}
 
 		igt_subtest("kms")
 			test_kms(fd, &display);
+
+		igt_fixture {
+			intel_allocator_multiprocess_stop();
+		}
 	}
 }
-- 
2.32.0



More information about the igt-dev mailing list