All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_concurrent: For i915 devices run allocator in multiprocess mode
@ 2022-05-19 14:17 Zbigniew Kempczyński
  2022-05-19 15:00 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Zbigniew Kempczyński @ 2022-05-19 14:17 UTC (permalink / raw)
  To: igt-dev; +Cc: Luciano Coelho

Test calls igt_fork() so for i915 requires offset allocation arbitration
(allocator in multiprocess mode) especially when same drm fd is used
in children. Dedicated thread (intel_allocator_multiprocess_start())
is required to be started on the very beginning to handle offset
allocations as well as stopping it (intel_allocator_multiprocess_stop())
before test exits.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Luciano Coelho <luciano.coelho@intel.com>
Cc: Swati Sharma <swati2.sharma@intel.com>
---
 tests/kms_concurrent.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/kms_concurrent.c b/tests/kms_concurrent.c
index 82b2021e72..c334194b9a 100644
--- a/tests/kms_concurrent.c
+++ b/tests/kms_concurrent.c
@@ -378,6 +378,8 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 		kmstest_set_vt_graphics_mode();
 		igt_display_require(&data.display, data.drm_fd);
 		igt_require(data.display.is_atomic);
+		if (is_i915_device(data.drm_fd))
+			intel_allocator_multiprocess_start();
 	}
 
 	for_each_pipe_static(pipe) {
@@ -386,6 +388,8 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 	}
 
 	igt_fixture {
+		if (is_i915_device(data.drm_fd))
+			intel_allocator_multiprocess_stop();
 		igt_display_fini(&data.display);
 		close(data.drm_fd);
 	}
-- 
2.32.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-05-20 10:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 14:17 [igt-dev] [PATCH i-g-t] tests/kms_concurrent: For i915 devices run allocator in multiprocess mode Zbigniew Kempczyński
2022-05-19 15:00 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-05-19 17:48 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-05-20  4:29   ` Zbigniew Kempczyński
2022-05-20  6:46     ` Vudum, Lakshminarayana
2022-05-19 20:07 ` [igt-dev] [PATCH i-g-t] " Coelho, Luciano
2022-05-20  5:56 ` Petri Latvala
2022-05-20  7:11   ` Zbigniew Kempczyński
2022-05-20  8:50     ` Petri Latvala
2022-05-20  9:45       ` Coelho, Luciano
2022-05-20 10:00         ` Petri Latvala
2022-05-20  6:02 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.