Skip to contentSkip to conversation

tests/kms_multipipe_modeset: Add negative test for multiple display config

PATCH In review Nidhi Gupta 3 participants 5 messages Dec 28, 2022 – Mar 29, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_multipipe_modeset: Add negative test for multiple display config

When 3-4 displays are connceted any platform will only support maximum 5k resolution simulataneously.

If 3 or more displays are connected forcing 8k resolution on all the displays and check if this scenario is handled properly or not.

---
 tests/kms_multipipe_modeset.c | 74 ++++++++++++++++++++++++++---------
 1 file changed, 56 insertions(+), 18 deletions(-)
tests/kms_multipipe_modeset.c +56 -18
index 1fdfb9a9..46c17235 100644
@@ -31,10 +31,10 @@ IGT_TEST_DESCRIPTION("Test simultaneous modeset on all the supported pipes");
 typedef struct {
 	int drm_fd;
 	igt_display_t display;
-	struct igt_fb fb;
+	struct igt_fb fb0, fb1;
 } data_t;
 
-static void run_test(data_t *data, int valid_outputs)
+static void run_test(data_t *data, int valid_outputs, bool resolution)
 {
 	igt_output_t *output;
 	igt_pipe_crc_t *pipe_crcs[IGT_MAX_PIPES] = { 0 };
@@ -44,7 +44,8 @@ static void run_test(data_t *data, int valid_outputs)
 	igt_pipe_t *pipe;
 	igt_plane_t *plane;
 	drmModeModeInfo *mode;
-	int i = 0;
+	drmModeModeInfo *mode1;
+	int i = 0, ret = 0;
 
 	for_each_connected_output(display, output) {
 		mode = igt_output_get_mode(output);
@@ -57,10 +58,15 @@ static void run_test(data_t *data, int valid_outputs)
 	}
 
 	igt_create_pattern_fb(data->drm_fd, width, height, DRM_FORMAT_XRGB8888,
-			      DRM_FORMAT_MOD_LINEAR, &data->fb);
+				DRM_FORMAT_MOD_LINEAR, &data->fb0);
+	igt_create_pattern_fb(data->drm_fd, 7680, 4320, DRM_FORMAT_XRGB8888,
+				DRM_FORMAT_MOD_LINEAR, &data->fb1);
 
 	/* Collect reference CRC by Committing individually on all outputs*/
 	for_each_connected_output(display, output) {
+		if (resolution == true)
+			break;
+
 		pipe = &display->pipes[i];
 		plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
 
@@ -73,8 +79,8 @@ static void run_test(data_t *data, int valid_outputs)
 		mode = igt_output_get_mode(output);
 		igt_assert(mode);
 
-		igt_plane_set_fb(plane, &data->fb);
-		igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
+		igt_plane_set_fb(plane, &data->fb0);
+		igt_fb_set_size(&data->fb0, plane, mode->hdisplay, mode->vdisplay);
 		igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
 
 		igt_display_commit2(display, COMMIT_ATOMIC);
@@ -86,6 +92,8 @@ static void run_test(data_t *data, int valid_outputs)
 	i = 0;
 	/* Simultaneously commit on all outputs */
 	for_each_connected_output(display, output) {
+		if (resolution == true)
+			break;
 		pipe = &display->pipes[i];
 		plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
 
@@ -95,25 +103,50 @@ static void run_test(data_t *data, int valid_outputs)
 		mode = igt_output_get_mode(output);
 		igt_assert(mode);
 
-		igt_plane_set_fb(plane, &data->fb);
-		igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
+		igt_plane_set_fb(plane, &data->fb0);
+		igt_fb_set_size(&data->fb0, plane, mode->hdisplay, mode->vdisplay);
 		igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
 		i++;
 	}
 
-	igt_display_commit2(display, COMMIT_ATOMIC);
-
-	/* CRC Verification */
-	for (i = 0; i < valid_outputs; i++) {
-		igt_pipe_crc_collect_crc(pipe_crcs[i], &new_crcs[i]);
-		igt_assert_crc_equal(&ref_crcs[i], &new_crcs[i]);
+	i = 0;
+	/* Simultaneously commit on all outputs with 8k display which should result in fail*/
+	for_each_connected_output(display, output) {
+		if (resolution == false)
+			break;
+		pipe = &display->pipes[i];
+		plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
+		igt_output_set_pipe(output, i);
+		mode = igt_output_get_mode(output);
+		igt_skip_on_f(mode->hdisplay < 7680, "No suitable resolution was found\n");
+
+		mode1->hdisplay = 7680;
+		mode1->vdisplay = 4320;
+		igt_output_override_mode(output, mode1);
+		igt_plane_set_fb(plane, &data->fb1);
+		igt_fb_set_size(&data->fb1, plane, mode1->hdisplay, mode1->vdisplay);
+		igt_plane_set_size(plane, mode1->hdisplay, mode1->vdisplay);
+		i++;
 	}
 
+	if (resolution == true) {
+		igt_skip_on_f(i >= 3, "Displays connected should be more than 2\n");
+		ret = igt_display_try_commit2(display, COMMIT_ATOMIC);
+		igt_assert(ret == -EINVAL);
+	} else {
+		igt_display_commit2(display, COMMIT_ATOMIC);
+
+		/* CRC Verification */
+		for (i = 0; i < valid_outputs; i++) {
+			igt_pipe_crc_collect_crc(pipe_crcs[i], &new_crcs[i]);
+			igt_assert_crc_equal(&ref_crcs[i], &new_crcs[i]);
+		}
+	}
 	igt_plane_set_fb(plane, NULL);
-	igt_remove_fb(data->drm_fd, &data->fb);
+	igt_remove_fb(data->drm_fd, &data->fb0);
 }
 
-static void test_multipipe(data_t *data, int num_pipes)
+static void test_multipipe(data_t *data, int num_pipes, bool resolution)
 {
 	igt_output_t *output;
 	int valid_outputs = 0;
@@ -125,7 +158,7 @@ static void test_multipipe(data_t *data, int num_pipes)
 		      "Number of connected outputs(%d) not equal to the "
 		      "number of pipes supported(%d)\n", valid_outputs, num_pipes);
 
-	run_test(data, valid_outputs);
+	run_test(data, valid_outputs, resolution);
 }
 
 igt_main
