Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel: Add current IGT PID to driver options
@ 2026-05-28  5:59 Krzysztof Karas
  2026-05-28  7:32 ` ✗ i915.CI.BAT: failure for tests/intel: Add current IGT PID to driver options (rev2) Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Krzysztof Karas @ 2026-05-28  5:59 UTC (permalink / raw)
  To: igt-dev
  Cc: Andi Shyti, Sebastian Brzezinka, Krzysztof Niemiec,
	Janusz Krzysztofik, Krzysztof Karas

i915 mmap selftests lack trusted address space in userspace,
so use a driver parameter to pass IGT process's PID to borrow
memory from for mapping. This will help to restore test
coverage, which was temporarily limited when following series
on kernel side was merged:
e8c3344765aa ("drm/i915/selftests: Prevent userspace mapping invalidation")
82eb94b1fa13 ("drm/i915/selftests: Run vma tests only if current->mm is present")

Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
---
 tests/intel/i915_selftest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/intel/i915_selftest.c b/tests/intel/i915_selftest.c
index 6972de64c..1a8385883 100644
--- a/tests/intel/i915_selftest.c
+++ b/tests/intel/i915_selftest.c
@@ -649,8 +649,8 @@ int igt_main()
 	igt_kselftests("i915", opts, NULL, "mock", NULL);
 
 	igt_assert(snprintf(opts, sizeof(opts),
-			    "live_selftests=-1 disable_display=1 st_filter=%s",
-			    env) < sizeof(opts));
+			    "live_selftests=-1 disable_display=1 st_filter=%s st_userspace_pid=%d",
+			    env, getpid()) < sizeof(opts));
 	igt_kselftests("i915", opts, "live_selftests", "live", NULL);
 
 	igt_assert(snprintf(opts, sizeof(opts),
-- 
2.34.1


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

end of thread, other threads:[~2026-06-01 12:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-28  5:59 [PATCH i-g-t] tests/intel: Add current IGT PID to driver options Krzysztof Karas
2026-05-28  7:32 ` ✗ i915.CI.BAT: failure for tests/intel: Add current IGT PID to driver options (rev2) Patchwork
2026-06-01  6:05   ` Krzysztof Karas
2026-05-28  7:33 ` ✓ Xe.CI.BAT: success " Patchwork
2026-05-28 15:05 ` ✓ Xe.CI.FULL: " Patchwork
2026-06-01 11:04 ` [PATCH i-g-t] tests/intel: Add current IGT PID to driver options Sebastian Brzezinka
2026-06-01 12:15 ` Janusz Krzysztofik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox