Thread (3 messages) 3 messages, 2 authors, 2021-04-14

[igt-dev] [PATCH i-g-t] tests/gem_tiled_blits: fix sigsegv on TGL when allocator is in use

From: Zbigniew Kempczyński <hidden>
Date: 2021-04-14 06:47:32
Subsystem: the rest · Maintainer: Linus Torvalds

TGL is rare case when intel-bb assumes it should use allocator
infrastructure (even if it supports relocations). The main reason
of such decision is building aux ccs tables for rendercopy.
These tables requires filling address a-priori for surfaces so
softpin and allocator allow to build them without calling warming
execbuf.

We need to ensure intel-bb here can be called in multiprocess
environment so multiprocess start()/stop() around normal and
interruptible tests are necessary.

Signed-off-by: Zbigniew Kempczyński <redacted>
Cc: Petri Latvala <redacted>
---
 tests/i915/gem_tiled_blits.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/tests/i915/gem_tiled_blits.c b/tests/i915/gem_tiled_blits.c
index 91537ac48..c93d04d67 100644
--- a/tests/i915/gem_tiled_blits.c
+++ b/tests/i915/gem_tiled_blits.c
@@ -196,17 +196,21 @@ igt_main
 		run_test(fd, 2);
 
 	igt_subtest("normal") {
+		intel_allocator_multiprocess_start();
 		igt_fork(child, ncpus)
 			run_test(fd, count);
 		igt_waitchildren();
+		intel_allocator_multiprocess_stop();
 	}
 
 	igt_subtest("interruptible") {
+		intel_allocator_multiprocess_start();
 		igt_fork_signal_helper();
 		igt_fork(child, ncpus)
 			run_test(fd, count);
 		igt_waitchildren();
 		igt_stop_signal_helper();
+		intel_allocator_multiprocess_stop();
 	}
 
 	igt_fixture {
-- 
2.26.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help