@@ -147,7 +180,12 @@ igt_main
 	igt_describe("Verify if simultaneous modesets on all the supported "
 		     "pipes is successful. Validate using CRC verification");
 	igt_subtest("basic-max-pipe-crc-check")
-		test_multipipe(&data, res->count_crtcs);
+		test_multipipe(&data, res->count_crtcs, false);
+
+	igt_describe("Verify if simulataneous modesets on all the connected"
+		     "displays with invalid resolution should fail");
+	igt_subtest("basic-8k-resolution-check")
+		test_multipipe(&data, res->count_crtcs, true);
 
 	igt_fixture {
 		drmModeFreeResources(res);
Signature · 1 line
2.25.1
#1 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for tests/kms_multipipe_modeset: Add negative test for multiple display config

== Series Details ==

== Series Details ==

Series: tests/kms_multipipe_modeset: Add negative test for multiple display config
URL : https://patchwork.freedesktop.org/series/112263/
State : success

== Summary ==

CI Bug Log - changes from IGT_7104 -> IGTPW_8277
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/index.html

Participating hosts (42 -> 42)
------------------------------

Additional (1): bat-adlm-1
Missing (1): fi-rkl-11600

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_8277:

### IGT changes ###

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_suspend@basic-s3-without-i915:
- {bat-adlm-1}: NOTRUN -> [DMESG-WARN][1] +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/bat-adlm-1/igt@[email protected]

Known issues
------------

Here are the changes found in IGTPW_8277 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@i915_selftest@live@late_gt_pm:
- fi-kbl-soraka: [PASS][2] -> [INCOMPLETE][3] ([i915#7640])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/fi-kbl-soraka/igt@i915_selftest@live@late_gt_pm.html
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/fi-kbl-soraka/igt@i915_selftest@live@late_gt_pm.html

#### Possible fixes ####

* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: [FAIL][4] ([i915#7229]) -> [PASS][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/fi-pnv-d510/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/fi-pnv-d510/igt@[email protected]

* igt@i915_selftest@live@slpc:
- {bat-rpls-1}: [DMESG-FAIL][6] ([i915#6367]) -> [PASS][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/bat-rpls-1/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/bat-rpls-1/igt@i915_selftest@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6687]: https://gitlab.freedesktop.org/drm/intel/issues/6687
[i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997
[i915#7229]: https://gitlab.freedesktop.org/drm/intel/issues/7229
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7640]: https://gitlab.freedesktop.org/drm/intel/issues/7640

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_7104 -> IGTPW_8277

CI-20190529: 20190529
CI_DRM_12526: 34f2552b43d664ce4b76c6e356a57b7835f59c81 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8277: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/index.html
IGT_7104: fe5def13049225967770eaaf19ec01ef80e2adc5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

Testlist changes
----------------

+igt@kms_multipipe_modeset@basic-8k-resolution-check

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/index.html

#2 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for tests/kms_multipipe_modeset: Add negative test for multiple display config

In reply to Nidhi Gupta
== Series Details ==

== Series Details ==

Series: tests/kms_multipipe_modeset: Add negative test for multiple display config
URL : https://patchwork.freedesktop.org/series/112263/
State : success

== Summary ==

CI Bug Log - changes from IGT_7104_full -> IGTPW_8277_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/index.html

Participating hosts (10 -> 10)
------------------------------

No changes in participating hosts

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_8277_full:

### IGT changes ###

#### Possible regressions ####

* {igt@kms_multipipe_modeset@basic-8k-resolution-check} (NEW):
- {shard-rkl}: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-4/igt@[email protected]
- {shard-dg1}: NOTRUN -> [SKIP][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-dg1-16/igt@[email protected]
- {shard-tglu}: NOTRUN -> [SKIP][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-tglu-4/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@kms_vblank@pipe-b-query-busy-hang:
- {shard-dg1}: [PASS][4] -> [SKIP][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-dg1-16/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-dg1-13/igt@[email protected]

New tests
---------

New tests have been introduced between IGT_7104_full and IGTPW_8277_full:

### New IGT tests (1) ###

* igt@kms_multipipe_modeset@basic-8k-resolution-check:
- Statuses : 6 skip(s)
- Exec time: [0.0] s

Known issues
------------

Here are the changes found in IGTPW_8277_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_persistence@legacy-engines-cleanup:
- shard-snb: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#1099])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-snb4/igt@[email protected]

* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [PASS][7] -> [FAIL][8] ([i915#2842]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-glk2/igt@gem_exec_fair@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-glk3/igt@gem_exec_fair@[email protected]

* igt@gem_huc_copy@huc-copy:
- shard-apl: NOTRUN -> [SKIP][9] ([fdo#109271] / [i915#2190])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl2/igt@[email protected]

* igt@gen9_exec_parse@allowed-single:
- shard-apl: [PASS][10] -> [DMESG-WARN][11] ([i915#5566] / [i915#716])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-apl1/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl6/igt@[email protected]
- shard-glk: [PASS][12] -> [DMESG-WARN][13] ([i915#5566] / [i915#716])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-glk5/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-glk6/igt@[email protected]

* igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs:
- shard-apl: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#3886]) +4 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl2/igt@kms_ccs@pipe-b-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html

* igt@kms_ccs@pipe-b-random-ccs-data-4_tiled_dg2_rc_ccs:
- shard-apl: NOTRUN -> [SKIP][15] ([fdo#109271]) +102 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl1/igt@kms_ccs@pipe-b-random-ccs-data-4_tiled_dg2_rc_ccs.html

* igt@kms_chamelium@dp-edid-stress-resolution-non-4k:
- shard-glk: NOTRUN -> [SKIP][16] ([fdo#109271] / [fdo#111827]) +2 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-glk9/igt@[email protected]

* igt@kms_color_chamelium@ctm-red-to-blue:
- shard-apl: NOTRUN -> [SKIP][17] ([fdo#109271] / [fdo#111827]) +4 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl1/igt@[email protected]
- shard-snb: NOTRUN -> [SKIP][18] ([fdo#109271] / [fdo#111827]) +2 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-snb2/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-hdmi-a1:
- shard-glk: [PASS][19] -> [FAIL][20] ([i915#2122])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-glk3/igt@kms_flip@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-glk4/igt@kms_flip@[email protected]

* igt@kms_psr2_sf@cursor-plane-update-sf:
- shard-apl: NOTRUN -> [SKIP][21] ([fdo#109271] / [i915#658]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl2/igt@[email protected]

* igt@kms_psr2_su@frontbuffer-xrgb8888:
- shard-glk: NOTRUN -> [SKIP][22] ([fdo#109271] / [i915#658]) +1 similar issue
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-glk3/igt@[email protected]

* igt@kms_rotation_crc@sprite-rotation-270:
- shard-snb: NOTRUN -> [SKIP][23] ([fdo#109271]) +88 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-snb2/igt@[email protected]

* igt@kms_vrr@negative-basic:
- shard-glk: NOTRUN -> [SKIP][24] ([fdo#109271]) +49 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-glk4/igt@[email protected]

* igt@sysfs_clients@recycle-many:
- shard-apl: NOTRUN -> [SKIP][25] ([fdo#109271] / [i915#2994])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl3/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][26] ([fdo#109271] / [i915#2994])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-glk4/igt@[email protected]

#### Possible fixes ####

* igt@fbdev@read:
- {shard-dg1}: [FAIL][27] -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-dg1-12/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-dg1-18/igt@[email protected]
- shard-apl: [FAIL][29] -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-apl6/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl6/igt@[email protected]
- shard-snb: [FAIL][31] -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-snb5/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-snb4/igt@[email protected]
- shard-glk: [FAIL][33] -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-glk3/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-glk4/igt@[email protected]

* igt@gem_eio@in-flight-suspend:
- {shard-rkl}: [FAIL][35] ([fdo#103375]) -> [PASS][36] +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-3/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-2/igt@[email protected]

* igt@gem_eio@kms:
- {shard-dg1}: [FAIL][37] ([i915#5784]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-dg1-19/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-dg1-17/igt@[email protected]

* igt@gem_exec_endless@dispatch@bcs0:
- {shard-rkl}: [SKIP][39] ([i915#6247]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-5/igt@gem_exec_endless@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-2/igt@gem_exec_endless@[email protected]

* igt@gem_exec_fair@basic-deadline:
- {shard-rkl}: [FAIL][41] ([i915#2846]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-3/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-3/igt@[email protected]

* igt@gem_exec_reloc@basic-gtt-cpu:
- {shard-rkl}: [SKIP][43] ([i915#3281]) -> [PASS][44] +7 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-4/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-5/igt@[email protected]

* igt@gem_mmap_gtt@coherency:
- {shard-rkl}: [SKIP][45] ([fdo#111656]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-3/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-5/igt@[email protected]

* igt@gem_partial_pwrite_pread@write-display:
- {shard-rkl}: [SKIP][47] ([i915#3282]) -> [PASS][48] +1 similar issue
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-6/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-5/igt@[email protected]

* igt@gem_workarounds@suspend-resume:
- shard-apl: [DMESG-WARN][49] ([i915#180]) -> [PASS][50] +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-apl1/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl3/igt@[email protected]

* igt@gen9_exec_parse@bb-chained:
- {shard-rkl}: [SKIP][51] ([i915#2527]) -> [PASS][52] +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-3/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-5/igt@[email protected]

* igt@i915_pm_dc@dc6-dpms:
- {shard-rkl}: [SKIP][53] ([i915#3361]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-5/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-2/igt@[email protected]

* igt@i915_pm_dc@dc9-dpms:
- {shard-rkl}: [FAIL][55] -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-6/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-6/igt@[email protected]

* igt@i915_pm_rpm@pm-tiling:
- {shard-rkl}: [SKIP][57] ([fdo#109308]) -> [PASS][58] +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-3/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-6/igt@[email protected]

* igt@kms_big_fb@linear-max-hw-stride-32bpp-rotate-180:
- shard-snb: [SKIP][59] ([fdo#109271]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-snb4/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-snb5/igt@[email protected]

* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- {shard-rkl}: [SKIP][61] ([i915#1845] / [i915#4098]) -> [PASS][62] +21 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-5/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-6/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html

* igt@kms_cursor_legacy@flip-vs-cursor@atomic-transitions-varying-size:
- shard-glk: [FAIL][63] ([i915#2346]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-glk5/igt@kms_cursor_legacy@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-glk1/igt@kms_cursor_legacy@[email protected]

* igt@kms_cursor_legacy@forked-bo@pipe-b:
- shard-glk: [DMESG-WARN][65] ([i915#118]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-glk2/igt@kms_cursor_legacy@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-glk8/igt@kms_cursor_legacy@[email protected]

* igt@kms_fbcon_fbt@psr-suspend:
- {shard-rkl}: [SKIP][67] ([i915#3955]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-4/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-indfb-draw-render:
- {shard-rkl}: [SKIP][69] ([i915#1849] / [i915#4098]) -> [PASS][70] +14 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-3/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-indfb-draw-render.html
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-6/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-indfb-draw-render.html

* igt@kms_plane@plane-panning-bottom-right@pipe-a-planes:
- {shard-rkl}: [SKIP][71] ([i915#1849] / [i915#3558]) -> [PASS][72] +1 similar issue
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-2/igt@kms_plane@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-6/igt@kms_plane@[email protected]

* igt@kms_plane@plane-position-hole-dpms@pipe-b-planes:
- {shard-rkl}: [SKIP][73] ([i915#3558]) -> [PASS][74] +3 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-4/igt@kms_plane@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-6/igt@kms_plane@[email protected]

* igt@kms_psr@sprite_mmap_gtt:
- {shard-rkl}: [SKIP][75] ([i915#1072]) -> [PASS][76] +1 similar issue
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-5/igt@kms_psr@sprite_mmap_gtt.html
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-6/igt@kms_psr@sprite_mmap_gtt.html

* igt@perf@gen12-unprivileged-single-ctx-counters:
- {shard-rkl}: [SKIP][77] ([fdo#109289]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-5/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-1/igt@[email protected]

* igt@perf@polling-small-buf:
- {shard-rkl}: [FAIL][79] ([i915#1722]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-4/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-5/igt@[email protected]

* igt@testdisplay:
- {shard-rkl}: [SKIP][81] ([i915#4098]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-rkl-1/[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-rkl-6/[email protected]

#### Warnings ####

* igt@runner@aborted:
- shard-apl: ([FAIL][83], [FAIL][84], [FAIL][85], [FAIL][86]) ([fdo#109271] / [i915#180] / [i915#3002] / [i915#4312]) -> ([FAIL][87], [FAIL][88], [FAIL][89]) ([fdo#109271] / [i915#3002] / [i915#4312])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-apl7/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-apl6/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-apl1/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7104/shard-apl2/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl6/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl6/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/shard-apl2/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109300]: https://bugs.freedesktop.org/show_bug.cgi?id=109300
[fdo#109307]: https://bugs.freedesktop.org/show_bug.cgi?id=109307
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1099]: https://gitlab.freedesktop.org/drm/intel/issues/1099
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[i915#1755]: https://gitlab.freedesktop.org/drm/intel/issues/1755
[i915#1769]: https://gitlab.freedesktop.org/drm/intel/issues/1769
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1850]: https://gitlab.freedesktop.org/drm/intel/issues/1850
[i915#1902]: https://gitlab.freedesktop.org/drm/intel/issues/1902
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2436]: https://gitlab.freedesktop.org/drm/intel/issues/2436
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2532]: https://gitlab.freedesktop.org/drm/intel/issues/2532
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#284]: https://gitlab.freedesktop.org/drm/intel/issues/284
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2846]: https://gitlab.freedesktop.org/drm/intel/issues/2846
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3002]: https://gitlab.freedesktop.org/drm/intel/issues/3002
[i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3323]: https://gitlab.freedesktop.org/drm/intel/issues/3323
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3361]: https://gitlab.freedesktop.org/drm/intel/issues/3361
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3558]: https://gitlab.freedesktop.org/drm/intel/issues/3558
[i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#3966]: https://gitlab.freedesktop.org/drm/intel/issues/3966
[i915#404]: https://gitlab.freedesktop.org/drm/intel/issues/404
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4767]: https://gitlab.freedesktop.org/drm/intel/issues/4767
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4880]: https://gitlab.freedesktop.org/drm/intel/issues/4880
[i915#4991]: https://gitlab.freedesktop.org/drm/intel/issues/4991
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#5327]: https://gitlab.freedesktop.org/drm/intel/issues/5327
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5566]: https://gitlab.freedesktop.org/drm/intel/issues/5566
[i915#5723]: https://gitlab.freedesktop.org/drm/intel/issues/5723
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6227]: https://gitlab.freedesktop.org/drm/intel/issues/6227
[i915#6247]: https://gitlab.freedesktop.org/drm/intel/issues/6247
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6412]: https://gitlab.freedesktop.org/drm/intel/issues/6412
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6590]: https://gitlab.freedesktop.org/drm/intel/issues/6590
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7128]: https://gitlab.freedesktop.org/drm/intel/issues/7128
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#7443]: https://gitlab.freedesktop.org/drm/intel/issues/7443
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7582]: https://gitlab.freedesktop.org/drm/intel/issues/7582
[i915#7651]: https://gitlab.freedesktop.org/drm/intel/issues/7651
[i915#7681]: https://gitlab.freedesktop.org/drm/intel/issues/7681
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_7104 -> IGTPW_8277

CI-20190529: 20190529
CI_DRM_12526: 34f2552b43d664ce4b76c6e356a57b7835f59c81 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8277: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/index.html
IGT_7104: fe5def13049225967770eaaf19ec01ef80e2adc5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8277/index.html

#3 lore raw
In reply to Nidhi Gupta
Quoted 6 lines · Nidhi Gupta

When 3-4 displays are connceted any platform will only support maximum 5k resolution simulataneously.

If 3 or more displays are connected forcing 8k resolution on all the displays and check if this scenario is handled properly or not.

Each 8K will require 2 pipes. So, at max we can have 2 8K connected atm.
What's the idea behind this test?

Quoted 154 lines
---
  tests/kms_multipipe_modeset.c | 74 ++++++++++++++++++++++++++---------
  1 file changed, 56 insertions(+), 18 deletions(-)
tests/kms_multipipe_modeset.c +56 -18
index 1fdfb9a9..46c17235 100644
@@ -31,10 +31,10 @@ IGT_TEST_DESCRIPTION("Test simultaneous modeset on all the supported pipes");
  typedef struct {
  	int drm_fd;
  	igt_display_t display;
-	struct igt_fb fb;
+	struct igt_fb fb0, fb1;
  } data_t;
 
-static void run_test(data_t *data, int valid_outputs)
+static void run_test(data_t *data, int valid_outputs, bool resolution)
  {
  	igt_output_t *output;
  	igt_pipe_crc_t *pipe_crcs[IGT_MAX_PIPES] = { 0 };
@@ -44,7 +44,8 @@ static void run_test(data_t *data, int valid_outputs)
  	igt_pipe_t *pipe;
  	igt_plane_t *plane;
  	drmModeModeInfo *mode;
-	int i = 0;
+	drmModeModeInfo *mode1;
+	int i = 0, ret = 0;
 
  	for_each_connected_output(display, output) {
  		mode = igt_output_get_mode(output);
@@ -57,10 +58,15 @@ static void run_test(data_t *data, int valid_outputs)
  	}
 
  	igt_create_pattern_fb(data->drm_fd, width, height, DRM_FORMAT_XRGB8888,
-			      DRM_FORMAT_MOD_LINEAR, &data->fb);
+				DRM_FORMAT_MOD_LINEAR, &data->fb0);
+	igt_create_pattern_fb(data->drm_fd, 7680, 4320, DRM_FORMAT_XRGB8888,
+				DRM_FORMAT_MOD_LINEAR, &data->fb1);
 
  	/* Collect reference CRC by Committing individually on all outputs*/
  	for_each_connected_output(display, output) {
+		if (resolution == true)
+			break;
+
  		pipe = &display->pipes[i];
  		plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
 
@@ -73,8 +79,8 @@ static void run_test(data_t *data, int valid_outputs)
  		mode = igt_output_get_mode(output);
  		igt_assert(mode);
 
-		igt_plane_set_fb(plane, &data->fb);
-		igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
+		igt_plane_set_fb(plane, &data->fb0);
+		igt_fb_set_size(&data->fb0, plane, mode->hdisplay, mode->vdisplay);
  		igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
 
  		igt_display_commit2(display, COMMIT_ATOMIC);
@@ -86,6 +92,8 @@ static void run_test(data_t *data, int valid_outputs)
  	i = 0;
  	/* Simultaneously commit on all outputs */
  	for_each_connected_output(display, output) {
+		if (resolution == true)
+			break;
  		pipe = &display->pipes[i];
  		plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
 
@@ -95,25 +103,50 @@ static void run_test(data_t *data, int valid_outputs)
  		mode = igt_output_get_mode(output);
  		igt_assert(mode);
 
-		igt_plane_set_fb(plane, &data->fb);
-		igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
+		igt_plane_set_fb(plane, &data->fb0);
+		igt_fb_set_size(&data->fb0, plane, mode->hdisplay, mode->vdisplay);
  		igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
  		i++;
  	}
 
-	igt_display_commit2(display, COMMIT_ATOMIC);
-
-	/* CRC Verification */
-	for (i = 0; i < valid_outputs; i++) {
-		igt_pipe_crc_collect_crc(pipe_crcs[i], &new_crcs[i]);
-		igt_assert_crc_equal(&ref_crcs[i], &new_crcs[i]);
+	i = 0;
+	/* Simultaneously commit on all outputs with 8k display which should result in fail*/
+	for_each_connected_output(display, output) {
+		if (resolution == false)
+			break;
+		pipe = &display->pipes[i];
+		plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
+		igt_output_set_pipe(output, i);
+		mode = igt_output_get_mode(output);
+		igt_skip_on_f(mode->hdisplay < 7680, "No suitable resolution was found\n");
+
+		mode1->hdisplay = 7680;
+		mode1->vdisplay = 4320;
+		igt_output_override_mode(output, mode1);
+		igt_plane_set_fb(plane, &data->fb1);
+		igt_fb_set_size(&data->fb1, plane, mode1->hdisplay, mode1->vdisplay);
+		igt_plane_set_size(plane, mode1->hdisplay, mode1->vdisplay);
+		i++;
  	}
 
+	if (resolution == true) {
+		igt_skip_on_f(i >= 3, "Displays connected should be more than 2\n");
+		ret = igt_display_try_commit2(display, COMMIT_ATOMIC);
+		igt_assert(ret == -EINVAL);
+	} else {
+		igt_display_commit2(display, COMMIT_ATOMIC);
+
+		/* CRC Verification */
+		for (i = 0; i < valid_outputs; i++) {
+			igt_pipe_crc_collect_crc(pipe_crcs[i], &new_crcs[i]);
+			igt_assert_crc_equal(&ref_crcs[i], &new_crcs[i]);
+		}
+	}
  	igt_plane_set_fb(plane, NULL);
-	igt_remove_fb(data->drm_fd, &data->fb);
+	igt_remove_fb(data->drm_fd, &data->fb0);
  }
 
-static void test_multipipe(data_t *data, int num_pipes)
+static void test_multipipe(data_t *data, int num_pipes, bool resolution)
  {
  	igt_output_t *output;
  	int valid_outputs = 0;
@@ -125,7 +158,7 @@ static void test_multipipe(data_t *data, int num_pipes)
  		      "Number of connected outputs(%d) not equal to the "
  		      "number of pipes supported(%d)\n", valid_outputs, num_pipes);
 
-	run_test(data, valid_outputs);
+	run_test(data, valid_outputs, resolution);
  }
 
  igt_main
@@ -147,7 +180,12 @@ igt_main
  	igt_describe("Verify if simultaneous modesets on all the supported "
  		     "pipes is successful. Validate using CRC verification");
  	igt_subtest("basic-max-pipe-crc-check")
-		test_multipipe(&data, res->count_crtcs);
+		test_multipipe(&data, res->count_crtcs, false);
+
+	igt_describe("Verify if simulataneous modesets on all the connected"
+		     "displays with invalid resolution should fail");
+	igt_subtest("basic-8k-resolution-check")
+		test_multipipe(&data, res->count_crtcs, true);
 
  	igt_fixture {
  		drmModeFreeResources(res);
Signature · 1 line
~Swati Sharma
#4 lore raw

Hi Swati,

From bspec I check when more than 2 displays are connected maximum resolution supported is 5k simultaneously on all displays So thought we can have a negative test around this by having more than 2 8k connected together.

Quoted 198 lines

-----Original Message-----
From: Sharma, Swati2 <[email protected]>
Sent: Saturday, December 31, 2022 1:31 AM
To: Gupta, Nidhi1 <[email protected]>; [email protected]
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_multipipe_modeset: Add negative test for multiple display config

Quoted 5 lines · Nidhi Gupta

When 3-4 displays are connceted any platform will only support maximum 5k resolution simulataneously.

If 3 or more displays are connected forcing 8k resolution on all the displays and check if this scenario is handled properly or not.

Each 8K will require 2 pipes. So, at max we can have 2 8K connected atm.
What's the idea behind this test?

tests/kms_multipipe_modeset.c IGT_TEST_DESCRIPTION("Test simultaneous modeset

Quoted 11 lines
---
  tests/kms_multipipe_modeset.c | 74 ++++++++++++++++++++++++++---------
  1 file changed, 56 insertions(+), 18 deletions(-)
(quoted diff) +0 -0

b/tests/kms_multipipe_modeset.c index 1fdfb9a9..46c17235 100644

tests/kms_multipipe_modeset.c +0 -0
@@ -31,10 +31,10 @@ IGT_TEST_DESCRIPTION("Test simultaneous modeset

on all the supported pipes");

Quoted 17 lines
tests/kms_multipipe_modeset.c +3 -2
  typedef struct {
  	int drm_fd;
  	igt_display_t display;
-	struct igt_fb fb;
+	struct igt_fb fb0, fb1;
  } data_t;
 
-static void run_test(data_t *data, int valid_outputs)
+static void run_test(data_t *data, int valid_outputs, bool
+resolution)
  {
  	igt_output_t *output;
  	igt_pipe_crc_t *pipe_crcs[IGT_MAX_PIPES] = { 0 }; @@ -44,7 +44,8 @@

static void run_test(data_t *data, int valid_outputs)
igt_pipe_t *pipe;
igt_plane_t *plane;
drmModeModeInfo *mode;

tests/kms_multipipe_modeset.c static void run_test(data_t *data, int valid_outputs)

Quoted 6 lines
tests/kms_multipipe_modeset.c +2 -1
-	int i = 0;
+	drmModeModeInfo *mode1;
+	int i = 0, ret = 0;
 
  	for_each_connected_output(display, output) {
  		mode = igt_output_get_mode(output); @@ -57,10 +58,15 @@

static

Quoted 4 lines

void run_test(data_t *data, int valid_outputs)
}

igt_create_pattern_fb(data->drm_fd, width, height,

DRM_FORMAT_XRGB8888,

tests/kms_multipipe_modeset.c static void run_test(data_t *data, int valid_outputs)

Quoted 3 lines
tests/kms_multipipe_modeset.c +2 -1
-			      DRM_FORMAT_MOD_LINEAR, &data->fb);
+				DRM_FORMAT_MOD_LINEAR, &data->fb0);
+	igt_create_pattern_fb(data->drm_fd, 7680, 4320,

DRM_FORMAT_XRGB8888,

tests/kms_multipipe_modeset.c static void run_test(data_t *data, int valid_outputs)

Quoted 9 lines
tests/kms_multipipe_modeset.c +4 -0
+				DRM_FORMAT_MOD_LINEAR, &data->fb1);
 
  	/* Collect reference CRC by Committing individually on all outputs*/
  	for_each_connected_output(display, output) {
+		if (resolution == true)
+			break;
+
  		pipe = &display->pipes[i];
  		plane = igt_pipe_get_plane_type(pipe,

DRM_PLANE_TYPE_PRIMARY);

Quoted 13 lines
tests/kms_multipipe_modeset.c +2 -2
@@ -73,8 +79,8 @@ static void run_test(data_t *data, int valid_outputs)
  		mode = igt_output_get_mode(output);
  		igt_assert(mode);
 
-		igt_plane_set_fb(plane, &data->fb);
-		igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode-
 vdisplay);
+		igt_plane_set_fb(plane, &data->fb0);
+		igt_fb_set_size(&data->fb0, plane, mode->hdisplay, mode-
 vdisplay);
  		igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
Quoted 1 line

igt_display_commit2(display, COMMIT_ATOMIC); @@ -86,6

+92,8 @@

tests/kms_multipipe_modeset.c static void run_test(data_t *data, int valid_outputs)

Quoted 8 lines

static void run_test(data_t *data, int valid_outputs)
i = 0;
/* Simultaneously commit on all outputs */ for_each_connected_output(display, output) {

tests/kms_multipipe_modeset.c +2 -0
+		if (resolution == true)
+			break;
  		pipe = &display->pipes[i];
  		plane = igt_pipe_get_plane_type(pipe,

DRM_PLANE_TYPE_PRIMARY);

Quoted 13 lines
tests/kms_multipipe_modeset.c +2 -2
@@ -95,25 +103,50 @@ static void run_test(data_t *data, int valid_outputs)
  		mode = igt_output_get_mode(output);
  		igt_assert(mode);
 
-		igt_plane_set_fb(plane, &data->fb);
-		igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode-
 vdisplay);
+		igt_plane_set_fb(plane, &data->fb0);
+		igt_fb_set_size(&data->fb0, plane, mode->hdisplay, mode-
 vdisplay);
  		igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
  		i++;

tests/kms_multipipe_modeset.c static void run_test(data_t *data, int valid_outputs) · line 115

Quoted 10 lines
tests/kms_multipipe_modeset.c +2 -6
  	}
 
-	igt_display_commit2(display, COMMIT_ATOMIC);
-
-	/* CRC Verification */
-	for (i = 0; i < valid_outputs; i++) {
-		igt_pipe_crc_collect_crc(pipe_crcs[i], &new_crcs[i]);
-		igt_assert_crc_equal(&ref_crcs[i], &new_crcs[i]);
+	i = 0;
+	/* Simultaneously commit on all outputs with 8k display which should

result in fail*/

tests/kms_multipipe_modeset.c static void run_test(data_t *data, int valid_outputs)

Quoted 5 lines
tests/kms_multipipe_modeset.c +5 -0
+	for_each_connected_output(display, output) {
+		if (resolution == false)
+			break;
+		pipe = &display->pipes[i];
+		plane = igt_pipe_get_plane_type(pipe,

DRM_PLANE_TYPE_PRIMARY);

tests/kms_multipipe_modeset.c static void run_test(data_t *data, int valid_outputs)

Quoted 3 lines
tests/kms_multipipe_modeset.c +3 -0
+		igt_output_set_pipe(output, i);
+		mode = igt_output_get_mode(output);
+		igt_skip_on_f(mode->hdisplay < 7680, "No suitable resolution

was

Quoted 4 lines
tests/kms_multipipe_modeset.c +4 -0
+found\n");
+
+		mode1->hdisplay = 7680;
+		mode1->vdisplay = 4320;

tests/kms_multipipe_modeset.c static void run_test(data_t *data, int valid_outputs)

Quoted 10 lines
tests/kms_multipipe_modeset.c +7 -0
+		igt_output_override_mode(output, mode1);
+		igt_plane_set_fb(plane, &data->fb1);
+		igt_fb_set_size(&data->fb1, plane, mode1->hdisplay, mode1-
 vdisplay);
+		igt_plane_set_size(plane, mode1->hdisplay, mode1->vdisplay);
+		i++;
  	}
 
+	if (resolution == true) {
+		igt_skip_on_f(i >= 3, "Displays connected should be more than

2\n");

tests/kms_multipipe_modeset.c static void test_multipipe(data_t *data, int

Quoted 23 lines
tests/kms_multipipe_modeset.c +14 -2
+		ret = igt_display_try_commit2(display, COMMIT_ATOMIC);
+		igt_assert(ret == -EINVAL);
+	} else {
+		igt_display_commit2(display, COMMIT_ATOMIC);
+
+		/* CRC Verification */
+		for (i = 0; i < valid_outputs; i++) {
+			igt_pipe_crc_collect_crc(pipe_crcs[i], &new_crcs[i]);
+			igt_assert_crc_equal(&ref_crcs[i], &new_crcs[i]);
+		}
+	}
  	igt_plane_set_fb(plane, NULL);
-	igt_remove_fb(data->drm_fd, &data->fb);
+	igt_remove_fb(data->drm_fd, &data->fb0);
  }
 
-static void test_multipipe(data_t *data, int num_pipes)
+static void test_multipipe(data_t *data, int num_pipes, bool
+resolution)
  {
  	igt_output_t *output;
  	int valid_outputs = 0;
@@ -125,7 +158,7 @@ static void test_multipipe(data_t *data, int

num_pipes)

Quoted 13 lines
tests/kms_multipipe_modeset.c +1 -1
  		      "Number of connected outputs(%d) not equal to the "
  		      "number of pipes supported(%d)\n", valid_outputs,
 num_pipes);
 
-	run_test(data, valid_outputs);
+	run_test(data, valid_outputs, resolution);
  }
 

igt_main

tests/kms_multipipe_modeset.c +0 -0
@@ -147,7 +180,12 @@ igt_main
  	igt_describe("Verify if simultaneous modesets on all the supported "
  		     "pipes is successful. Validate using CRC verification");
  	igt_subtest("basic-max-pipe-crc-check")

tests/kms_multipipe_modeset.c igt_main · line 191

Quoted 10 lines
tests/kms_multipipe_modeset.c +6 -1
-		test_multipipe(&data, res->count_crtcs);
+		test_multipipe(&data, res->count_crtcs, false);
+
+	igt_describe("Verify if simulataneous modesets on all the connected"
+		     "displays with invalid resolution should fail");
+	igt_subtest("basic-8k-resolution-check")
+		test_multipipe(&data, res->count_crtcs, true);
 
  	igt_fixture {
  		drmModeFreeResources(res);

--
~Swati Sharma