Skip to contentSkip to conversation

test/kms: Add support for display with non-contiguous pipes

PATCH In review Mohammed Khajapasha 5 participants 14 messages Mar 7, 2020 – Jun 1, 2020 Library code

lore
Share & tools
lore
#0 lore raw

cover test/kms: Add support for display with non-contiguous pipes

add support for display with non-contiguous pipes.

Mohammed Khajapasha (3):
lib/igt_kms: Set pipe enum name to a pipe from drm pipe test/kms: Loop for enable pipes only in static iteration kms/test: Pass correct pipe value to print pipe name

 lib/igt_kms.c                   |  8 ++++++-
 lib/igt_kms.h                   |  7 ++++--
 tests/kms_atomic_transition.c   |  2 +-
 tests/kms_available_modes_crc.c |  8 +++++--
 tests/kms_busy.c                | 20 ++++++++--------
 tests/kms_ccs.c                 |  5 ++--
 tests/kms_color.c               | 30 ++++++++++++-----------
 tests/kms_color_chamelium.c     | 26 ++++++++++----------
 tests/kms_concurrent.c          |  8 ++++---
 tests/kms_cursor_crc.c          | 35 +++++++++++++++------------
 tests/kms_cursor_edge_walk.c    | 20 +++++++++-------
 tests/kms_cursor_legacy.c       | 23 +++++++++++-------
 tests/kms_dp_dsc.c              |  5 +++-
 tests/kms_lease.c               |  9 ++++---
 tests/kms_pipe_crc_basic.c      | 19 ++++++++-------
 tests/kms_plane.c               | 42 +++++++++++++++++++--------------
 tests/kms_plane_alpha_blend.c   | 25 +++++++++++---------
 tests/kms_plane_cursor.c        | 16 +++++++------
 tests/kms_plane_lowres.c        | 16 ++++++++-----
 tests/kms_plane_multiple.c      | 16 ++++++++-----
 tests/kms_plane_scaling.c       | 19 +++++++++------
 tests/kms_prime.c               |  2 +-
 tests/kms_properties.c          |  9 ++++---
 tests/kms_rotation_crc.c        |  3 ++-
 tests/kms_sequence.c            |  4 ++--
 tests/kms_universal_plane.c     | 21 +++++++----------
 tests/kms_vblank.c              | 13 ++++++----
 27 files changed, 241 insertions(+), 170 deletions(-)
Signature · 6 lines
2.24.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

PATCH 1/3 lib/igt_kms: Set pipe enum name to a pipe from drm pipe

set the pipe enum name to igt pipe from drm pipe,
in case of non-contiguous pipes in display, the igt pipes cann't be same as enabled pipes in kernel.

---
 lib/igt_kms.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
lib/igt_kms.c +7 -1
index 54de45e5..849aa346 100644
@@ -1927,10 +1927,16 @@ void igt_display_require(igt_display_t *display, int drm_fd)
 		int p = 1;
 		int j, type;
 		uint8_t last_plane = 0, n_planes = 0;
+		struct drm_i915_get_pipe_from_crtc_id get_pipe;
 
 		pipe->crtc_id = resources->crtcs[i];
 		pipe->display = display;
-		pipe->pipe = i;
+		/* Get right pipe enum from kernel for a pipe */
+		get_pipe.pipe = 0;
+		get_pipe.crtc_id =  pipe->crtc_id;
+		do_ioctl(display->drm_fd,
+				DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID, &get_pipe);
+		pipe->pipe = get_pipe.pipe;
 		pipe->plane_cursor = -1;
 		pipe->plane_primary = -1;
 		pipe->planes = NULL;
Signature · 6 lines
2.24.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#2 lore raw

PATCH 2/3 test/kms: Loop for enable pipes only in static iteration

In reply to Mohammed Khajapasha

In non-contiguous pipes display, the static iteration of pipes in test can cause iteration over disabled pipes and segmentation fault in test.

for example, if PIPE_C,D are disabled and PIPE_A,B are enabled in kernel, test case will iterate over PIPE_C,D in for_each_pipe_static() even pipes C,D disabled and cause segmentation fault while accessing pipes display pipes.

---
 lib/igt_kms.h                 | 7 +++++--
 tests/kms_busy.c              | 2 +-
 tests/kms_ccs.c               | 2 +-
 tests/kms_color.c             | 2 +-
 tests/kms_color_chamelium.c   | 2 +-
 tests/kms_concurrent.c        | 2 +-
 tests/kms_cursor_crc.c        | 2 +-
 tests/kms_cursor_edge_walk.c  | 2 +-
 tests/kms_cursor_legacy.c     | 2 +-
 tests/kms_pipe_crc_basic.c    | 2 +-
 tests/kms_plane.c             | 2 +-
 tests/kms_plane_alpha_blend.c | 2 +-
 tests/kms_plane_cursor.c      | 2 +-
 tests/kms_plane_lowres.c      | 2 +-
 tests/kms_plane_multiple.c    | 2 +-
 tests/kms_plane_scaling.c     | 2 +-
 tests/kms_universal_plane.c   | 2 +-
 tests/kms_vblank.c            | 2 +-
 18 files changed, 22 insertions(+), 19 deletions(-)
lib/igt_kms.h +5 -2
index cd3fdbc0..b534ae64 100644
@@ -494,8 +494,11 @@ static inline bool igt_output_is_connected(igt_output_t *output)
  * This should be used to enumerate per-pipe subtests since it has no runtime
  * depencies.
  */
-#define for_each_pipe_static(pipe) \
-	for (pipe = 0; pipe < IGT_MAX_PIPES; pipe++)
+#define for_each_pipe_static(display, __pipe)	\
+	for (int p__ = (__pipe) = 0;	\
+			__pipe < IGT_MAX_PIPES && p__ < (display)->n_pipes; __pipe++, p__++)	\
+			for_each_if ((((display)->pipes[(p__)].pipe) == __pipe))
+
 
 /**
  * for_each_pipe:
tests/kms_busy.c +1 -1
index 7e495fe2..eaf2b297 100644
@@ -317,7 +317,7 @@ igt_main
 		}
 	}
 
-	for_each_pipe_static(n) igt_subtest_group {
+	for_each_pipe_static(&display, n) igt_subtest_group {
 		igt_hang_t hang;
 
 		errno = 0;
tests/kms_ccs.c +1 -1
index bc34aec5..c2864030 100644
@@ -474,7 +474,7 @@ igt_main_args("c", NULL, help_str, opt_handler, NULL)
 		igt_display_require(&data.display, data.drm_fd);
 	}
 
-	for_each_pipe_static(pipe) {
+	for_each_pipe_static(&data.display, pipe) {
 		const char *pipe_name = kmstest_pipe_name(pipe);
 
 		data.pipe = pipe;
tests/kms_color.c +1 -1
index 7f2fbd4a..18077306 100644
@@ -840,7 +840,7 @@ igt_main
 		igt_display_require(&data.display, data.drm_fd);
 	}
 
-	for_each_pipe_static(pipe)
+	for_each_pipe_static(&data.display, pipe)
 		igt_subtest_group
 			run_tests_for_pipe(&data, pipe);
 
tests/kms_color_chamelium.c +1 -1
index 34a1888c..65a4812b 100644
@@ -738,7 +738,7 @@ igt_main
 		igt_require(data.display.is_atomic);
 	}
 
-	for_each_pipe_static(pipe)
+	for_each_pipe_static(&data.display, pipe)
 		igt_subtest_group
 			run_tests_for_pipe(&data, pipe);
 	igt_describe("Negative test case gamma lut size");
tests/kms_concurrent.c +1 -1
index 14ca5fab..34e4a8bd 100644
@@ -395,7 +395,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 		igt_require(data.display.is_atomic);
 	}
 
-	for_each_pipe_static(pipe) {
+	for_each_pipe_static(&data.display, pipe) {
 		igt_subtest_group
 			run_tests_for_pipe(&data, pipe);
 	}
tests/kms_cursor_crc.c +1 -1
index f105e295..b337da9c 100644
@@ -819,7 +819,7 @@ igt_main
 	data.cursor_max_w = cursor_width;
 	data.cursor_max_h = cursor_height;
 
-	for_each_pipe_static(pipe)
+	for_each_pipe_static(&data.display, pipe)
 		igt_subtest_group
 			run_tests_on_pipe(&data, pipe);
 
tests/kms_cursor_edge_walk.c +1 -1
index 6feb32a8..600848f8 100644
@@ -324,7 +324,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 		igt_display_require(&data.display, data.drm_fd);
 	}
 
-	for_each_pipe_static(data.pipe) {
+	for_each_pipe_static(&data.display, data.pipe) {
 		igt_subtest_group {
 			igt_fixture {
 				igt_display_require_output_on_pipe(&data.display, data.pipe);
tests/kms_cursor_legacy.c +1 -1
index f41f68d8..4be9b114 100644
@@ -1376,7 +1376,7 @@ igt_main
 
 	igt_subtest_group {
 		enum pipe n;
-		for_each_pipe_static(n) {
+		for_each_pipe_static(&display, n) {
 			errno = 0;
 
 			igt_fixture {
tests/kms_pipe_crc_basic.c +1 -1
index d169b7bd..9f0af59f 100644
@@ -173,7 +173,7 @@ igt_main
 	igt_subtest("bad-source")
 		test_bad_source(&data);
 
-	for_each_pipe_static(pipe) {
+	for_each_pipe_static(&data.display, pipe) {
 		igt_subtest_f("read-crc-pipe-%s", kmstest_pipe_name(pipe))
 			test_read_crc(&data, pipe, 0);
 
tests/kms_plane.c +1 -1
index 805795cd..d65b827d 100644
@@ -1016,7 +1016,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 		igt_display_require(&data.display, data.drm_fd);
 	}
 
-	for_each_pipe_static(pipe)
+	for_each_pipe_static(&data.display, pipe)
 		run_tests_for_pipe_plane(&data, pipe);
 
 	igt_fixture {
tests/kms_plane_alpha_blend.c +1 -1
index 085099f8..9bd00e94 100644
@@ -571,7 +571,7 @@ igt_main
 		igt_require(data.display.is_atomic);
 	}
 
-	for_each_pipe_static(pipe)
+	for_each_pipe_static(&data.display, pipe)
 		igt_subtest_group
 			run_subtests(&data, pipe);
 
tests/kms_plane_cursor.c +1 -1
index adcdf5e8..91ba1513 100644
@@ -316,7 +316,7 @@ igt_main
 		igt_display_require_output(&data.display);
 	}
 
-	for_each_pipe_static(pipe)
+	for_each_pipe_static(&data.display, pipe)
 		for (i = 0; i < ARRAY_SIZE(cursor_sizes); ++i) {
 			int size = cursor_sizes[i];
 
tests/kms_plane_lowres.c +1 -1
index 012b25e3..a31cad62 100644
@@ -299,7 +299,7 @@ igt_main
 		igt_require(data.display.is_atomic);
 	}
 
-	for_each_pipe_static(pipe) {
+	for_each_pipe_static(&data.display, pipe) {
 		data.pipe = pipe;
 		igt_subtest_f("pipe-%s-tiling-none", kmstest_pipe_name(pipe))
 			test_planes_on_pipe(&data, LOCAL_DRM_FORMAT_MOD_NONE);
tests/kms_plane_multiple.c +1 -1
index 899b6c5e..7954fef1 100644
@@ -441,7 +441,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 		igt_require(data.display.is_atomic);
 	}
 
-	for_each_pipe_static(pipe) {
+	for_each_pipe_static(&data.display, pipe) {
 		igt_describe("Check that the kernel handles atomic updates of "
 			     "multiple planes correctly by changing their "
 			     "geometry and making sure the changes are "
tests/kms_plane_scaling.c +1 -1
index 19087286..d3a3ef61 100644
@@ -700,7 +700,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 		igt_require(data.display.is_atomic);
 	}
 
-	for_each_pipe_static(pipe) igt_subtest_group {
+	for_each_pipe_static(&data.display, pipe) igt_subtest_group {
 		igt_output_t *output;
 
 		igt_fixture {
tests/kms_universal_plane.c +1 -1
index 676be633..fefb15d9 100644
@@ -800,7 +800,7 @@ igt_main
 		igt_display_require(&data.display, data.drm_fd);
 	}
 
-	for_each_pipe_static(pipe) {
+	for_each_pipe_static(&data.display, pipe) {
 		igt_subtest_group
 			run_tests_for_pipe(&data, pipe);
 	}
tests/kms_vblank.c +1 -1
index a895ab80..3cd57364 100644
@@ -528,7 +528,7 @@ igt_main
 	igt_subtest("crtc-id")
 		crtc_id_subtest(&data, fd);
 
-	for_each_pipe_static(data.pipe)
+	for_each_pipe_static(&data.display, data.pipe)
 		igt_subtest_group
 			run_subtests_for_pipe(&data);
 }
Signature · 6 lines
2.24.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#3 lore raw

Re: [igt-dev] [i-g-t, 2/3] test/kms: Loop for enable pipes only in static iteration

Quoted 36 lines · Mohammed Khajapasha

In non-contiguous pipes display, the static iteration of pipes in test can cause iteration over disabled pipes and segmentation fault in test.

for example, if PIPE_C,D are disabled and PIPE_A,B are enabled in kernel, test case will iterate over PIPE_C,D in for_each_pipe_static() even pipes C,D disabled and cause segmentation fault while accessing pipes display pipes.

---
 lib/igt_kms.h                 | 7 +++++--
 tests/kms_busy.c              | 2 +-
 tests/kms_ccs.c               | 2 +-
 tests/kms_color.c             | 2 +-
 tests/kms_color_chamelium.c   | 2 +-
 tests/kms_concurrent.c        | 2 +-
 tests/kms_cursor_crc.c        | 2 +-
 tests/kms_cursor_edge_walk.c  | 2 +-
 tests/kms_cursor_legacy.c     | 2 +-
 tests/kms_pipe_crc_basic.c    | 2 +-
 tests/kms_plane.c             | 2 +-
 tests/kms_plane_alpha_blend.c | 2 +-
 tests/kms_plane_cursor.c      | 2 +-
 tests/kms_plane_lowres.c      | 2 +-
 tests/kms_plane_multiple.c    | 2 +-
 tests/kms_plane_scaling.c     | 2 +-
 tests/kms_universal_plane.c   | 2 +-
 tests/kms_vblank.c            | 2 +-
 18 files changed, 22 insertions(+), 19 deletions(-)
lib/igt_kms.h +0 -0
index cd3fdbc0..b534ae64 100644

lib/igt_kms.h static inline bool igt_output_is_connected(igt_output_t *output) · line 500

Quoted 9 lines
lib/igt_kms.h +4 -2
@@ -494,8 +494,11 @@ static inline bool igt_output_is_connected(igt_output_t *output)
  * This should be used to enumerate per-pipe subtests since it has no runtime
  * depencies.
  */
-#define for_each_pipe_static(pipe) \
-	for (pipe = 0; pipe < IGT_MAX_PIPES; pipe++)
+#define for_each_pipe_static(display, __pipe)	\
+	for (int p__ = (__pipe) = 0;	\
+			__pipe < IGT_MAX_PIPES && p__ < (display)->n_pipes; __pipe++, p__++)	\
+			for_each_if ((((display)->pipes[(p__)].pipe) == __pipe))

Hey,

Please pay attention to:
"This should be used to enumerate per-pipe subtests since it has no runtime dependencies."

This applies to all the *_static enumerators.

To put this in contexts:
1. IGT test binary can have subtest
2. subtests are listable via --list-subtests
3. this should always list all possible subtests no matter the machine you are running this on
4. you should be able to run such tests (--run-subtest) and it should skip

With this change you are trying to make --list-subtests produce a machine-specific output.

On top of this igt_display_t should be initialized in igt_fixture block which is not evaluated during --list-subtests, so this breaks subtest listing completely.

https://drm.pages.freedesktop.org/igt-gpu-tools/igt-gpu-tools-Core.html#igt-gpu-tools-Core.description
https://drm.pages.freedesktop.org/igt-gpu-tools/igt-gpu-tools-Core.html#igt-fixture

Instead you should make sure that all the tests that go over pipes are using the appropriate iterators and skip for pipe letters that are not there.

A lot of test are using this for skipping:
igt_skip_on(pipe >= display.n_pipes);

which should be turned into something like:
igt_require_pipe(display, pipe);

Signature · 6 lines
Cheers,
Arek
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#4 lore raw

PATCH 3/3 kms/test: Pass correct pipe value to print pipe name

In reply to Mohammed Khajapasha

currently kmstest_pipe_name() fn gets the pipe index value to print the pipe name, but with non-contiguous display, pipe index is not always same as pipe name.

for example: if PIPE_A is disabled in kernel, PIPE_B,C & D get registered with 0,1 & 2 indexes in mode config's crtc list and kmstest_pipe_name() always prints PIPE_A for 0 index which is actually PIPE_B in kernel.

---
 tests/kms_atomic_transition.c   |  2 +-
 tests/kms_available_modes_crc.c |  8 +++++--
 tests/kms_busy.c                | 18 +++++++--------
 tests/kms_ccs.c                 |  3 ++-
 tests/kms_color.c               | 28 ++++++++++++-----------
 tests/kms_color_chamelium.c     | 24 +++++++++++---------
 tests/kms_concurrent.c          |  6 +++--
 tests/kms_cursor_crc.c          | 33 +++++++++++++++------------
 tests/kms_cursor_edge_walk.c    | 18 ++++++++-------
 tests/kms_cursor_legacy.c       | 21 +++++++++++------
 tests/kms_dp_dsc.c              |  5 ++++-
 tests/kms_lease.c               |  9 +++++---
 tests/kms_pipe_crc_basic.c      | 17 ++++++++------
 tests/kms_plane.c               | 40 +++++++++++++++++++--------------
 tests/kms_plane_alpha_blend.c   | 23 ++++++++++---------
 tests/kms_plane_cursor.c        | 16 +++++++------
 tests/kms_plane_lowres.c        | 14 +++++++-----
 tests/kms_plane_multiple.c      | 14 +++++++-----
 tests/kms_plane_scaling.c       | 17 +++++++++-----
 tests/kms_prime.c               |  2 +-
 tests/kms_properties.c          |  9 +++++---
 tests/kms_rotation_crc.c        |  3 ++-
 tests/kms_sequence.c            |  4 ++--
 tests/kms_universal_plane.c     | 19 +++++++---------
 tests/kms_vblank.c              | 11 +++++----
 25 files changed, 213 insertions(+), 151 deletions(-)
tests/kms_atomic_transition.c +1 -1
index 44f01109..e8302b74 100644
@@ -355,7 +355,7 @@ static void setup_parms(igt_display_t *display, enum pipe pipe,
 			alpha, sprite_width, sprite_height);
 
 	igt_info("Running test on pipe %s with resolution %dx%d and sprite size %dx%d alpha %i\n",
-		 kmstest_pipe_name(pipe), mode->hdisplay, mode->vdisplay,
+		 kmstest_pipe_name(display->pipes[pipe].pipe), mode->hdisplay, mode->vdisplay,
 		 sprite_width, sprite_height, alpha);
 }
 
tests/kms_available_modes_crc.c +6 -2
index ed43d1fb..2cc1370d 100644
@@ -298,6 +298,8 @@ test_one_mode(data_t* data, igt_output_t *output, igt_plane_t* plane,
 		return false;
 
 	if (prepare_crtc(data, output, plane, mode)) {
+		igt_display_t *display;
+
 		igt_plane_set_fb(plane, &data->fb);
 		igt_fb_set_size(&data->fb, plane, data->fb.width, data->fb.height);
 		igt_plane_set_size(plane, data->fb.width, data->fb.height);
@@ -307,13 +309,15 @@ test_one_mode(data_t* data, igt_output_t *output, igt_plane_t* plane,
 		igt_wait_for_vblank(data->gfx_fd, pipe);
 		igt_pipe_crc_get_current(data->gfx_fd, data->pipe_crc, &current_crc);
 
+		display = &data->display;
+
 		if (plane->type != DRM_PLANE_TYPE_CURSOR) {
 			if (!igt_check_crc_equal(&current_crc,
 				&data->fullscreen_crc)) {
 				igt_warn("crc mismatch. connector %s using pipe %s" \
 					" plane index %d mode %.4s\n",
 					igt_output_name(output),
-					kmstest_pipe_name(pipe),
+					kmstest_pipe_name(display->pipes[pipe].pipe),
 					plane->index,
 					(char *)&mode);
 				rVal++;
@@ -324,7 +328,7 @@ test_one_mode(data_t* data, igt_output_t *output, igt_plane_t* plane,
 				igt_warn("crc mismatch. connector %s using pipe %s" \
 					" plane index %d mode %.4s\n",
 					igt_output_name(output),
-					kmstest_pipe_name(pipe),
+					kmstest_pipe_name(display->pipes[pipe].pipe),
 					plane->index,
 					(char *)&mode);
 				rVal++;
tests/kms_busy.c +9 -9
index eaf2b297..6c0461f0 100644
@@ -327,13 +327,13 @@ igt_main
 		}
 
 		igt_subtest_f("basic-flip-pipe-%s",
-			kmstest_pipe_name(n)) {
+			kmstest_pipe_name(display.pipes[n].pipe)) {
 			igt_require(gem_has_ring(display.drm_fd, eb_ring(e)));
 
 			test_flip(&display, eb_ring(e), n, false);
 		}
 		igt_subtest_f("basic-modeset-pipe-%s",
-			kmstest_pipe_name(n)) {
+			kmstest_pipe_name(display.pipes[n].pipe)) {
 			igt_require(gem_has_ring(display.drm_fd, eb_ring(e)));
 
 			test_flip(&display, eb_ring(e), n, true);
@@ -346,7 +346,7 @@ igt_main
 		}
 
 		igt_subtest_f("extended-pageflip-modeset-hang-oldfb-%s-pipe-%s",
-				e->name, kmstest_pipe_name(n)) {
+				e->name, kmstest_pipe_name(display.pipes[n].pipe)) {
 			igt_require(gem_has_ring(display.drm_fd, eb_ring(e)));
 
 			test_pageflip_modeset_hang(&display, eb_ring(e), n);
@@ -356,23 +356,23 @@ igt_main
 			igt_require(display.is_atomic);
 
 		igt_subtest_f("extended-pageflip-hang-oldfb-%s-pipe-%s",
-				e->name, kmstest_pipe_name(n))
+				e->name, kmstest_pipe_name(display.pipes[n].pipe))
 			test_hang(&display, eb_ring(e), n, false, false);
 
 		igt_subtest_f("extended-pageflip-hang-newfb-%s-pipe-%s",
-				e->name, kmstest_pipe_name(n))
+				e->name, kmstest_pipe_name(display.pipes[n].pipe))
 			test_hang(&display, eb_ring(e), n, false, true);
 
 		igt_subtest_f("extended-modeset-hang-oldfb-%s-pipe-%s",
-				e->name, kmstest_pipe_name(n))
+				e->name, kmstest_pipe_name(display.pipes[n].pipe))
 			test_hang(&display, eb_ring(e), n, true, false);
 
 		igt_subtest_f("extended-modeset-hang-newfb-%s-pipe-%s",
-				e->name, kmstest_pipe_name(n))
+				e->name, kmstest_pipe_name(display.pipes[n].pipe))
 			test_hang(&display, eb_ring(e), n, true, true);
 
 		igt_subtest_f("extended-modeset-hang-oldfb-with-reset-%s-pipe-%s",
-				e->name, kmstest_pipe_name(n)) {
+				e->name, kmstest_pipe_name(display.pipes[n].pipe)) {
 			igt_set_module_param_int("force_reset_modeset_test", 1);
 
 			test_hang(&display, eb_ring(e), n, true, false);
@@ -381,7 +381,7 @@ igt_main
 		}
 
 		igt_subtest_f("extended-modeset-hang-newfb-with-reset-%s-pipe-%s",
-				e->name, kmstest_pipe_name(n)) {
+				e->name, kmstest_pipe_name(display.pipes[n].pipe)) {
 			igt_set_module_param_int("force_reset_modeset_test", 1);
 
 			test_hang(&display, eb_ring(e), n, true, true);
tests/kms_ccs.c +2 -1
index c2864030..e4ba2fa1 100644
@@ -475,7 +475,8 @@ igt_main_args("c", NULL, help_str, opt_handler, NULL)
 	}
 
 	for_each_pipe_static(&data.display, pipe) {
-		const char *pipe_name = kmstest_pipe_name(pipe);
+		igt_display_t *display = &data.display;
+		const char *pipe_name = kmstest_pipe_name(display->pipes[pipe].pipe);
 
 		data.pipe = pipe;
 
tests/kms_color.c +15 -13
index 18077306..a7173745 100644
@@ -619,6 +619,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	igt_plane_t *primary;
 	double delta;
 	int i;
+	const char *pipe_name;
 	color_t red_green_blue[] = {
 		{ 1.0, 0.0, 0.0 },
 		{ 0.0, 1.0, 0.0 },
@@ -631,6 +632,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 		igt_require(p < data->display.n_pipes);
 
 		pipe = &data->display.pipes[p];
+		pipe_name = kmstest_pipe_name(pipe->pipe);
 		igt_require(pipe->n_planes >= 0);
 
 		primary = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
@@ -661,7 +663,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	data->color_depth = 8;
 	delta = 1.0 / (1 << data->color_depth);
 
-	igt_subtest_f("pipe-%s-ctm-red-to-blue", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-red-to-blue", pipe_name) {
 		color_t blue_green_blue[] = {
 			{ 0.0, 0.0, 1.0 },
 			{ 0.0, 1.0, 0.0 },
@@ -674,7 +676,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 					 blue_green_blue, ctm));
 	}
 
-	igt_subtest_f("pipe-%s-ctm-green-to-red", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-green-to-red", pipe_name) {
 		color_t red_red_blue[] = {
 			{ 1.0, 0.0, 0.0 },
 			{ 1.0, 0.0, 0.0 },
@@ -687,7 +689,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 					 red_red_blue, ctm));
 	}
 
-	igt_subtest_f("pipe-%s-ctm-blue-to-red", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-blue-to-red", pipe_name) {
 		color_t red_green_red[] = {
 			{ 1.0, 0.0, 0.0 },
 			{ 0.0, 1.0, 0.0 },
@@ -704,7 +706,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	 * the it depends on the hardware we're dealing with, we can
 	 * either get clamped or rounded values and we also need to
 	 * account for odd number of items in the LUTs. */
-	igt_subtest_f("pipe-%s-ctm-0-25", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-0-25", pipe_name) {
 		color_t expected_colors[] = {
 			{ 0.0, }, { 0.0, }, { 0.0, }
 		};
@@ -725,7 +727,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 		igt_assert(success);
 	}
 
-	igt_subtest_f("pipe-%s-ctm-0-5", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-0-5", pipe_name) {
 		color_t expected_colors[] = {
 			{ 0.0, }, { 0.0, }, { 0.0, }
 		};
@@ -746,7 +748,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 		igt_assert(success);
 	}
 
-	igt_subtest_f("pipe-%s-ctm-0-75", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-0-75", pipe_name) {
 		color_t expected_colors[] = {
 			{ 0.0, }, { 0.0, }, { 0.0, }
 		};
@@ -767,7 +769,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 		igt_assert(success);
 	}
 
-	igt_subtest_f("pipe-%s-ctm-max", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-max", pipe_name) {
 		color_t full_rgb[] = {
 			{ 1.0, 0.0, 0.0 },
 			{ 0.0, 1.0, 0.0 },
@@ -785,7 +787,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 					 full_rgb, ctm));
 	}
 
-	igt_subtest_f("pipe-%s-ctm-negative", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-negative", pipe_name) {
 		color_t all_black[] = {
 			{ 0.0, 0.0, 0.0 },
 			{ 0.0, 0.0, 0.0 },
@@ -799,20 +801,20 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	}
 
 #if 0
-	igt_subtest_f("pipe-%s-ctm-limited-range", kmstest_pipe_name(p))
+	igt_subtest_f("pipe-%s-ctm-limited-range", pipe_name)
 		test_pipe_limited_range_ctm(data, primary);
 #endif
 
-	igt_subtest_f("pipe-%s-degamma", kmstest_pipe_name(p))
+	igt_subtest_f("pipe-%s-degamma", pipe_name)
 		test_pipe_degamma(data, primary);
 
-	igt_subtest_f("pipe-%s-gamma", kmstest_pipe_name(p))
+	igt_subtest_f("pipe-%s-gamma", pipe_name)
 		test_pipe_gamma(data, primary);
 
-	igt_subtest_f("pipe-%s-legacy-gamma", kmstest_pipe_name(p))
+	igt_subtest_f("pipe-%s-legacy-gamma", pipe_name)
 		test_pipe_legacy_gamma(data, primary);
 
-	igt_subtest_f("pipe-%s-legacy-gamma-reset", kmstest_pipe_name(p))
+	igt_subtest_f("pipe-%s-legacy-gamma-reset", pipe_name)
 		test_pipe_legacy_gamma_reset(data, primary);
 
 	igt_fixture {
tests/kms_color_chamelium.c +13 -11
index 65a4812b..8a41aa58 100644
@@ -510,6 +510,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	igt_pipe_t *pipe;
 	igt_plane_t *primary;
 	double delta;
+	char *pipe_name;
 	int i;
 	color_t red_green_blue[] = {
 		{ 1.0, 0.0, 0.0 },
@@ -522,6 +523,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 		igt_require(p < data->display.n_pipes);
 
 		pipe = &data->display.pipes[p];
+		pipe_name = kmstest_pipe_name(pipe->pipe);
 		igt_require(pipe->n_planes >= 0);
 
 		primary = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
@@ -549,7 +551,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	delta = 1.0 / (1 << data->color_depth);
 
 	igt_describe("Compare after applying ctm matrix & identity matrix");
-	igt_subtest_f("pipe-%s-ctm-red-to-blue", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-red-to-blue", pipe_name) {
 		color_t blue_green_blue[] = {
 			{ 0.0, 0.0, 1.0 },
 			{ 0.0, 1.0, 0.0 },
@@ -563,7 +565,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	}
 
 	igt_describe("Compare after applying ctm matrix & identity matrix");
-	igt_subtest_f("pipe-%s-ctm-green-to-red", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-green-to-red", pipe_name) {
 		color_t red_red_blue[] = {
 			{ 1.0, 0.0, 0.0 },
 			{ 1.0, 0.0, 0.0 },
@@ -577,7 +579,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	}
 
 	igt_describe("Compare after applying ctm matrix & identity matrix");
-	igt_subtest_f("pipe-%s-ctm-blue-to-red", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-blue-to-red", pipe_name) {
 		color_t red_green_red[] = {
 			{ 1.0, 0.0, 0.0 },
 			{ 0.0, 1.0, 0.0 },
@@ -596,7 +598,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	 * account for odd number of items in the LUTs.
 	 */
 	igt_describe("Compare after applying ctm matrix & identity matrix");
-	igt_subtest_f("pipe-%s-ctm-0-25", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-0-25", pipe_name) {
 		color_t expected_colors[] = {
 			{ 0.0, }, { 0.0, }, { 0.0, }
 		};
@@ -618,7 +620,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	}
 
 	igt_describe("Compare after applying ctm matrix & identity matrix");
-	igt_subtest_f("pipe-%s-ctm-0-5", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-0-5", pipe_name) {
 		color_t expected_colors[] = {
 			{ 0.0, }, { 0.0, }, { 0.0, }
 		};
@@ -640,7 +642,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	}
 
 	igt_describe("Compare after applying ctm matrix & identity matrix");
-	igt_subtest_f("pipe-%s-ctm-0-75", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-0-75", pipe_name) {
 		color_t expected_colors[] = {
 			{ 0.0, }, { 0.0, }, { 0.0, }
 		};
@@ -662,7 +664,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	}
 
 	igt_describe("Compare after applying ctm matrix & identity matrix");
-	igt_subtest_f("pipe-%s-ctm-max", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-max", pipe_name) {
 		color_t full_rgb[] = {
 			{ 1.0, 0.0, 0.0 },
 			{ 0.0, 1.0, 0.0 },
@@ -682,7 +684,7 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	}
 
 	igt_describe("Compare after applying ctm matrix & identity matrix");
-	igt_subtest_f("pipe-%s-ctm-negative", kmstest_pipe_name(p)) {
+	igt_subtest_f("pipe-%s-ctm-negative", pipe_name) {
 		color_t all_black[] = {
 			{ 0.0, 0.0, 0.0 },
 			{ 0.0, 0.0, 0.0 },
@@ -696,15 +698,15 @@ run_tests_for_pipe(data_t *data, enum pipe p)
 	}
 
 	igt_describe("Compare after applying ctm matrix & identity matrix");
-	igt_subtest_f("pipe-%s-ctm-limited-range", kmstest_pipe_name(p))
+	igt_subtest_f("pipe-%s-ctm-limited-range", pipe_name)
 		test_pipe_limited_range_ctm(data, primary);
 
 	igt_describe("Compare maxed out gamma LUT and solid color linear LUT");
-	igt_subtest_f("pipe-%s-degamma", kmstest_pipe_name(p))
+	igt_subtest_f("pipe-%s-degamma", pipe_name)
 		test_pipe_degamma(data, primary);
 
 	igt_describe("Compare maxed out gamma LUT and solid color linear LUT");
-	igt_subtest_f("pipe-%s-gamma", kmstest_pipe_name(p))
+	igt_subtest_f("pipe-%s-gamma", pipe_name)
 		test_pipe_gamma(data, primary);
 
 	igt_fixture {
tests/kms_concurrent.c +4 -2
index 34e4a8bd..78ef13ec 100644
@@ -308,7 +308,8 @@ run_test(data_t *data, enum pipe pipe, igt_output_t *output)
 	connected_outs = 0;
 	for_each_valid_output_on_pipe(&data->display, pipe, output) {
 		igt_info("Testing resolution with connector %s using pipe %s with seed %d\n",
-			 igt_output_name(output), kmstest_pipe_name(pipe), opt.seed);
+			 igt_output_name(output),
+			 kmstest_pipe_name(data->display.pipes[pipe].pipe), opt.seed);
 
 		test_init(data, pipe, n_planes, output);
 
@@ -345,7 +346,8 @@ run_tests_for_pipe(data_t *data, enum pipe pipe)
 		igt_require_f(valid_tests, "no valid crtc/connector combinations found\n");
 	}
 
-	igt_subtest_f("pipe-%s", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s",
+			kmstest_pipe_name(data->display.pipes[pipe].pipe))
 		for_each_valid_output_on_pipe(&data->display, pipe, output)
 			run_test(data, pipe, output);
 }
tests/kms_cursor_crc.c +19 -14
index b337da9c..c8d92283 100644
@@ -681,33 +681,38 @@ static void test_rapid_movement(data_t *data)
 static void run_tests_on_pipe(data_t *data, enum pipe pipe)
 {
 	int cursor_size;
+	igt_display_t *display;
+	const char *pipe_name;
 
 	igt_fixture {
 		data->pipe = pipe;
+		display = &data->display;
 		data->output = igt_get_single_output_for_pipe(&data->display, pipe);
 		igt_require(data->output);
 	}
 
-	igt_subtest_f("pipe-%s-cursor-size-change", kmstest_pipe_name(pipe))
+	pipe_name = kmstest_pipe_name(display->pipes[pipe].pipe);
+
+	igt_subtest_f("pipe-%s-cursor-size-change", pipe_name)
 		run_test(data, test_cursor_size,
 			 data->cursor_max_w, data->cursor_max_h);
 
-	igt_subtest_f("pipe-%s-cursor-alpha-opaque", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-cursor-alpha-opaque",pipe_name)
 		run_test(data, test_cursor_opaque, data->cursor_max_w, data->cursor_max_h);
 
-	igt_subtest_f("pipe-%s-cursor-alpha-transparent", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-cursor-alpha-transparent",pipe_name)
 		run_test(data, test_cursor_transparent, data->cursor_max_w, data->cursor_max_h);
 
 	igt_fixture
 		create_cursor_fb(data, data->cursor_max_w, data->cursor_max_h);
 
-	igt_subtest_f("pipe-%s-cursor-dpms", kmstest_pipe_name(pipe)) {
+	igt_subtest_f("pipe-%s-cursor-dpms", pipe_name) {
 		data->flags = TEST_DPMS;
 		run_test(data, test_crc_random, data->cursor_max_w, data->cursor_max_h);
 	}
 	data->flags = 0;
 
-	igt_subtest_f("pipe-%s-cursor-suspend", kmstest_pipe_name(pipe)) {
+	igt_subtest_f("pipe-%s-cursor-suspend", pipe_name) {
 		data->flags = TEST_SUSPEND;
 		run_test(data, test_crc_random, data->cursor_max_w, data->cursor_max_h);
 	}
@@ -728,16 +733,16 @@ static void run_tests_on_pipe(data_t *data, enum pipe pipe)
 		}
 
 		/* Using created cursor FBs to test cursor support */
-		igt_subtest_f("pipe-%s-cursor-%dx%d-onscreen", kmstest_pipe_name(pipe), w, h)
+		igt_subtest_f("pipe-%s-cursor-%dx%d-onscreen", pipe_name, w, h)
 			run_test(data, test_crc_onscreen, w, h);
-		igt_subtest_f("pipe-%s-cursor-%dx%d-offscreen", kmstest_pipe_name(pipe), w, h)
+		igt_subtest_f("pipe-%s-cursor-%dx%d-offscreen", pipe_name, w, h)
 			run_test(data, test_crc_offscreen, w, h);
-		igt_subtest_f("pipe-%s-cursor-%dx%d-sliding", kmstest_pipe_name(pipe), w, h)
+		igt_subtest_f("pipe-%s-cursor-%dx%d-sliding", pipe_name, w, h)
 			run_test(data, test_crc_sliding, w, h);
-		igt_subtest_f("pipe-%s-cursor-%dx%d-random", kmstest_pipe_name(pipe), w, h)
+		igt_subtest_f("pipe-%s-cursor-%dx%d-random", pipe_name, w, h)
 			run_test(data, test_crc_random, w, h);
 
-		igt_subtest_f("pipe-%s-cursor-%dx%d-rapid-movement", kmstest_pipe_name(pipe), w, h) {
+		igt_subtest_f("pipe-%s-cursor-%dx%d-rapid-movement", pipe_name, w, h) {
 			run_test(data, test_rapid_movement, w, h);
 		}
 
@@ -757,19 +762,19 @@ static void run_tests_on_pipe(data_t *data, enum pipe pipe)
 		}
 
 		/* Using created cursor FBs to test cursor support */
-		igt_subtest_f("pipe-%s-cursor-%dx%d-onscreen", kmstest_pipe_name(pipe), w, h) {
+		igt_subtest_f("pipe-%s-cursor-%dx%d-onscreen", pipe_name, w, h) {
 			igt_require(has_nonsquare_cursors(data));
 			run_test(data, test_crc_onscreen, w, h);
 		}
-		igt_subtest_f("pipe-%s-cursor-%dx%d-offscreen", kmstest_pipe_name(pipe), w, h) {
+		igt_subtest_f("pipe-%s-cursor-%dx%d-offscreen", pipe_name, w, h) {
 			igt_require(has_nonsquare_cursors(data));
 			run_test(data, test_crc_offscreen, w, h);
 		}
-		igt_subtest_f("pipe-%s-cursor-%dx%d-sliding", kmstest_pipe_name(pipe), w, h) {
+		igt_subtest_f("pipe-%s-cursor-%dx%d-sliding", pipe_name, w, h) {
 			igt_require(has_nonsquare_cursors(data));
 			run_test(data, test_crc_sliding, w, h);
 		}
-		igt_subtest_f("pipe-%s-cursor-%dx%d-random", kmstest_pipe_name(pipe), w, h) {
+		igt_subtest_f("pipe-%s-cursor-%dx%d-random", pipe_name, w, h) {
 			igt_require(has_nonsquare_cursors(data));
 			run_test(data, test_crc_random, w, h);
 		}
tests/kms_cursor_edge_walk.c +10 -8
index 600848f8..f6d5a87a 100644
@@ -325,35 +325,37 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 	}
 
 	for_each_pipe_static(&data.display, data.pipe) {
+		const char *pipe_name;
+		igt_display_t *display;
+
 		igt_subtest_group {
 			igt_fixture {
 				igt_display_require_output_on_pipe(&data.display, data.pipe);
 				data.output = igt_get_single_output_for_pipe(&data.display, data.pipe);
 			}
 
+			display = &data.display;
+			pipe_name = kmstest_pipe_name(display->pipes[data.pipe].pipe);
+
 			for (data.curw = 64; data.curw <= 256; data.curw *= 2) {
 				data.curh = data.curw;
 
 				igt_fixture
 					igt_require(data.curw <= max_curw && data.curh <= max_curh);
 
-				igt_subtest_f("pipe-%s-%dx%d-left-edge",
-					kmstest_pipe_name(data.pipe),
+				igt_subtest_f("pipe-%s-%dx%d-left-edge", pipe_name,
 					data.curw, data.curh)
 					test_crtc(&data, EDGE_LEFT);
 
-				igt_subtest_f("pipe-%s-%dx%d-right-edge",
-					kmstest_pipe_name(data.pipe),
+				igt_subtest_f("pipe-%s-%dx%d-right-edge", pipe_name,
 					data.curw, data.curh)
 					test_crtc(&data, EDGE_RIGHT);
 
-				igt_subtest_f("pipe-%s-%dx%d-top-edge",
-					kmstest_pipe_name(data.pipe),
+				igt_subtest_f("pipe-%s-%dx%d-top-edge", pipe_name,
 					data.curw, data.curh)
 					test_crtc(&data, EDGE_TOP);
 
-				igt_subtest_f("pipe-%s-%dx%d-bottom-edge",
-					kmstest_pipe_name(data.pipe),
+				igt_subtest_f("pipe-%s-%dx%d-bottom-edge", pipe_name,
 					data.curw, data.curh)
 					test_crtc(&data, EDGE_BOTTOM);
 			}
tests/kms_cursor_legacy.c +14 -7
index 4be9b114..c556e4d9 100644
@@ -396,7 +396,8 @@ static void flip(igt_display_t *display,
 	cursor_pipe = find_connected_pipe(display, !!cursor_pipe);
 
 	igt_info("Using pipe %s for page flip, pipe %s for cursor\n",
-		  kmstest_pipe_name(flip_pipe), kmstest_pipe_name(cursor_pipe));
+		  kmstest_pipe_name(display->pipes[flip_pipe].pipe),
+		  kmstest_pipe_name(display->pipes[cursor_pipe].pipe));
 
 	if (mode >= flip_test_atomic)
 		igt_require(display->is_atomic);
@@ -1383,19 +1384,25 @@ igt_main
 				igt_skip_on(n >= display.n_pipes);
 			}
 
-			igt_subtest_f("pipe-%s-single-bo", kmstest_pipe_name(n))
+			igt_subtest_f("pipe-%s-single-bo",
+					kmstest_pipe_name(display.pipes[n].pipe))
 				stress(&display, n, 1, DRM_MODE_CURSOR_BO, 20);
-			igt_subtest_f("pipe-%s-single-move", kmstest_pipe_name(n))
+			igt_subtest_f("pipe-%s-single-move",
+					kmstest_pipe_name(display.pipes[n].pipe))
 				stress(&display, n, 1, DRM_MODE_CURSOR_MOVE, 20);
 
-			igt_subtest_f("pipe-%s-forked-bo", kmstest_pipe_name(n))
+			igt_subtest_f("pipe-%s-forked-bo",
+					kmstest_pipe_name(display.pipes[n].pipe))
 				stress(&display, n, ncpus, DRM_MODE_CURSOR_BO, 20);
-			igt_subtest_f("pipe-%s-forked-move", kmstest_pipe_name(n))
+			igt_subtest_f("pipe-%s-forked-move",
+					kmstest_pipe_name(display.pipes[n].pipe))
 				stress(&display, n, ncpus, DRM_MODE_CURSOR_MOVE, 20);
 
-			igt_subtest_f("pipe-%s-torture-bo", kmstest_pipe_name(n))
+			igt_subtest_f("pipe-%s-torture-bo",
+					kmstest_pipe_name(display.pipes[n].pipe))
 				stress(&display, n, -ncpus, DRM_MODE_CURSOR_BO, 20);
-			igt_subtest_f("pipe-%s-torture-move", kmstest_pipe_name(n))
+			igt_subtest_f("pipe-%s-torture-move",
+					kmstest_pipe_name(display.pipes[n].pipe))
 				stress(&display, n, -ncpus, DRM_MODE_CURSOR_MOVE, 20);
 		}
 	}
tests/kms_dp_dsc.c +4 -1
index e2e3aaa0..04bf1059 100644
@@ -185,6 +185,8 @@ static void kms_dp_dsc_exit_handler(int sig)
 static void update_display(data_t *data, enum dsc_test_type test_type)
 {
 	igt_plane_t *primary;
+	igt_display_t *display;
+
 	data->mode = igt_output_get_mode(data->output);
 	data->connector = data->output->config.connector;
 
@@ -226,11 +228,12 @@ static void update_display(data_t *data, enum dsc_test_type test_type)
 
 		enabled = is_dp_dsc_enabled(data);
 		restore_force_dsc_en();
+		display = &data->display;
 
 		igt_assert_f(enabled,
 			     "Default DSC enable failed on Connector: %s Pipe: %s\n",
 			     data->conn_name,
-			     kmstest_pipe_name(data->pipe));
+			     kmstest_pipe_name(display->pipes[data->pipe].pipe));
 	} else {
 		igt_assert(!"Unknown test type\n");
 	}
tests/kms_lease.c +6 -3
index 927c2315..e246dea5 100644
@@ -293,6 +293,7 @@ static int paint_fb(int drm_fd, struct igt_fb *fb, const char *test_name,
 static void simple_lease(data_t *data)
 {
 	lease_t lease;
+	igt_display_t *display;
 
 	/* Create a valid lease */
 	igt_assert_eq(make_lease(data, &lease), 0);
@@ -302,9 +303,11 @@ static void simple_lease(data_t *data)
 	/* Set a mode on the leased output */
 	igt_assert_eq(0, prepare_crtc(&lease, data->connector_id, data->crtc_id));
 
+	display = &lease.display;
 	/* Paint something attractive */
 	paint_fb(lease.fd, &lease.primary_fb, "simple_lease",
-		 lease.mode->name, igt_output_name(lease.output), kmstest_pipe_name(data->pipe));
+		 lease.mode->name, igt_output_name(lease.output),
+		 kmstest_pipe_name(display->pipes[data->pipe].pipe));
 	igt_debug_wait_for_keypress("lease");
 	cleanup_crtc(&lease,
 		     connector_id_to_output(&lease.display, data->connector_id));
@@ -862,7 +865,7 @@ static void run_test(data_t *data, void (*testfunc)(data_t *))
 	for_each_pipe_with_valid_output(display, p, output) {
 		igt_info("Beginning %s on pipe %s, connector %s\n",
 			 igt_subtest_name(),
-			 kmstest_pipe_name(p),
+			 kmstest_pipe_name(display->pipes[p].pipe),
 			 igt_output_name(output));
 
 		data->pipe = p;
@@ -876,7 +879,7 @@ static void run_test(data_t *data, void (*testfunc)(data_t *))
 
 		igt_info("\n%s on pipe %s, connector %s: PASSED\n\n",
 			 igt_subtest_name(),
-			 kmstest_pipe_name(p),
+			 kmstest_pipe_name(display->pipes[p].pipe),
 			 igt_output_name(output));
 
 		valid_tests++;
tests/kms_pipe_crc_basic.c +10 -7
index 9f0af59f..4dc1b2a0 100644
@@ -73,7 +73,7 @@ static void test_read_crc(data_t *data, enum pipe pipe, unsigned flags)
 
 	igt_skip_on(pipe >= data->display.n_pipes);
 	igt_require_f(output, "No connector found for pipe %s\n",
-		      kmstest_pipe_name(pipe));
+		      kmstest_pipe_name(display->pipes[pipe].pipe));
 
 	igt_display_reset(display);
 	igt_output_set_pipe(output, pipe);
@@ -174,19 +174,22 @@ igt_main
 		test_bad_source(&data);
 
 	for_each_pipe_static(&data.display, pipe) {
-		igt_subtest_f("read-crc-pipe-%s", kmstest_pipe_name(pipe))
+		const char *pipe_name;
+
+		pipe_name = kmstest_pipe_name((&data.display)->pipes[pipe].pipe);
+		igt_subtest_f("read-crc-pipe-%s", pipe_name)
 			test_read_crc(&data, pipe, 0);
 
-		igt_subtest_f("read-crc-pipe-%s-frame-sequence", kmstest_pipe_name(pipe))
+		igt_subtest_f("read-crc-pipe-%s-frame-sequence", pipe_name)
 			test_read_crc(&data, pipe, TEST_SEQUENCE);
 
-		igt_subtest_f("nonblocking-crc-pipe-%s", kmstest_pipe_name(pipe))
+		igt_subtest_f("nonblocking-crc-pipe-%s", pipe_name)
 			test_read_crc(&data, pipe, TEST_NONBLOCK);
 
-		igt_subtest_f("nonblocking-crc-pipe-%s-frame-sequence", kmstest_pipe_name(pipe))
+		igt_subtest_f("nonblocking-crc-pipe-%s-frame-sequence", pipe_name)
 			test_read_crc(&data, pipe, TEST_SEQUENCE | TEST_NONBLOCK);
 
-		igt_subtest_f("suspend-read-crc-pipe-%s", kmstest_pipe_name(pipe)) {
+		igt_subtest_f("suspend-read-crc-pipe-%s", pipe_name) {
 			igt_skip_on(pipe >= data.display.n_pipes);
 
 			test_read_crc(&data, pipe, 0);
@@ -197,7 +200,7 @@ igt_main
 			test_read_crc(&data, pipe, 0);
 		}
 
-		igt_subtest_f("hang-read-crc-pipe-%s", kmstest_pipe_name(pipe)) {
+		igt_subtest_f("hang-read-crc-pipe-%s", pipe_name) {
 			igt_hang_t hang = igt_allow_hang(data.drm_fd, 0, 0);
 
 			test_read_crc(&data, pipe, 0);
tests/kms_plane.c +23 -17
index d65b827d..e5ce666e 100644
@@ -171,7 +171,8 @@ test_plane_position_with_output(data_t *data,
 	igt_crc_t crc, crc2;
 
 	igt_info("Testing connector %s using pipe %s plane %d\n",
-		 igt_output_name(output), kmstest_pipe_name(pipe), plane);
+		 igt_output_name(output),
+		 kmstest_pipe_name(data->display.pipes[pipe].pipe), plane);
 
 	igt_output_set_pipe(output, pipe);
 
@@ -307,7 +308,8 @@ test_plane_panning_with_output(data_t *data,
 	igt_crc_t crc;
 
 	igt_info("Testing connector %s using pipe %s plane %d\n",
-		 igt_output_name(output), kmstest_pipe_name(pipe), plane);
+		 igt_output_name(output),
+		 kmstest_pipe_name(data->display.pipes[pipe].pipe), plane);
 
 	igt_output_set_pipe(output, pipe);
 
@@ -659,7 +661,8 @@ static bool test_format_plane_colors(data_t *data, enum pipe pipe,
 
 	if (crc_mismatch_count)
 		igt_warn("CRC mismatches with format " IGT_FORMAT_FMT " on %s.%u with %d/%d solid colors tested (0x%X)\n",
-			 IGT_FORMAT_ARGS(format), kmstest_pipe_name(pipe),
+			 IGT_FORMAT_ARGS(format),
+			 kmstest_pipe_name(data->display.pipes[pipe].pipe),
 			 plane->index, crc_mismatch_count, data->num_colors, crc_mismatch_mask);
 
 	return result;
@@ -674,7 +677,7 @@ static bool test_format_plane_rgb(data_t *data, enum pipe pipe,
 {
 	igt_info("Testing format " IGT_FORMAT_FMT " / modifier 0x%" PRIx64 " on %s.%u\n",
 		 IGT_FORMAT_ARGS(format), modifier,
-		 kmstest_pipe_name(pipe), plane->index);
+		 kmstest_pipe_name(data->display.pipes[pipe].pipe), plane->index);
 
 	return test_format_plane_colors(data, pipe, plane,
 					format, modifier,
@@ -714,7 +717,7 @@ static bool test_format_plane_yuv(data_t *data, enum pipe pipe,
 				 IGT_FORMAT_ARGS(format), modifier,
 				 igt_color_encoding_to_str(e),
 				 igt_color_range_to_str(r),
-				 kmstest_pipe_name(pipe), plane->index);
+				 kmstest_pipe_name(data->display.pipes[pipe].pipe), plane->index);
 
 			result &= test_format_plane_colors(data, pipe, plane,
 							   format, modifier,
@@ -747,7 +750,8 @@ static bool test_format_plane(data_t *data, enum pipe pipe,
 	uint64_t width, height;
 	igt_crc_t ref_crc[ARRAY_SIZE(colors_extended)];
 	bool result = true;
-
+	const char *pipe_name =
+		kmstest_pipe_name(data->display.pipes[pipe].pipe);
 	/*
 	 * No clamping test for cursor plane
 	 */
@@ -773,13 +777,13 @@ static bool test_format_plane(data_t *data, enum pipe pipe,
 
 	igt_debug("Testing connector %s on %s plane %s.%u\n",
 		  igt_output_name(output), kmstest_plane_type_name(plane->type),
-		  kmstest_pipe_name(pipe), plane->index);
+		  pipe_name, plane->index);
 
 	igt_pipe_crc_start(data->pipe_crc);
 
 	igt_info("Testing format " IGT_FORMAT_FMT " / modifier 0x%" PRIx64 " on %s.%u\n",
 		 IGT_FORMAT_ARGS(format), modifier,
-		 kmstest_pipe_name(pipe), plane->index);
+		 pipe_name, plane->index);
 
 	if (data->display.is_atomic) {
 		struct igt_fb test_fb;
@@ -938,44 +942,46 @@ test_pixel_formats(data_t *data, enum pipe pipe)
 static void
 run_tests_for_pipe_plane(data_t *data, enum pipe pipe)
 {
+	const char *pipe_name =
+		kmstest_pipe_name(data->display.pipes[pipe].pipe);
+
 	igt_fixture {
 		igt_skip_on(pipe >= data->display.n_pipes);
 		igt_require(data->display.pipes[pipe].n_planes > 0);
 	}
 
-	igt_subtest_f("pixel-format-pipe-%s-planes",
-		      kmstest_pipe_name(pipe))
+	igt_subtest_f("pixel-format-pipe-%s-planes", pipe_name)
 		test_pixel_formats(data, pipe);
 
 	igt_subtest_f("pixel-format-pipe-%s-planes-source-clamping",
-		      kmstest_pipe_name(pipe)) {
+		      pipe_name) {
 		data->crop = 4;
 		test_pixel_formats(data, pipe);
 	}
 
 	data->crop = 0;
 	igt_subtest_f("plane-position-covered-pipe-%s-planes",
-		      kmstest_pipe_name(pipe))
+		      pipe_name)
 		test_plane_position(data, pipe, TEST_POSITION_FULLY_COVERED);
 
 	igt_subtest_f("plane-position-hole-pipe-%s-planes",
-		      kmstest_pipe_name(pipe))
+		      pipe_name)
 		test_plane_position(data, pipe, 0);
 
 	igt_subtest_f("plane-position-hole-dpms-pipe-%s-planes",
-		      kmstest_pipe_name(pipe))
+		      pipe_name)
 		test_plane_position(data, pipe, TEST_DPMS);
 
 	igt_subtest_f("plane-panning-top-left-pipe-%s-planes",
-		      kmstest_pipe_name(pipe))
+		      pipe_name)
 		test_plane_panning(data, pipe, TEST_PANNING_TOP_LEFT);
 
 	igt_subtest_f("plane-panning-bottom-right-pipe-%s-planes",
-		      kmstest_pipe_name(pipe))
+		      pipe_name)
 		test_plane_panning(data, pipe, TEST_PANNING_BOTTOM_RIGHT);
 
 	igt_subtest_f("plane-panning-bottom-right-suspend-pipe-%s-planes",
-		      kmstest_pipe_name(pipe))
+		      pipe_name)
 		test_plane_panning(data, pipe, TEST_PANNING_BOTTOM_RIGHT |
 					       TEST_SUSPEND_RESUME);
 }
tests/kms_plane_alpha_blend.c +13 -10
index 9bd00e94..35182d58 100644
@@ -514,6 +514,9 @@ static void run_test_on_pipe_planes(data_t *data, enum pipe pipe, bool blend,
 
 static void run_subtests(data_t *data, enum pipe pipe)
 {
+	const char *pipe_name;
+
+	pipe_name = kmstest_pipe_name((&data->display)->pipes[pipe].pipe);
 	igt_fixture {
 		bool found = false;
 		igt_plane_t *plane;
@@ -528,34 +531,34 @@ static void run_subtests(data_t *data, enum pipe pipe)
 		}
 
 		igt_require_f(found, "Found no plane on pipe %s with alpha blending supported\n",
-			      kmstest_pipe_name(pipe));
+			      pipe_name);
 	}
 
-	igt_subtest_f("pipe-%s-alpha-basic", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-alpha-basic", pipe_name)
 		run_test_on_pipe_planes(data, pipe, false, true, basic_alpha);
 
-	igt_subtest_f("pipe-%s-alpha-7efc", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-alpha-7efc", pipe_name)
 		run_test_on_pipe_planes(data, pipe, false, true, alpha_7efc);
 
-	igt_subtest_f("pipe-%s-coverage-7efc", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-coverage-7efc", pipe_name)
 		run_test_on_pipe_planes(data, pipe, true, true, coverage_7efc);
 
-	igt_subtest_f("pipe-%s-coverage-vs-premult-vs-constant", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-coverage-vs-premult-vs-constant", pipe_name)
 		run_test_on_pipe_planes(data, pipe, true, false, coverage_premult_constant);
 
-	igt_subtest_f("pipe-%s-alpha-transparant-fb", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-alpha-transparant-fb", pipe_name)
 		run_test_on_pipe_planes(data, pipe, false, false, argb_transparant);
 
-	igt_subtest_f("pipe-%s-alpha-opaque-fb", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-alpha-opaque-fb", pipe_name)
 		run_test_on_pipe_planes(data, pipe, false, false, argb_opaque);
 
-	igt_subtest_f("pipe-%s-constant-alpha-min", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-constant-alpha-min", pipe_name)
 		run_test_on_pipe_planes(data, pipe, true, false, constant_alpha_min);
 
-	igt_subtest_f("pipe-%s-constant-alpha-mid", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-constant-alpha-mid", pipe_name)
 		run_test_on_pipe_planes(data, pipe, true, false, constant_alpha_mid);
 
-	igt_subtest_f("pipe-%s-constant-alpha-max", kmstest_pipe_name(pipe))
+	igt_subtest_f("pipe-%s-constant-alpha-max", pipe_name)
 		run_test_on_pipe_planes(data, pipe, true, false, constant_alpha_max);
 }
 
tests/kms_plane_cursor.c +9 -7
index 91ba1513..74b305a6 100644
@@ -316,22 +316,24 @@ igt_main
 		igt_display_require_output(&data.display);
 	}
 
-	for_each_pipe_static(&data.display, pipe)
+	for_each_pipe_static(&data.display, pipe) {
+		const char *pipe_name;
+
+		pipe_name = kmstest_pipe_name((&data.display)->pipes[pipe].pipe);
+
 		for (i = 0; i < ARRAY_SIZE(cursor_sizes); ++i) {
 			int size = cursor_sizes[i];
 
-			igt_subtest_f("pipe-%s-overlay-size-%d",
-				      kmstest_pipe_name(pipe), size)
+			igt_subtest_f("pipe-%s-overlay-size-%d", pipe_name, size)
 				test_cursor_overlay(&data, size, pipe);
 
-			igt_subtest_f("pipe-%s-primary-size-%d",
-				      kmstest_pipe_name(pipe), size)
+			igt_subtest_f("pipe-%s-primary-size-%d", pipe_name, size)
 				test_cursor_primary(&data, size, pipe);
 
-			igt_subtest_f("pipe-%s-viewport-size-%d",
-				      kmstest_pipe_name(pipe), size)
+			igt_subtest_f("pipe-%s-viewport-size-%d", pipe_name, size)
 				test_cursor_viewport(&data, size, pipe);
 		}
+	}
 
 	igt_fixture {
 		igt_display_fini(&data.display);
tests/kms_plane_lowres.c +9 -5
index a31cad62..57c01a9a 100644
@@ -268,7 +268,8 @@ test_planes_on_pipe(data_t *data, uint64_t modifier)
 	igt_require(data->output);
 
 	igt_info("Testing connector %s using pipe %s\n",
-		 igt_output_name(data->output), kmstest_pipe_name(data->pipe));
+		 igt_output_name(data->output),
+		 kmstest_pipe_name((&data->display)->pipes[data->pipe].pipe));
 
 	for_each_plane_on_pipe(&data->display, data->pipe, plane) {
 		data->output = igt_get_single_output_for_pipe(&data->display, data->pipe);
@@ -286,6 +287,7 @@ igt_main
 {
 	data_t data = {};
 	enum pipe pipe;
+	const char *pipe_name;
 
 	igt_fixture {
 		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
@@ -301,16 +303,18 @@ igt_main
 
 	for_each_pipe_static(&data.display, pipe) {
 		data.pipe = pipe;
-		igt_subtest_f("pipe-%s-tiling-none", kmstest_pipe_name(pipe))
+		pipe_name = kmstest_pipe_name((&data.display)->pipes[pipe].pipe);
+
+		igt_subtest_f("pipe-%s-tiling-none", pipe_name)
 			test_planes_on_pipe(&data, LOCAL_DRM_FORMAT_MOD_NONE);
 
-		igt_subtest_f("pipe-%s-tiling-x", kmstest_pipe_name(pipe))
+		igt_subtest_f("pipe-%s-tiling-x", pipe_name)
 			test_planes_on_pipe(&data, LOCAL_I915_FORMAT_MOD_X_TILED);
 
-		igt_subtest_f("pipe-%s-tiling-y", kmstest_pipe_name(pipe))
+		igt_subtest_f("pipe-%s-tiling-y", pipe_name)
 			test_planes_on_pipe(&data, LOCAL_I915_FORMAT_MOD_Y_TILED);
 
-		igt_subtest_f("pipe-%s-tiling-yf", kmstest_pipe_name(pipe))
+		igt_subtest_f("pipe-%s-tiling-yf", pipe_name)
 			test_planes_on_pipe(&data, LOCAL_I915_FORMAT_MOD_Yf_TILED);
 	}
 
tests/kms_plane_multiple.c +9 -5
index 7954fef1..c651960d 100644
@@ -327,7 +327,8 @@ test_plane_position_with_output(data_t *data, enum pipe pipe,
 		c--;
 
 	igt_info("Testing connector %s using pipe %s with %d planes %s with seed %d\n",
-		 igt_output_name(output), kmstest_pipe_name(pipe), c,
+		 igt_output_name(output),
+		 kmstest_pipe_name(data->display.pipes[pipe].pipe), c,
 		 info, opt.seed);
 
 	i = 0;
@@ -376,21 +377,24 @@ test_plane_position(data_t *data, enum pipe pipe, uint64_t tiling)
 static void
 run_tests_for_pipe(data_t *data, enum pipe pipe)
 {
+	const char *pipe_name =
+		kmstest_pipe_name(data->display.pipes[pipe].pipe);
+
 	igt_fixture {
 		igt_skip_on(pipe >= data->display.n_pipes);
 		igt_require(data->display.pipes[pipe].n_planes > 0);
 	}
 
-	igt_subtest_f("atomic-pipe-%s-tiling-x", kmstest_pipe_name(pipe))
+	igt_subtest_f("atomic-pipe-%s-tiling-x", pipe_name)
 		test_plane_position(data, pipe, LOCAL_I915_FORMAT_MOD_X_TILED);
 
-	igt_subtest_f("atomic-pipe-%s-tiling-y", kmstest_pipe_name(pipe))
+	igt_subtest_f("atomic-pipe-%s-tiling-y", pipe_name)
 		test_plane_position(data, pipe, LOCAL_I915_FORMAT_MOD_Y_TILED);
 
-	igt_subtest_f("atomic-pipe-%s-tiling-yf", kmstest_pipe_name(pipe))
+	igt_subtest_f("atomic-pipe-%s-tiling-yf", pipe_name)
 		test_plane_position(data, pipe, LOCAL_I915_FORMAT_MOD_Yf_TILED);
 
-	igt_subtest_f("atomic-pipe-%s-tiling-none", kmstest_pipe_name(pipe))
+	igt_subtest_f("atomic-pipe-%s-tiling-none", pipe_name)
 		test_plane_position(data, pipe, LOCAL_DRM_FORMAT_MOD_NONE);
 }
 
tests/kms_plane_scaling.c +11 -6
index d3a3ef61..b1c19ded 100644
@@ -407,7 +407,8 @@ test_plane_scaling_on_pipe(data_t *d, enum pipe pipe, igt_output_t *output)
 						  DRM_PLANE_TYPE_OVERLAY, 0);
 
 	if (!d->plane2) {
-		igt_debug("Plane-2 doesnt exist on pipe %s\n", kmstest_pipe_name(pipe));
+		igt_debug("Plane-2 doesnt exist on pipe %s\n",
+				kmstest_pipe_name(display->pipes[pipe].pipe));
 		return;
 	}
 
@@ -451,7 +452,8 @@ test_plane_scaling_on_pipe(data_t *d, enum pipe pipe, igt_output_t *output)
 	d->plane3 = igt_pipe_get_plane_type_index(pipe_obj,
 						  DRM_PLANE_TYPE_OVERLAY, 1);
 	if(!d->plane3) {
-		igt_debug("Plane-3 doesnt exist on pipe %s\n", kmstest_pipe_name(pipe));
+		igt_debug("Plane-3 doesnt exist on pipe %s\n",
+				kmstest_pipe_name(display->pipes[pipe].pipe));
 		return;
 	}
 
@@ -702,6 +704,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 
 	for_each_pipe_static(&data.display, pipe) igt_subtest_group {
 		igt_output_t *output;
+		const char *pipe_name;
 
 		igt_fixture {
 			igt_display_require_output_on_pipe(&data.display, pipe);
@@ -709,19 +712,21 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 			igt_require(get_num_scalers(&data, pipe) > 0);
 		}
 
-		igt_subtest_f("pipe-%s-plane-scaling", kmstest_pipe_name(pipe))
+		pipe_name = kmstest_pipe_name((&data.display)->pipes[pipe].pipe);
+
+		igt_subtest_f("pipe-%s-plane-scaling", pipe_name)
 			for_each_valid_output_on_pipe(&data.display, pipe, output)
 				test_plane_scaling_on_pipe(&data, pipe, output);
 
-		igt_subtest_f("pipe-%s-scaler-with-pixel-format", kmstest_pipe_name(pipe))
+		igt_subtest_f("pipe-%s-scaler-with-pixel-format", pipe_name)
 			for_each_valid_output_on_pipe(&data.display, pipe, output)
 				test_scaler_with_pixel_format_pipe(&data, pipe, output);
 
-		igt_subtest_f("pipe-%s-scaler-with-rotation", kmstest_pipe_name(pipe))
+		igt_subtest_f("pipe-%s-scaler-with-rotation", pipe_name)
 			for_each_valid_output_on_pipe(&data.display, pipe, output)
 				test_scaler_with_rotation_pipe(&data, pipe, output);
 
-		igt_subtest_f("pipe-%s-scaler-with-clipping-clamping", kmstest_pipe_name(pipe))
+		igt_subtest_f("pipe-%s-scaler-with-clipping-clamping", pipe_name)
 			for_each_valid_output_on_pipe(&data.display, pipe, output)
 				test_scaler_with_clipping_clamping_scenario(&data, pipe, output);
 	}
tests/kms_prime.c +1 -1
index 3241c514..287b13d1 100644
@@ -76,7 +76,7 @@ static igt_output_t *setup_display(int importer_fd, igt_display_t *display,
 	output = igt_get_single_output_for_pipe(display, pipe);
 
 	igt_require_f(output, "No connector found for pipe %s\n",
-		      kmstest_pipe_name(pipe));
+		      kmstest_pipe_name(display->pipes[pipe].pipe));
 
 	igt_display_reset(display);
 	igt_output_set_pipe(output, pipe);
tests/kms_properties.c +6 -3
index b743f9d6..b02fda0c 100644
@@ -192,7 +192,8 @@ static void run_plane_property_tests(igt_display_t *display, enum pipe pipe, igt
 
 	for_each_plane_on_pipe(display, pipe, plane) {
 		igt_info("Testing plane properties on %s.#%d-%s (output: %s)\n",
-			 kmstest_pipe_name(pipe), plane->index, kmstest_plane_type_name(plane->type), output->name);
+			 kmstest_pipe_name(display->pipes[pipe].pipe),
+			 plane->index, kmstest_plane_type_name(plane->type), output->name);
 
 		test_properties(display->drm_fd, DRM_MODE_OBJECT_PLANE, plane->drm_plane->plane_id, atomic);
 	}
@@ -206,7 +207,8 @@ static void run_crtc_property_tests(igt_display_t *display, enum pipe pipe, igt_
 
 	prepare_pipe(display, pipe, output, &fb);
 
-	igt_info("Testing crtc properties on %s (output: %s)\n", kmstest_pipe_name(pipe), output->name);
+	igt_info("Testing crtc properties on %s (output: %s)\n",
+			kmstest_pipe_name(display->pipes[pipe].pipe), output->name);
 
 	test_properties(display->drm_fd, DRM_MODE_OBJECT_CRTC, display->pipes[pipe].crtc_id, atomic);
 
@@ -220,7 +222,8 @@ static void run_connector_property_tests(igt_display_t *display, enum pipe pipe,
 	if (pipe != PIPE_NONE)
 		prepare_pipe(display, pipe, output, &fb);
 
-	igt_info("Testing connector properties on output %s (pipe: %s)\n", output->name, kmstest_pipe_name(pipe));
+	igt_info("Testing connector properties on output %s (pipe: %s)\n",
+			output->name, kmstest_pipe_name(display->pipes[pipe].pipe));
 
 	test_properties(display->drm_fd, DRM_MODE_OBJECT_CONNECTOR, output->id, atomic);
 
tests/kms_rotation_crc.c +2 -1
index 164eade8..d381756a 100644
@@ -323,7 +323,8 @@ static void test_single_case(data_t *data, enum pipe pipe,
 	igt_crc_t crc_output;
 	int ret;
 
-	igt_debug("Testing case %i on pipe %s, format %s\n", rect, kmstest_pipe_name(pipe), igt_format_str(format));
+	igt_debug("Testing case %i on pipe %s, format %s\n", rect,
+			kmstest_pipe_name(display->pipes[pipe].pipe), igt_format_str(format));
 	prepare_fbs(data, output, plane, rect, format);
 
 	igt_plane_set_rotation(plane, data->rotation);
tests/kms_sequence.c +2 -2
index ff2d73cd..5508401e 100644
@@ -170,7 +170,7 @@ static void run_test(data_t *data, int fd, void (*testfunc)(data_t *, int, int))
 
 		igt_info("Beginning %s on pipe %s, connector %s (%d threads)\n",
 			 igt_subtest_name(),
-			 kmstest_pipe_name(data->pipe),
+			 kmstest_pipe_name(display->pipes[data->pipe].pipe),
 			 igt_output_name(output),
 			 nchildren);
 
@@ -197,7 +197,7 @@ static void run_test(data_t *data, int fd, void (*testfunc)(data_t *, int, int))
 
 		igt_info("\n%s on pipe %s, connector %s: PASSED\n\n",
 			 igt_subtest_name(),
-			 kmstest_pipe_name(data->pipe),
+			 kmstest_pipe_name(display->pipes[data->pipe].pipe),
 			 igt_output_name(output));
 
 		/* cleanup what prepare_crtc() has done */
tests/kms_universal_plane.c +8 -11
index fefb15d9..772822c9 100644
@@ -138,7 +138,7 @@ functional_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)
 	igt_skip_on(pipe >= display->n_pipes);
 
 	igt_info("Testing connector %s using pipe %s\n", igt_output_name(output),
-		 kmstest_pipe_name(pipe));
+		 kmstest_pipe_name(data->display.pipes[pipe].pipe));
 
 	functional_test_init(&test, output, pipe);
 
@@ -746,6 +746,7 @@ static void
 run_tests_for_pipe(data_t *data, enum pipe pipe)
 {
 	igt_output_t *output;
+	const char *pipe_name;
 
 	igt_fixture {
 		int valid_tests = 0;
@@ -758,28 +759,24 @@ run_tests_for_pipe(data_t *data, enum pipe pipe)
 		igt_require_f(valid_tests, "no valid crtc/connector combinations found\n");
 	}
 
-	igt_subtest_f("universal-plane-pipe-%s-functional",
-		      kmstest_pipe_name(pipe))
+	pipe_name = kmstest_pipe_name(data->display.pipes[pipe].pipe);
+	igt_subtest_f("universal-plane-pipe-%s-functional", pipe_name)
 		for_each_valid_output_on_pipe(&data->display, pipe, output)
 			functional_test_pipe(data, pipe, output);
 
-	igt_subtest_f("universal-plane-pipe-%s-sanity",
-		      kmstest_pipe_name(pipe))
+	igt_subtest_f("universal-plane-pipe-%s-sanity", pipe_name)
 		for_each_valid_output_on_pipe(&data->display, pipe, output)
 			sanity_test_pipe(data, pipe, output);
 
-	igt_subtest_f("disable-primary-vs-flip-pipe-%s",
-		      kmstest_pipe_name(pipe))
+	igt_subtest_f("disable-primary-vs-flip-pipe-%s", pipe_name)
 		for_each_valid_output_on_pipe(&data->display, pipe, output)
 			pageflip_test_pipe(data, pipe, output);
 
-	igt_subtest_f("cursor-fb-leak-pipe-%s",
-		      kmstest_pipe_name(pipe))
+	igt_subtest_f("cursor-fb-leak-pipe-%s", pipe_name)
 		for_each_valid_output_on_pipe(&data->display, pipe, output)
 			cursor_leak_test_pipe(data, pipe, output);
 
-	igt_subtest_f("universal-plane-gen9-features-pipe-%s",
-		      kmstest_pipe_name(pipe))
+	igt_subtest_f("universal-plane-gen9-features-pipe-%s", pipe_name)
 		for_each_valid_output_on_pipe(&data->display, pipe, output)
 			gen9_test_pipe(data, pipe, output);
 }
tests/kms_vblank.c +7 -4
index 3cd57364..b75c97d8 100644
@@ -124,7 +124,8 @@ static void run_test(data_t *data, void (*testfunc)(data_t *, int, int))
 		igt_require(igt_setup_runtime_pm(fd));
 
 	igt_info("Beginning %s on pipe %s, connector %s\n",
-		 igt_subtest_name(), kmstest_pipe_name(data->pipe),
+		 igt_subtest_name(),
+		 kmstest_pipe_name(display->pipes[data->pipe].pipe),
 		 igt_output_name(output));
 
 	if (!(data->flags & NOHANG))
@@ -163,7 +164,9 @@ static void run_test(data_t *data, void (*testfunc)(data_t *, int, int))
 		igt_post_hang_ring(fd, hang);
 
 	igt_info("\n%s on pipe %s, connector %s: PASSED\n\n",
-		 igt_subtest_name(), kmstest_pipe_name(data->pipe), igt_output_name(output));
+		 igt_subtest_name(),
+		 kmstest_pipe_name(display->pipes[data->pipe].pipe),
+		 igt_output_name(output));
 
 	/* cleanup what prepare_crtc() has done */
 	cleanup_crtc(data, fd, output);
@@ -440,7 +443,7 @@ static void run_subtests_for_pipe(data_t *data)
 				continue;
 
 			igt_subtest_f("pipe-%s-%s-%s",
-				      kmstest_pipe_name(data->pipe),
+				      kmstest_pipe_name(data->display.pipes[data->pipe].pipe),
 				      f->name, m->name) {
 				for_each_valid_output_on_pipe(&data->display, data->pipe, data->output) {
 					data->flags = m->flags | NOHANG;
@@ -453,7 +456,7 @@ static void run_subtests_for_pipe(data_t *data)
 				continue;
 
 			igt_subtest_f("pipe-%s-%s-%s-hang",
-				      kmstest_pipe_name(data->pipe),
+				      kmstest_pipe_name(data->display.pipes[data->pipe].pipe),
 				      f->name, m->name) {
 				igt_hang_t hang;
 
Signature · 6 lines
2.24.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#5 lore raw

Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 8 lines · Mohammed Khajapasha

currently kmstest_pipe_name() fn gets the pipe index value to print the pipe name, but with non-contiguous display, pipe index is not always same as pipe name.

for example: if PIPE_A is disabled in kernel, PIPE_B,C & D get registered with 0,1 & 2 indexes in mode config's crtc list and kmstest_pipe_name() always prints PIPE_A for 0 index which is actually PIPE_B in kernel.

IMO if you have enum pipe pipe in IGT, it should match the kernel pipe.

If you have crtc indexes in igt, then you should call them crtc indexes, *not* pipes.

Otherwise you'll end up completely lost when a pipe is a pipe and when it's not.

tests/kms_atomic_transition.c static void setup_parms(igt_display_t *display, enum pipe pipe, · line 358

Quoted 3 lines
tests/kms_atomic_transition.c +1 -1
 	igt_info("Running test on pipe %s with resolution %dx%d and sprite size %dx%d alpha %i\n",
-		 kmstest_pipe_name(pipe), mode->hdisplay, mode->vdisplay,
+		 kmstest_pipe_name(display->pipes[pipe].pipe), mode->hdisplay, mode->vdisplay,

For example in changes like this my only conclusion is that the pipe is not really a pipe, but something else. So you should probably not call it a pipe to begin with.

BR,
Jani.

Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#6 lore raw

Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 31 lines

-----Original Message-----
From: Jani Nikula <[email protected]>
Sent: Monday, March 9, 2020 2:19 PM
To: Khajapasha, Mohammed <[email protected]>; igt- [email protected]
Subject: Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 8 lines · Mohammed Khajapasha

currently kmstest_pipe_name() fn gets the pipe index value to print the pipe name, but with non-contiguous display, pipe index is not always same as pipe name.

for example: if PIPE_A is disabled in kernel, PIPE_B,C & D get registered with 0,1 & 2 indexes in mode config's crtc list and kmstest_pipe_name() always prints PIPE_A for 0 index which is actually PIPE_B in kernel.

IMO if you have enum pipe pipe in IGT, it should match the kernel pipe.

If you have crtc indexes in igt, then you should call them crtc indexes, *not* pipes.

Otherwise you'll end up completely lost when a pipe is a pipe and when it's not.

Quoted 1 line

igt_info("Running test on pipe %s with resolution %dx%d and sprite

size %dx%d alpha %i\n",

Quoted 9 lines
Quoted 5 lines
(quoted diff) +0 -1
-		 kmstest_pipe_name(pipe), mode->hdisplay, mode-

vdisplay,

(quoted diff) +1 -0
+		 kmstest_pipe_name(display->pipes[pipe].pipe), mode-

hdisplay,
+mode->vdisplay,

For example in changes like this my only conclusion is that the pipe is not really a pipe, but something else. So you should probably not call it a pipe to begin with.

Are you saying, we should get rid of pipe enum and make it array index based? Is my understanding correct?
At present, every IGT subtest iterates over pipe list using "enum pipe" and this is getting passed down.
e.g.
In kms_atomic_transition test, each test case iterate over enum pipe to run the subtest. snippet:
igt_main

{
	igt_display_t display;
	igt_output_t *output;
	enum pipe pipe;
	/*
	*/
	igt_subtest("plane-primary-toggle-with-vblank-wait")
		for_each_pipe_with_valid_output(&display, pipe, output)
			run_primary_test(&display, pipe, output);
	/*
	*/
}

In such case we might have to change all IGT test cases to handle pipe index based instead of enum pipe.

Quoted 6 lines

BR,
Jani.

--
Jani Nikula, Intel Open Source Graphics Center

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#7 lore raw

Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 4 lines · Mohammed

Are you saying, we should get rid of pipe enum and make it array index based? Is my understanding correct? At present, every IGT subtest iterates over pipe list using "enum pipe" and this is getting passed down.

I am saying do not conflate enum pipe and crtc index.

If you call something a pipe, it should be the pipe, not crtc index. And vice versa.

It gets really confusing really quick if you call something a pipe, and then go on to convert it into a pipe, as if it wasn't a pipe already.

In i915 we've removed all assumptions that pipe == crtc index. So should igt.

BR,
Jani.

Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#8 lore raw

Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 8 lines · Jani Nikula
Quoted 4 lines · Mohammed

Are you saying, we should get rid of pipe enum and make it array index based? Is my understanding correct? At present, every IGT subtest iterates over pipe list using "enum pipe" and this is getting passed down.

I am saying do not conflate enum pipe and crtc index.

Quoted 8 lines

If you call something a pipe, it should be the pipe, not crtc index. And vice versa.

It gets really confusing really quick if you call something a pipe, and then go on to convert it into a pipe, as if it wasn't a pipe already.

In i915 we've removed all assumptions that pipe == crtc index. So should igt.

I tend to agree, especially as other hw doens't use the "pipe" terminology, nor do they necessarily refer to them with A/B/C/...

The ugly part would be that we'd have maybe rename all tests with a pipe in the name. Should we just use the crtc index as a bare number in those cases?

This would also have some complications for being able to quickly see which pipe had a specific failure as you have to dig through the logs to get that (though we'd anyway need to do that if the pipes are fused off in a way that makes the crtc index not match the pipe).

Also in some cases we may actually want to know which pipe we're dealing with, but currently there is no convenient way for userspace to find out which pipe maps to which crtc.

Signature · 6 lines
Ville Syrjälä
Intel
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#9 lore raw

Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 30 lines

-----Original Message-----
From: Ville Syrjälä <[email protected]>
Sent: Tuesday, March 10, 2020 5:45 PM
To: Jani Nikula <[email protected]>
Cc: Khajapasha, Mohammed <[email protected]>; igt- [email protected]
Subject: Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 1 line · Jani Nikula

On Tue, 10 Mar 2020, "Khajapasha, Mohammed"

Quoted 7 lines · <[email protected]> wrote:
Quoted 4 lines

Are you saying, we should get rid of pipe enum and make it array index based? Is my understanding correct? At present, every IGT subtest iterates over pipe list using "enum pipe" and this is getting passed down.

I am saying do not conflate enum pipe and crtc index.

Quoted 8 lines

If you call something a pipe, it should be the pipe, not crtc index. And vice versa.

It gets really confusing really quick if you call something a pipe, and then go on to convert it into a pipe, as if it wasn't a pipe already.

In i915 we've removed all assumptions that pipe == crtc index. So should igt.

Quoted 6 lines

I tend to agree, especially as other hw doens't use the "pipe" terminology, nor do they necessarily refer to them with A/B/C/...

The ugly part would be that we'd have maybe rename all tests with a pipe in the name. Should we just use the crtc index as a bare number in those cases?

As per my understandings, yes, we need to use bare number of crtc index to get the pipe in display->pipes[] array for for_each_pipe() macros.

Quoted 10 lines

This would also have some complications for being able to quickly see which pipe had a specific failure as you have to dig through the logs to get that (though we'd anyway need to do that if the pipes are fused off in a way that makes the crtc index not match the pipe).

Also in some cases we may actually want to know which pipe we're dealing with, but currently there is no convenient way for userspace to find out which pipe maps to which crtc.

In this patch series, we are able to map the kernel pipe to IGT pipe using GET_PIPE_FROM_CRTC_ID ioctl, with this we are able to print the logs for failure pipes in IGT.

Quoted 3 lines

--
Ville Syrjälä
Intel

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#10 lore raw

Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 46 lines · Mohammed
Quoted 30 lines

-----Original Message-----
From: Ville Syrjälä <[email protected]>
Sent: Tuesday, March 10, 2020 5:45 PM
To: Jani Nikula <[email protected]>
Cc: Khajapasha, Mohammed <[email protected]>; igt- [email protected]
Subject: Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 1 line · Jani Nikula

On Tue, 10 Mar 2020, "Khajapasha, Mohammed"

Quoted 7 lines · <[email protected]> wrote:
Quoted 4 lines

Are you saying, we should get rid of pipe enum and make it array index based? Is my understanding correct? At present, every IGT subtest iterates over pipe list using "enum pipe" and this is getting passed down.

I am saying do not conflate enum pipe and crtc index.

Quoted 8 lines

If you call something a pipe, it should be the pipe, not crtc index. And vice versa.

It gets really confusing really quick if you call something a pipe, and then go on to convert it into a pipe, as if it wasn't a pipe already.

In i915 we've removed all assumptions that pipe == crtc index. So should igt.

Quoted 6 lines

I tend to agree, especially as other hw doens't use the "pipe" terminology, nor do they necessarily refer to them with A/B/C/...

The ugly part would be that we'd have maybe rename all tests with a pipe in the name. Should we just use the crtc index as a bare number in those cases?

As per my understandings, yes, we need to use bare number of crtc index to get the pipe in display->pipes[] array for for_each_pipe() macros.

Quoted 6 lines

This would also have some complications for being able to quickly see which pipe had a specific failure as you have to dig through the logs to get that (though we'd anyway need to do that if the pipes are fused off in a way that makes the crtc index not match the pipe).

Quoted 7 lines
Quoted 4 lines

Also in some cases we may actually want to know which pipe we're dealing with, but currently there is no convenient way for userspace to find out which pipe maps to which crtc.

In this patch series, we are able to map the kernel pipe to IGT pipe using GET_PIPE_FROM_CRTC_ID ioctl, with this we are able to print the logs for failure pipes in IGT.

Right. I forgot that we had that ioctl.

Signature · 6 lines
Ville Syrjälä
Intel
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#11 lore raw

Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 62 lines

-----Original Message-----
From: Ville Syrjälä <[email protected]>
Sent: Tuesday, March 17, 2020 6:07 PM
To: Khajapasha, Mohammed <[email protected]>
Cc: Jani Nikula <[email protected]>; [email protected]
Subject: Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 19 lines · Mohammed
Quoted 19 lines

-----Original Message-----
From: Ville Syrjälä <[email protected]>
Sent: Tuesday, March 10, 2020 5:45 PM
To: Jani Nikula <[email protected]>
Cc: Khajapasha, Mohammed <[email protected]>; igt- [email protected]
Subject: Re: [igt-dev] [PATCH i-g-t 3/3] kms/test: Pass correct pipe value to print pipe name

Quoted 1 line · Jani Nikula

On Tue, 10 Mar 2020, "Khajapasha, Mohammed"

Quoted 5 lines · <[email protected]> wrote:
Quoted 4 lines

Are you saying, we should get rid of pipe enum and make it array index based? Is my understanding correct? At present, every IGT subtest iterates over pipe list using "enum pipe" and this is getting passed down.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I am saying do not conflate enum pipe and crtc index.

If you call something a pipe, it should be the pipe, not crtc index. And vice versa.

It gets really confusing really quick if you call something a pipe, and then go on to convert it into a pipe, as if it wasn't a pipe

already.

Quoted 24 lines
Quoted 10 lines
Quoted 3 lines

In i915 we've removed all assumptions that pipe == crtc index. So should igt.

I tend to agree, especially as other hw doens't use the "pipe" terminology, nor do they necessarily refer to them with A/B/C/...

The ugly part would be that we'd have maybe rename all tests with a pipe in the name. Should we just use the crtc index as a bare number in those cases?

As per my understandings, yes, we need to use bare number of crtc index to get the pipe in display->pipes[] array for for_each_pipe() macros.

Quoted 10 lines

This would also have some complications for being able to quickly see which pipe had a specific failure as you have to dig through the logs to get that (though we'd anyway need to do that if the pipes are fused off in a way that makes the crtc index not match the pipe).

Also in some cases we may actually want to know which pipe we're dealing with, but currently there is no convenient way for userspace to find out which pipe maps to which crtc.

Quoted 5 lines
Quoted 3 lines

In this patch series, we are able to map the kernel pipe to IGT pipe using GET_PIPE_FROM_CRTC_ID ioctl, with this we are able to print the logs for failure pipes in IGT.

Right. I forgot that we had that ioctl.

I have sent a sample RFC patch https://patchwork.freedesktop.org/patch/358020/ for review by using bare crtc index for display->pipes[] array to get a pipe in kms atomic transition test case. If the change is acceptable, will update all remaining test cases in this series.

Quoted 3 lines

--
Ville Syrjälä
Intel

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#12 lore raw

[igt-dev] ✗ Fi.CI.BUILD: failure for test/kms: Add support for display with non-contiguous pipes

In reply to Mohammed Khajapasha
== Series Details ==

== Series Details ==

Series: test/kms: Add support for display with non-contiguous pipes
URL : https://patchwork.freedesktop.org/series/74431/
State : failure

== Summary ==

IGT patchset build failed on latest successful build 2e23cf6f63fc6ba1d9543f8327698d6f21813cec i915/gem_exec_nop: One more parallel nop variant

Checking invalid option handling...
Checking valid option handling...
Checking subtest enumeration...
test does seem to be using igt_main() (should have subtests) and yet --list-subtests is empty!
FAIL: tests/kms_plane_alpha_blend
-------

72/283 testcase check: kms_plane_cursor FAIL 0.22 s (exit status 1)

--- command ---
/home/cidrm/igt-gpu-tools/tests/igt_command_line.sh kms_plane_cursor
--- stdout ---
tests/kms_plane_cursor:
Checking invalid option handling...
Checking valid option handling...
Checking subtest enumeration...
test does seem to be using igt_main() (should have subtests) and yet --list-subtests is empty!
FAIL: tests/kms_plane_cursor
-------

73/283 testcase check: kms_plane_lowres FAIL 0.17 s (exit status 1)

--- command ---
/home/cidrm/igt-gpu-tools/tests/igt_command_line.sh kms_plane_lowres
--- stdout ---
tests/kms_plane_lowres:
Checking invalid option handling...
Checking valid option handling...
Checking subtest enumeration...
test does seem to be using igt_main() (should have subtests) and yet --list-subtests is empty!
FAIL: tests/kms_plane_lowres
-------

74/283 testcase check: kms_plane_multiple FAIL 0.16 s (exit status 1)

--- command ---
/home/cidrm/igt-gpu-tools/tests/igt_command_line.sh kms_plane_multiple
--- stdout ---
tests/kms_plane_multiple:
Checking invalid option handling...
Checking valid option handling...
Checking subtest enumeration...
test does seem to be using igt_main() (should have subtests) and yet --list-subtests is empty!
FAIL: tests/kms_plane_multiple
-------

Full log written to /home/cidrm/igt-gpu-tools/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/python3 -u /usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#13 lore raw

[igt-dev] ✗ GitLab.Pipeline: warning for test/kms: Add support for display with non-contiguous pipes

In reply to Mohammed Khajapasha
== Series Details ==

== Series Details ==

Series: test/kms: Add support for display with non-contiguous pipes
URL : https://patchwork.freedesktop.org/series/74431/
State : warning

== Summary ==

Did not get list of undocumented tests for this run, something is wrong!

Other than that, pipeline status: FAILED.

see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/117422 for the overview.

test:ninja-test has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1867407):
--- stdout ---
tests/kms_plane_multiple:
Checking invalid option handling...
Checking valid option handling...
Checking subtest enumeration...
test does seem to be using igt_main() (should have subtests) and yet --list-subtests is empty!
FAIL: tests/kms_plane_multiple
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1583743716:build_script section_start:1583743716:after_script section_end:1583743717:after_script section_start:1583743717:upload_artifacts_on_failure section_end:1583743719:upload_artifacts_on_failure
ERROR: Job failed: exit code 1

test:ninja-test-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1867413):
Checking valid option handling...
Checking subtest enumeration...
test does seem to be using igt_main() (should have subtests) and yet --list-subtests is empty!
FAIL: tests/kms_plane_multiple
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1583743853:build_script section_start:1583743853:after_script section_end:1583743855:after_script section_start:1583743855:upload_artifacts_on_failure
Uploading artifacts...
build: found 1367 matching files
Uploading artifacts to coordinator... ok id=1867413 responseStatus=201 Created token=QihTyF6M
section_end:1583743865:upload_artifacts_on_failure
ERROR: Job failed: exit code 1

test:ninja-test-armhf has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1867412):
Checking valid option handling...
Checking subtest enumeration...
test does seem to be using igt_main() (should have subtests) and yet --list-subtests is empty!
FAIL: tests/kms_plane_lowres
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1583743824:build_script section_start:1583743824:after_script section_end:1583743826:after_script section_start:1583743826:upload_artifacts_on_failure
Uploading artifacts...
build: found 1369 matching files
Uploading artifacts to coordinator... ok id=1867412 responseStatus=201 Created token=Q2SFDAgq
section_end:1583743835:upload_artifacts_on_failure
ERROR: Job failed: exit code 1

test:ninja-test-clang has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1867408):
--- stdout ---
tests/kms_plane_multiple:
Checking invalid option handling...
Checking valid option handling...
Checking subtest enumeration...
test does seem to be using igt_main() (should have subtests) and yet --list-subtests is empty!
FAIL: tests/kms_plane_multiple
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1583743723:build_script section_start:1583743723:after_script section_end:1583743724:after_script section_start:1583743724:upload_artifacts_on_failure section_end:1583743726:upload_artifacts_on_failure
ERROR: Job failed: exit code 1

test:ninja-test-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1867415):
Checking valid option handling...
Checking subtest enumeration...
test does seem to be using igt_main() (should have subtests) and yet --list-subtests is empty!
FAIL: tests/kms_plane_multiple
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1583744103:build_script section_start:1583744103:after_script section_end:1583744105:after_script section_start:1583744105:upload_artifacts_on_failure
Uploading artifacts...
build: found 1367 matching files
Uploading artifacts to coordinator... ok id=1867415 responseStatus=201 Created token=Q7jPbghv
section_end:1583744115:upload_artifacts_on_failure
ERROR: Job failed: exit code 1

== Logs ==

For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/117422
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev