All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Add test to validate big joiner
@ 2020-06-24  9:42 Karthik B S
  2020-06-24 10:46 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Karthik B S @ 2020-06-24  9:42 UTC (permalink / raw)
  To: igt-dev

Added negative test to verify the different scenarios for big joiner.
In the test, modeset is done on Pipe A for a big joiner mode and
a second modeset is attempted on Pipe B which is expected to fail.
Same functionality is validated for other pipes as well.

Secondly, the reverse is tested where a modeset is done on Pipe B
and then a second big joiner modeset is attempted on Pipe A which is
expected to fail. Same functionality is validated for other pipes as well.

Signed-off-by: Karthik B S <karthik.b.s@intel.com>
---
 tests/Makefile.sources |   1 +
 tests/kms_big_joiner.c | 171 +++++++++++++++++++++++++++++++++++++++++
 tests/meson.build      |   1 +
 3 files changed, 173 insertions(+)
 create mode 100644 tests/kms_big_joiner.c

diff --git a/tests/Makefile.sources b/tests/Makefile.sources
index af900bcf..c761eb92 100644
--- a/tests/Makefile.sources
+++ b/tests/Makefile.sources
@@ -35,6 +35,7 @@ TESTS_progs = \
 	kms_atomic_transition \
 	kms_available_modes_crc \
 	kms_big_fb \
+	kms_big_joiner \
 	kms_busy \
 	kms_ccs \
 	kms_concurrent \
diff --git a/tests/kms_big_joiner.c b/tests/kms_big_joiner.c
new file mode 100644
index 00000000..125ea0b1
--- /dev/null
+++ b/tests/kms_big_joiner.c
@@ -0,0 +1,171 @@
+/*
+ * Copyright © 2020 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Author:
+ *  Karthik B S <karthik.b.s@intel.com>
+ */
+
+#include "igt.h"
+
+#define HDISPLAY_5K 5120
+
+IGT_TEST_DESCRIPTION("Test big joiner");
+
+typedef struct {
+	int drm_fd;
+	igt_display_t display;
+	struct igt_fb fb;
+} data_t;
+
+static void test_invalid_modeset(data_t *data)
+{
+	drmModeModeInfo *mode;
+	igt_display_t *display = &data->display;
+	igt_output_t *output, *big_joiner_output = NULL, *second_output = NULL;
+	int width = 0, height = 0, i, ret;
+	igt_pipe_t *pipe;
+	igt_plane_t *plane;
+
+	for_each_connected_output(display, output) {
+		mode = &output->config.connector->modes[0];
+
+		width = max(width, mode->hdisplay);
+		height = max(height, mode->vdisplay);
+
+		if (mode->hdisplay >= HDISPLAY_5K && big_joiner_output == NULL)
+			big_joiner_output = output;
+		else if (second_output == NULL)
+			second_output = output;
+
+		igt_output_set_pipe(output, PIPE_NONE);
+	}
+
+	igt_create_pattern_fb(data->drm_fd, width, height, DRM_FORMAT_XRGB8888,
+			      LOCAL_DRM_FORMAT_MOD_NONE, &data->fb);
+
+	for_each_pipe(display, i) {
+		if (i < (data->display.n_pipes - 1)) {
+			igt_output_set_pipe(big_joiner_output, i);
+
+			mode = &big_joiner_output->config.connector->modes[0];
+
+			pipe = &display->pipes[i];
+			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
+
+			igt_plane_set_fb(plane, &data->fb);
+			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
+			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
+
+			igt_display_commit2(&data->display, COMMIT_ATOMIC);
+			igt_output_set_pipe(second_output, i + 1);
+
+			mode = igt_output_get_mode(second_output);
+
+			pipe = &display->pipes[i + 1];
+			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
+
+			igt_plane_set_fb(plane, &data->fb);
+			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
+			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
+
+			/* This commit is expectd to fail as this pipe is being used for big joiner */
+			ret = igt_display_try_commit_atomic(&data->display, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
+			igt_assert_lt(ret, 0);
+
+			igt_output_set_pipe(big_joiner_output, PIPE_NONE);
+			igt_output_set_pipe(second_output, PIPE_NONE);
+		}
+	}
+
+	for_each_pipe(display, i) {
+		if (i < (data->display.n_pipes - 1)) {
+			igt_output_set_pipe(second_output, i + 1);
+
+			mode = igt_output_get_mode(second_output);
+
+			pipe = &display->pipes[i + 1];
+			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
+
+			igt_plane_set_fb(plane, &data->fb);
+			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
+			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
+
+			igt_display_commit2(&data->display, COMMIT_ATOMIC);
+
+			igt_output_set_pipe(big_joiner_output, i);
+
+			mode = &big_joiner_output->config.connector->modes[0];
+
+			pipe = &display->pipes[i];
+			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
+
+			igt_plane_set_fb(plane, &data->fb);
+			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
+			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
+
+			/* This commit is expected to fail as the adjacent pipe is already in use*/
+			ret = igt_display_try_commit_atomic(&data->display, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
+			igt_assert_lt(ret, 0);
+
+			igt_output_set_pipe(big_joiner_output, PIPE_NONE);
+			igt_output_set_pipe(second_output, PIPE_NONE);
+		}
+	}
+
+	igt_plane_set_fb(plane, NULL);
+	igt_remove_fb(data->drm_fd, &data->fb);
+}
+
+igt_main
+{
+	data_t data;
+	bool big_joiner_mode_found = false;
+	igt_output_t *output;
+	drmModeModeInfo *mode;
+	int valid_output = 0;
+
+	igt_fixture {
+		data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
+		kmstest_set_vt_graphics_mode();
+
+		igt_display_require(&data.display, data.drm_fd);
+
+		for_each_connected_output(&data.display, output) {
+			mode = &output->config.connector->modes[0];
+			if (mode->hdisplay >= HDISPLAY_5K)
+				big_joiner_mode_found = true;
+
+			valid_output++;
+		}
+
+		igt_require_f(big_joiner_mode_found, "No output with 5k+ mode found\n");
+		igt_require_f(valid_output > 1, "No valid Second output found\n");
+	}
+
+	igt_describe("Verify if the modeset on the adjoining pipe is rejected"
+		     "when the pipe is active with a big joiner modeset");
+	igt_subtest("invalid-modeset")
+		test_invalid_modeset(&data);
+
+	igt_fixture
+		igt_display_fini(&data.display);
+}
diff --git a/tests/meson.build b/tests/meson.build
index 28091794..430b43de 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -19,6 +19,7 @@ test_progs = [
 	'kms_atomic_transition',
 	'kms_available_modes_crc',
 	'kms_big_fb',
+	'kms_big_joiner' ,
 	'kms_busy',
 	'kms_ccs',
 	'kms_concurrent',
-- 
2.22.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_big_joiner: Add test to validate big joiner
  2020-06-24  9:42 [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Add test to validate big joiner Karthik B S
@ 2020-06-24 10:46 ` Patchwork
  2020-06-24 14:02 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
  2020-08-13 22:58 ` [igt-dev] [PATCH i-g-t] " Navare, Manasi
  2 siblings, 0 replies; 7+ messages in thread
From: Patchwork @ 2020-06-24 10:46 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev

== Series Details ==

Series: tests/kms_big_joiner: Add test to validate big joiner
URL   : https://patchwork.freedesktop.org/series/78769/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_8661 -> IGTPW_4700
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

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

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

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

### IGT changes ###

#### Issues hit ####

  * igt@i915_pm_rpm@module-reload:
    - fi-glk-dsi:         [PASS][1] -> [DMESG-WARN][2] ([i915#1982])
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/fi-glk-dsi/igt@i915_pm_rpm@module-reload.html
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-glk-dsi/igt@i915_pm_rpm@module-reload.html

  * igt@kms_busy@basic@flip:
    - fi-kbl-x1275:       [PASS][3] -> [DMESG-WARN][4] ([i915#62] / [i915#92] / [i915#95])
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/fi-kbl-x1275/igt@kms_busy@basic@flip.html
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-kbl-x1275/igt@kms_busy@basic@flip.html

  * igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1:
    - fi-icl-u2:          [PASS][5] -> [DMESG-WARN][6] ([i915#1982]) +1 similar issue
   [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/fi-icl-u2/igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1.html
   [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-icl-u2/igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1.html

  * igt@kms_psr@primary_page_flip:
    - fi-tgl-u2:          [PASS][7] -> [SKIP][8] ([i915#668]) +3 similar issues
   [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/fi-tgl-u2/igt@kms_psr@primary_page_flip.html
   [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-tgl-u2/igt@kms_psr@primary_page_flip.html

  
#### Possible fixes ####

  * igt@gem_exec_suspend@basic-s3:
    - fi-tgl-u2:          [FAIL][9] ([i915#1888]) -> [PASS][10] +1 similar issue
   [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/fi-tgl-u2/igt@gem_exec_suspend@basic-s3.html
   [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-tgl-u2/igt@gem_exec_suspend@basic-s3.html

  * igt@i915_module_load@reload:
    - {fi-tgl-dsi}:       [DMESG-WARN][11] ([i915#1982]) -> [PASS][12] +2 similar issues
   [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/fi-tgl-dsi/igt@i915_module_load@reload.html
   [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-tgl-dsi/igt@i915_module_load@reload.html

  * igt@i915_selftest@live@gt_lrc:
    - fi-tgl-u2:          [DMESG-FAIL][13] ([i915#1233]) -> [PASS][14]
   [13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/fi-tgl-u2/igt@i915_selftest@live@gt_lrc.html
   [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-tgl-u2/igt@i915_selftest@live@gt_lrc.html

  * igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
    - fi-icl-u2:          [DMESG-WARN][15] ([i915#1982]) -> [PASS][16]
   [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/fi-icl-u2/igt@kms_cursor_legacy@basic-flip-after-cursor-legacy.html
   [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-icl-u2/igt@kms_cursor_legacy@basic-flip-after-cursor-legacy.html

  
#### Warnings ####

  * igt@kms_flip@basic-flip-vs-modeset@a-dp1:
    - fi-kbl-x1275:       [DMESG-WARN][17] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][18] ([i915#62] / [i915#92]) +3 similar issues
   [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/fi-kbl-x1275/igt@kms_flip@basic-flip-vs-modeset@a-dp1.html
   [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-kbl-x1275/igt@kms_flip@basic-flip-vs-modeset@a-dp1.html

  * igt@prime_vgem@basic-fence-flip:
    - fi-kbl-x1275:       [DMESG-WARN][19] ([i915#62] / [i915#92]) -> [DMESG-WARN][20] ([i915#62] / [i915#92] / [i915#95]) +1 similar issue
   [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/fi-kbl-x1275/igt@prime_vgem@basic-fence-flip.html
   [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-kbl-x1275/igt@prime_vgem@basic-fence-flip.html

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

  [i915#1233]: https://gitlab.freedesktop.org/drm/intel/issues/1233
  [i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
  [i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
  [i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
  [i915#668]: https://gitlab.freedesktop.org/drm/intel/issues/668
  [i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
  [i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95


Participating hosts (44 -> 38)
------------------------------

  Missing    (6): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-bdw-samus 


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

  * CI: CI-20190529 -> None
  * IGT: IGT_5717 -> IGTPW_4700

  CI-20190529: 20190529
  CI_DRM_8661: 64cab0b9f9bfeb14d3ec2452d76b56915cdeb09f @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_4700: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/index.html
  IGT_5717: 725bf2dae51f0087eaa64f1931a2ef9d22f070dd @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools



== Testlist changes ==

+igt@kms_big_joiner@invalid-modeset

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/index.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* [igt-dev] ✗ Fi.CI.IGT: failure for tests/kms_big_joiner: Add test to validate big joiner
  2020-06-24  9:42 [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Add test to validate big joiner Karthik B S
  2020-06-24 10:46 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
@ 2020-06-24 14:02 ` Patchwork
  2020-08-13 22:58 ` [igt-dev] [PATCH i-g-t] " Navare, Manasi
  2 siblings, 0 replies; 7+ messages in thread
From: Patchwork @ 2020-06-24 14:02 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev

== Series Details ==

Series: tests/kms_big_joiner: Add test to validate big joiner
URL   : https://patchwork.freedesktop.org/series/78769/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_8661_full -> IGTPW_4700_full
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with IGTPW_4700_full absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in IGTPW_4700_full, please notify your bug team to allow them
  to document this new failure mode, which will reduce false positives in CI.

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

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

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

### IGT changes ###

#### Possible regressions ####

  * {igt@kms_big_joiner@invalid-modeset} (NEW):
    - shard-iclb:         NOTRUN -> [SKIP][1]
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-iclb4/igt@kms_big_joiner@invalid-modeset.html
    - shard-tglb:         NOTRUN -> [SKIP][2]
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-tglb3/igt@kms_big_joiner@invalid-modeset.html

  * igt@perf@buffer-fill:
    - shard-glk:          [PASS][3] -> [FAIL][4]
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-glk2/igt@perf@buffer-fill.html
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk1/igt@perf@buffer-fill.html

  
New tests
---------

  New tests have been introduced between CI_DRM_8661_full and IGTPW_4700_full:

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

  * igt@kms_big_joiner@invalid-modeset:
    - Statuses : 7 skip(s)
    - Exec time: [0.0] s

  

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

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

### IGT changes ###

#### Issues hit ####

  * igt@dumb_buffer@map-invalid-size:
    - shard-snb:          [PASS][5] -> [TIMEOUT][6] ([i915#1958]) +2 similar issues
   [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-snb4/igt@dumb_buffer@map-invalid-size.html
   [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-snb5/igt@dumb_buffer@map-invalid-size.html
    - shard-hsw:          [PASS][7] -> [TIMEOUT][8] ([i915#1958]) +1 similar issue
   [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-hsw8/igt@dumb_buffer@map-invalid-size.html
   [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-hsw1/igt@dumb_buffer@map-invalid-size.html

  * igt@gem_exec_whisper@basic-fds-priority:
    - shard-glk:          [PASS][9] -> [DMESG-WARN][10] ([i915#118] / [i915#95]) +1 similar issue
   [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-glk2/igt@gem_exec_whisper@basic-fds-priority.html
   [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk4/igt@gem_exec_whisper@basic-fds-priority.html

  * igt@gen9_exec_parse@allowed-all:
    - shard-kbl:          [PASS][11] -> [DMESG-WARN][12] ([i915#1436] / [i915#716])
   [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl7/igt@gen9_exec_parse@allowed-all.html
   [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl1/igt@gen9_exec_parse@allowed-all.html

  * igt@kms_big_fb@linear-64bpp-rotate-0:
    - shard-glk:          [PASS][13] -> [DMESG-FAIL][14] ([i915#118] / [i915#95])
   [13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-glk9/igt@kms_big_fb@linear-64bpp-rotate-0.html
   [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk8/igt@kms_big_fb@linear-64bpp-rotate-0.html

  * igt@kms_color@pipe-c-ctm-max:
    - shard-kbl:          [PASS][15] -> [FAIL][16] ([i915#168])
   [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl6/igt@kms_color@pipe-c-ctm-max.html
   [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@kms_color@pipe-c-ctm-max.html
    - shard-apl:          [PASS][17] -> [FAIL][18] ([i915#168])
   [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl1/igt@kms_color@pipe-c-ctm-max.html
   [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl1/igt@kms_color@pipe-c-ctm-max.html

  * igt@kms_cursor_crc@pipe-a-cursor-128x42-random:
    - shard-kbl:          [PASS][19] -> [DMESG-FAIL][20] ([i915#54] / [i915#95]) +2 similar issues
   [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl3/igt@kms_cursor_crc@pipe-a-cursor-128x42-random.html
   [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@kms_cursor_crc@pipe-a-cursor-128x42-random.html

  * igt@kms_cursor_crc@pipe-a-cursor-128x42-sliding:
    - shard-apl:          [PASS][21] -> [DMESG-WARN][22] ([i915#1635] / [i915#95]) +44 similar issues
   [21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl1/igt@kms_cursor_crc@pipe-a-cursor-128x42-sliding.html
   [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl6/igt@kms_cursor_crc@pipe-a-cursor-128x42-sliding.html

  * igt@kms_cursor_crc@pipe-c-cursor-128x128-sliding:
    - shard-kbl:          [PASS][23] -> [FAIL][24] ([i915#54])
   [23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl1/igt@kms_cursor_crc@pipe-c-cursor-128x128-sliding.html
   [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@kms_cursor_crc@pipe-c-cursor-128x128-sliding.html
    - shard-apl:          [PASS][25] -> [FAIL][26] ([i915#54])
   [25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl7/igt@kms_cursor_crc@pipe-c-cursor-128x128-sliding.html
   [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl1/igt@kms_cursor_crc@pipe-c-cursor-128x128-sliding.html

  * igt@kms_draw_crc@draw-method-xrgb8888-mmap-gtt-untiled:
    - shard-apl:          [PASS][27] -> [DMESG-FAIL][28] ([i915#1635] / [i915#54] / [i915#95]) +1 similar issue
   [27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl2/igt@kms_draw_crc@draw-method-xrgb8888-mmap-gtt-untiled.html
   [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl3/igt@kms_draw_crc@draw-method-xrgb8888-mmap-gtt-untiled.html

  * igt@kms_flip@flip-vs-suspend-interruptible@a-dp1:
    - shard-kbl:          [PASS][29] -> [DMESG-WARN][30] ([i915#180]) +4 similar issues
   [29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl4/igt@kms_flip@flip-vs-suspend-interruptible@a-dp1.html
   [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@kms_flip@flip-vs-suspend-interruptible@a-dp1.html

  * igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-mmap-cpu:
    - shard-kbl:          [PASS][31] -> [DMESG-WARN][32] ([i915#93] / [i915#95]) +36 similar issues
   [31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl1/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-mmap-cpu.html
   [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-mmap-cpu.html

  * igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
    - shard-iclb:         [PASS][33] -> [DMESG-WARN][34] ([i915#1982]) +1 similar issue
   [33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-iclb4/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
   [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-iclb3/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html

  * igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen:
    - shard-glk:          [PASS][35] -> [FAIL][36] ([i915#49])
   [35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-glk4/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen.html
   [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk6/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-fullscreen.html

  * igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-pwrite:
    - shard-tglb:         [PASS][37] -> [DMESG-WARN][38] ([i915#1982])
   [37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-tglb2/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-pwrite.html
   [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-tglb3/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-pwrite.html

  * igt@kms_setmode@basic:
    - shard-kbl:          [PASS][39] -> [FAIL][40] ([i915#31])
   [39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl3/igt@kms_setmode@basic.html
   [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@kms_setmode@basic.html

  * igt@kms_sysfs_edid_timing:
    - shard-apl:          [PASS][41] -> [FAIL][42] ([IGT#2])
   [41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl7/igt@kms_sysfs_edid_timing.html
   [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl8/igt@kms_sysfs_edid_timing.html
    - shard-kbl:          [PASS][43] -> [FAIL][44] ([IGT#2])
   [43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl4/igt@kms_sysfs_edid_timing.html
   [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl4/igt@kms_sysfs_edid_timing.html

  
#### Possible fixes ####

  * igt@gem_exec_whisper@basic-queues-all:
    - shard-glk:          [DMESG-WARN][45] ([i915#118] / [i915#95]) -> [PASS][46] +1 similar issue
   [45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-glk2/igt@gem_exec_whisper@basic-queues-all.html
   [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk9/igt@gem_exec_whisper@basic-queues-all.html

  * igt@gem_userptr_blits@create-destroy-sync:
    - shard-hsw:          [TIMEOUT][47] ([i915#1958]) -> [PASS][48] +3 similar issues
   [47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-hsw1/igt@gem_userptr_blits@create-destroy-sync.html
   [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-hsw5/igt@gem_userptr_blits@create-destroy-sync.html

  * igt@i915_module_load@reload:
    - shard-tglb:         [DMESG-WARN][49] ([i915#402]) -> [PASS][50] +2 similar issues
   [49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-tglb7/igt@i915_module_load@reload.html
   [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-tglb3/igt@i915_module_load@reload.html

  * igt@i915_pm_dc@dc3co-vpb-simulation:
    - shard-tglb:         [SKIP][51] ([i915#1904]) -> [PASS][52]
   [51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-tglb8/igt@i915_pm_dc@dc3co-vpb-simulation.html
   [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-tglb1/igt@i915_pm_dc@dc3co-vpb-simulation.html

  * igt@kms_big_fb@x-tiled-64bpp-rotate-180:
    - shard-glk:          [DMESG-FAIL][53] ([i915#118] / [i915#95]) -> [PASS][54] +1 similar issue
   [53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-glk8/igt@kms_big_fb@x-tiled-64bpp-rotate-180.html
   [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk4/igt@kms_big_fb@x-tiled-64bpp-rotate-180.html

  * igt@kms_color@pipe-a-ctm-blue-to-red:
    - shard-kbl:          [DMESG-WARN][55] ([i915#93] / [i915#95]) -> [PASS][56] +40 similar issues
   [55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl6/igt@kms_color@pipe-a-ctm-blue-to-red.html
   [56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@kms_color@pipe-a-ctm-blue-to-red.html

  * igt@kms_cursor_crc@pipe-a-cursor-64x64-onscreen:
    - shard-kbl:          [DMESG-FAIL][57] ([i915#54] / [i915#95]) -> [PASS][58] +1 similar issue
   [57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl6/igt@kms_cursor_crc@pipe-a-cursor-64x64-onscreen.html
   [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl3/igt@kms_cursor_crc@pipe-a-cursor-64x64-onscreen.html

  * igt@kms_cursor_crc@pipe-b-cursor-128x42-random:
    - shard-hsw:          [INCOMPLETE][59] -> [PASS][60]
   [59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-hsw7/igt@kms_cursor_crc@pipe-b-cursor-128x42-random.html
   [60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-hsw6/igt@kms_cursor_crc@pipe-b-cursor-128x42-random.html

  * igt@kms_cursor_crc@pipe-b-cursor-suspend:
    - shard-kbl:          [DMESG-WARN][61] ([i915#180]) -> [PASS][62]
   [61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl7/igt@kms_cursor_crc@pipe-b-cursor-suspend.html
   [62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl6/igt@kms_cursor_crc@pipe-b-cursor-suspend.html

  * igt@kms_cursor_edge_walk@pipe-b-64x64-left-edge:
    - shard-apl:          [TIMEOUT][63] ([i915#1635] / [i915#1958]) -> [PASS][64] +5 similar issues
   [63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl8/igt@kms_cursor_edge_walk@pipe-b-64x64-left-edge.html
   [64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl1/igt@kms_cursor_edge_walk@pipe-b-64x64-left-edge.html

  * igt@kms_cursor_legacy@flip-vs-cursor-legacy:
    - shard-apl:          [FAIL][65] ([IGT#5]) -> [PASS][66]
   [65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl3/igt@kms_cursor_legacy@flip-vs-cursor-legacy.html
   [66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl2/igt@kms_cursor_legacy@flip-vs-cursor-legacy.html

  * igt@kms_fbcon_fbt@fbc-suspend:
    - shard-kbl:          [DMESG-FAIL][67] ([i915#95]) -> [PASS][68]
   [67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl6/igt@kms_fbcon_fbt@fbc-suspend.html
   [68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl3/igt@kms_fbcon_fbt@fbc-suspend.html

  * igt@kms_flip@flip-vs-expired-vblank-interruptible@a-hdmi-a2:
    - shard-glk:          [FAIL][69] ([i915#79]) -> [PASS][70] +1 similar issue
   [69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-glk5/igt@kms_flip@flip-vs-expired-vblank-interruptible@a-hdmi-a2.html
   [70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk2/igt@kms_flip@flip-vs-expired-vblank-interruptible@a-hdmi-a2.html

  * igt@kms_flip_tiling@flip-changes-tiling-yf:
    - shard-apl:          [DMESG-FAIL][71] ([i915#1635] / [i915#95]) -> [PASS][72] +2 similar issues
   [71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl4/igt@kms_flip_tiling@flip-changes-tiling-yf.html
   [72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl1/igt@kms_flip_tiling@flip-changes-tiling-yf.html

  * igt@kms_frontbuffer_tracking@psr-1p-primscrn-indfb-msflip-blt:
    - shard-tglb:         [DMESG-WARN][73] ([i915#1982]) -> [PASS][74]
   [73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-tglb7/igt@kms_frontbuffer_tracking@psr-1p-primscrn-indfb-msflip-blt.html
   [74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-tglb7/igt@kms_frontbuffer_tracking@psr-1p-primscrn-indfb-msflip-blt.html

  * igt@kms_invalid_dotclock:
    - shard-snb:          [TIMEOUT][75] ([i915#1958]) -> [PASS][76] +3 similar issues
   [75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-snb2/igt@kms_invalid_dotclock.html
   [76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-snb6/igt@kms_invalid_dotclock.html

  * igt@kms_plane_alpha_blend@pipe-a-constant-alpha-mid:
    - shard-kbl:          [DMESG-FAIL][77] ([fdo#108145] / [i915#95]) -> [PASS][78]
   [77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl6/igt@kms_plane_alpha_blend@pipe-a-constant-alpha-mid.html
   [78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl3/igt@kms_plane_alpha_blend@pipe-a-constant-alpha-mid.html
    - shard-apl:          [DMESG-FAIL][79] ([fdo#108145] / [i915#1635] / [i915#95]) -> [PASS][80]
   [79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl2/igt@kms_plane_alpha_blend@pipe-a-constant-alpha-mid.html
   [80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl3/igt@kms_plane_alpha_blend@pipe-a-constant-alpha-mid.html

  * igt@kms_vblank@pipe-c-accuracy-idle:
    - shard-apl:          [DMESG-WARN][81] ([i915#1982]) -> [PASS][82]
   [81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl3/igt@kms_vblank@pipe-c-accuracy-idle.html
   [82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl2/igt@kms_vblank@pipe-c-accuracy-idle.html

  * igt@perf@low-oa-exponent-permissions:
    - shard-apl:          [DMESG-WARN][83] ([i915#1635] / [i915#95]) -> [PASS][84] +31 similar issues
   [83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl4/igt@perf@low-oa-exponent-permissions.html
   [84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl7/igt@perf@low-oa-exponent-permissions.html

  
#### Warnings ####

  * igt@gem_exec_reloc@basic-concurrent16:
    - shard-apl:          [TIMEOUT][85] ([i915#1635] / [i915#1958]) -> [INCOMPLETE][86] ([i915#1635] / [i915#1958])
   [85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl8/igt@gem_exec_reloc@basic-concurrent16.html
   [86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl7/igt@gem_exec_reloc@basic-concurrent16.html

  * igt@gem_exec_reloc@basic-spin-others@vcs0:
    - shard-snb:          [WARN][87] ([i915#2036]) -> [WARN][88] ([i915#2021])
   [87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-snb6/igt@gem_exec_reloc@basic-spin-others@vcs0.html
   [88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-snb6/igt@gem_exec_reloc@basic-spin-others@vcs0.html

  * igt@i915_pm_rpm@modeset-lpsp-stress:
    - shard-apl:          [SKIP][89] ([fdo#109271]) -> [SKIP][90] ([fdo#109271] / [i915#1635]) +19 similar issues
   [89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl7/igt@i915_pm_rpm@modeset-lpsp-stress.html
   [90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl1/igt@i915_pm_rpm@modeset-lpsp-stress.html

  * igt@kms_big_fb@y-tiled-32bpp-rotate-90:
    - shard-hsw:          [TIMEOUT][91] ([i915#1958]) -> [SKIP][92] ([fdo#109271]) +1 similar issue
   [91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-hsw1/igt@kms_big_fb@y-tiled-32bpp-rotate-90.html
   [92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-hsw1/igt@kms_big_fb@y-tiled-32bpp-rotate-90.html

  * igt@kms_chamelium@dp-hpd-with-enabled-mode:
    - shard-apl:          [SKIP][93] ([fdo#109271] / [fdo#111827]) -> [SKIP][94] ([fdo#109271] / [fdo#111827] / [i915#1635])
   [93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl4/igt@kms_chamelium@dp-hpd-with-enabled-mode.html
   [94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl6/igt@kms_chamelium@dp-hpd-with-enabled-mode.html

  * igt@kms_color_chamelium@pipe-a-ctm-limited-range:
    - shard-apl:          [SKIP][95] ([fdo#109271] / [fdo#111827] / [i915#1635]) -> [SKIP][96] ([fdo#109271] / [fdo#111827]) +2 similar issues
   [95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl1/igt@kms_color_chamelium@pipe-a-ctm-limited-range.html
   [96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl2/igt@kms_color_chamelium@pipe-a-ctm-limited-range.html

  * igt@kms_cursor_crc@pipe-a-cursor-512x512-random:
    - shard-hsw:          [SKIP][97] ([fdo#109271]) -> [TIMEOUT][98] ([i915#1958]) +2 similar issues
   [97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-hsw5/igt@kms_cursor_crc@pipe-a-cursor-512x512-random.html
   [98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-hsw1/igt@kms_cursor_crc@pipe-a-cursor-512x512-random.html

  * igt@kms_draw_crc@draw-method-rgb565-render-ytiled:
    - shard-snb:          [TIMEOUT][99] ([i915#1958]) -> [SKIP][100] ([fdo#109271]) +1 similar issue
   [99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-snb2/igt@kms_draw_crc@draw-method-rgb565-render-ytiled.html
   [100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-snb2/igt@kms_draw_crc@draw-method-rgb565-render-ytiled.html

  * igt@kms_flip@flip-vs-suspend@a-dp1:
    - shard-kbl:          [DMESG-WARN][101] ([i915#180]) -> [INCOMPLETE][102] ([i915#155])
   [101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-kbl6/igt@kms_flip@flip-vs-suspend@a-dp1.html
   [102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl3/igt@kms_flip@flip-vs-suspend@a-dp1.html

  * igt@kms_flip_tiling@flip-yf-tiled:
    - shard-snb:          [SKIP][103] ([fdo#109271]) -> [TIMEOUT][104] ([i915#1958]) +2 similar issues
   [103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-snb6/igt@kms_flip_tiling@flip-yf-tiled.html
   [104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-snb5/igt@kms_flip_tiling@flip-yf-tiled.html

  * igt@perf@gen12-unprivileged-single-ctx-counters:
    - shard-apl:          [SKIP][105] ([fdo#109271] / [i915#1635]) -> [SKIP][106] ([fdo#109271]) +11 similar issues
   [105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl6/igt@perf@gen12-unprivileged-single-ctx-counters.html
   [106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl3/igt@perf@gen12-unprivileged-single-ctx-counters.html

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

  [IGT#2]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/2
  [IGT#5]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/5
  [fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
  [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
  [fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
  [i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
  [i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
  [i915#155]: https://gitlab.freedesktop.org/drm/intel/issues/155
  [i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
  [i915#168]: https://gitlab.freedesktop.org/drm/intel/issues/168
  [i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
  [i915#1904]: https://gitlab.freedesktop.org/drm/intel/issues/1904
  [i915#1958]: https://gitlab.freedesktop.org/drm/intel/issues/1958
  [i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
  [i915#2021]: https://gitlab.freedesktop.org/drm/intel/issues/2021
  [i915#2036]: https://gitlab.freedesktop.org/drm/intel/issues/2036
  [i915#31]: https://gitlab.freedesktop.org/drm/intel/issues/31
  [i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
  [i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
  [i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
  [i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
  [i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
  [i915#93]: https://gitlab.freedesktop.org/drm/intel/issues/93
  [i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95


Participating hosts (11 -> 8)
------------------------------

  Missing    (3): pig-skl-6260u pig-glk-j5005 pig-icl-1065g7 


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

  * CI: CI-20190529 -> None
  * IGT: IGT_5717 -> IGTPW_4700
  * Piglit: piglit_4509 -> None

  CI-20190529: 20190529
  CI_DRM_8661: 64cab0b9f9bfeb14d3ec2452d76b56915cdeb09f @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_4700: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/index.html
  IGT_5717: 725bf2dae51f0087eaa64f1931a2ef9d22f070dd @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
  piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/index.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* Re: [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Add test to validate big joiner
  2020-06-24  9:42 [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Add test to validate big joiner Karthik B S
  2020-06-24 10:46 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
  2020-06-24 14:02 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
@ 2020-08-13 22:58 ` Navare, Manasi
  2020-08-17  8:32   ` Karthik B S
  2 siblings, 1 reply; 7+ messages in thread
From: Navare, Manasi @ 2020-08-13 22:58 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev

On Wed, Jun 24, 2020 at 03:12:38PM +0530, Karthik B S wrote:
> Added negative test to verify the different scenarios for big joiner.
> In the test, modeset is done on Pipe A for a big joiner mode and
> a second modeset is attempted on Pipe B which is expected to fail.
> Same functionality is validated for other pipes as well.
> 
> Secondly, the reverse is tested where a modeset is done on Pipe B
> and then a second big joiner modeset is attempted on Pipe A which is
> expected to fail. Same functionality is validated for other pipes as well.
> 
> Signed-off-by: Karthik B S <karthik.b.s@intel.com>
> ---
>  tests/Makefile.sources |   1 +
>  tests/kms_big_joiner.c | 171 +++++++++++++++++++++++++++++++++++++++++
>  tests/meson.build      |   1 +
>  3 files changed, 173 insertions(+)
>  create mode 100644 tests/kms_big_joiner.c
> 
> diff --git a/tests/Makefile.sources b/tests/Makefile.sources
> index af900bcf..c761eb92 100644
> --- a/tests/Makefile.sources
> +++ b/tests/Makefile.sources
> @@ -35,6 +35,7 @@ TESTS_progs = \
>  	kms_atomic_transition \
>  	kms_available_modes_crc \
>  	kms_big_fb \
> +	kms_big_joiner \
>  	kms_busy \
>  	kms_ccs \
>  	kms_concurrent \
> diff --git a/tests/kms_big_joiner.c b/tests/kms_big_joiner.c
> new file mode 100644
> index 00000000..125ea0b1
> --- /dev/null
> +++ b/tests/kms_big_joiner.c
> @@ -0,0 +1,171 @@
> +/*
> + * Copyright © 2020 Intel Corporation
> + *
> + * Permission is hereby granted, free of charge, to any person obtaining a
> + * copy of this software and associated documentation files (the "Software"),
> + * to deal in the Software without restriction, including without limitation
> + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
> + * and/or sell copies of the Software, and to permit persons to whom the
> + * Software is furnished to do so, subject to the following conditions:
> + *
> + * The above copyright notice and this permission notice (including the next
> + * paragraph) shall be included in all copies or substantial portions of the
> + * Software.
> + *
> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
> + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
> + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
> + * IN THE SOFTWARE.
> + *
> + * Author:
> + *  Karthik B S <karthik.b.s@intel.com>
> + */
> +
> +#include "igt.h"
> +
> +#define HDISPLAY_5K 5120

So here HDISPLAY_5K indicates the max per pipe plane hwidth limitation right?
May be rename this to something like MAX_HDISPLAY_PER_PIPE so that we dont confuse this with some 5K test?

> +
> +IGT_TEST_DESCRIPTION("Test big joiner");
> +
> +typedef struct {
> +	int drm_fd;
> +	igt_display_t display;
> +	struct igt_fb fb;
> +} data_t;
> +
> +static void test_invalid_modeset(data_t *data)
> +{
> +	drmModeModeInfo *mode;
> +	igt_display_t *display = &data->display;
> +	igt_output_t *output, *big_joiner_output = NULL, *second_output = NULL;
> +	int width = 0, height = 0, i, ret;
> +	igt_pipe_t *pipe;
> +	igt_plane_t *plane;
> +
> +	for_each_connected_output(display, output) {
> +		mode = &output->config.connector->modes[0];

So here the assumption is that mode[0] is always the highest mode or in 8K display
case the assumption that mode[0] will be the 8K mode.
While in most cases that is true, some displays might actual advertise stable modes as
preferred mode and 8K mode somewhere lower in the list.
May be before even calling this test, in main(), loop through all modes to find mode > 5K and pass
its mode number?

Everything else does look good.

Manasi

> +
> +		width = max(width, mode->hdisplay);
> +		height = max(height, mode->vdisplay);
> +
> +		if (mode->hdisplay >= HDISPLAY_5K && big_joiner_output == NULL)
> +			big_joiner_output = output;
> +		else if (second_output == NULL)
> +			second_output = output;
> +
> +		igt_output_set_pipe(output, PIPE_NONE);
> +	}
> +
> +	igt_create_pattern_fb(data->drm_fd, width, height, DRM_FORMAT_XRGB8888,
> +			      LOCAL_DRM_FORMAT_MOD_NONE, &data->fb);
> +
> +	for_each_pipe(display, i) {
> +		if (i < (data->display.n_pipes - 1)) {
> +			igt_output_set_pipe(big_joiner_output, i);
> +
> +			mode = &big_joiner_output->config.connector->modes[0];
> +
> +			pipe = &display->pipes[i];
> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
> +
> +			igt_plane_set_fb(plane, &data->fb);
> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
> +
> +			igt_display_commit2(&data->display, COMMIT_ATOMIC);
> +			igt_output_set_pipe(second_output, i + 1);
> +
> +			mode = igt_output_get_mode(second_output);
> +
> +			pipe = &display->pipes[i + 1];
> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
> +
> +			igt_plane_set_fb(plane, &data->fb);
> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
> +
> +			/* This commit is expectd to fail as this pipe is being used for big joiner */
> +			ret = igt_display_try_commit_atomic(&data->display, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
> +			igt_assert_lt(ret, 0);
> +
> +			igt_output_set_pipe(big_joiner_output, PIPE_NONE);
> +			igt_output_set_pipe(second_output, PIPE_NONE);
> +		}
> +	}
> +
> +	for_each_pipe(display, i) {
> +		if (i < (data->display.n_pipes - 1)) {
> +			igt_output_set_pipe(second_output, i + 1);
> +
> +			mode = igt_output_get_mode(second_output);
> +
> +			pipe = &display->pipes[i + 1];
> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
> +
> +			igt_plane_set_fb(plane, &data->fb);
> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
> +
> +			igt_display_commit2(&data->display, COMMIT_ATOMIC);
> +
> +			igt_output_set_pipe(big_joiner_output, i);
> +
> +			mode = &big_joiner_output->config.connector->modes[0];
> +
> +			pipe = &display->pipes[i];
> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
> +
> +			igt_plane_set_fb(plane, &data->fb);
> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
> +
> +			/* This commit is expected to fail as the adjacent pipe is already in use*/
> +			ret = igt_display_try_commit_atomic(&data->display, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
> +			igt_assert_lt(ret, 0);
> +
> +			igt_output_set_pipe(big_joiner_output, PIPE_NONE);
> +			igt_output_set_pipe(second_output, PIPE_NONE);
> +		}
> +	}
> +
> +	igt_plane_set_fb(plane, NULL);
> +	igt_remove_fb(data->drm_fd, &data->fb);
> +}
> +
> +igt_main
> +{
> +	data_t data;
> +	bool big_joiner_mode_found = false;
> +	igt_output_t *output;
> +	drmModeModeInfo *mode;
> +	int valid_output = 0;
> +
> +	igt_fixture {
> +		data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
> +		kmstest_set_vt_graphics_mode();
> +
> +		igt_display_require(&data.display, data.drm_fd);
> +
> +		for_each_connected_output(&data.display, output) {
> +			mode = &output->config.connector->modes[0];
> +			if (mode->hdisplay >= HDISPLAY_5K)
> +				big_joiner_mode_found = true;
> +
> +			valid_output++;
> +		}
> +
> +		igt_require_f(big_joiner_mode_found, "No output with 5k+ mode found\n");
> +		igt_require_f(valid_output > 1, "No valid Second output found\n");
> +	}
> +
> +	igt_describe("Verify if the modeset on the adjoining pipe is rejected"
> +		     "when the pipe is active with a big joiner modeset");
> +	igt_subtest("invalid-modeset")
> +		test_invalid_modeset(&data);
> +
> +	igt_fixture
> +		igt_display_fini(&data.display);
> +}
> diff --git a/tests/meson.build b/tests/meson.build
> index 28091794..430b43de 100644
> --- a/tests/meson.build
> +++ b/tests/meson.build
> @@ -19,6 +19,7 @@ test_progs = [
>  	'kms_atomic_transition',
>  	'kms_available_modes_crc',
>  	'kms_big_fb',
> +	'kms_big_joiner' ,
>  	'kms_busy',
>  	'kms_ccs',
>  	'kms_concurrent',
> -- 
> 2.22.0
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* Re: [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Add test to validate big joiner
  2020-08-13 22:58 ` [igt-dev] [PATCH i-g-t] " Navare, Manasi
@ 2020-08-17  8:32   ` Karthik B S
  2020-08-17 18:28     ` Navare, Manasi
  0 siblings, 1 reply; 7+ messages in thread
From: Karthik B S @ 2020-08-17  8:32 UTC (permalink / raw)
  To: Navare, Manasi; +Cc: igt-dev



On 8/14/2020 4:28 AM, Navare, Manasi wrote:
> On Wed, Jun 24, 2020 at 03:12:38PM +0530, Karthik B S wrote:
>> Added negative test to verify the different scenarios for big joiner.
>> In the test, modeset is done on Pipe A for a big joiner mode and
>> a second modeset is attempted on Pipe B which is expected to fail.
>> Same functionality is validated for other pipes as well.
>>
>> Secondly, the reverse is tested where a modeset is done on Pipe B
>> and then a second big joiner modeset is attempted on Pipe A which is
>> expected to fail. Same functionality is validated for other pipes as well.
>>
>> Signed-off-by: Karthik B S <karthik.b.s@intel.com>
>> ---
>>   tests/Makefile.sources |   1 +
>>   tests/kms_big_joiner.c | 171 +++++++++++++++++++++++++++++++++++++++++
>>   tests/meson.build      |   1 +
>>   3 files changed, 173 insertions(+)
>>   create mode 100644 tests/kms_big_joiner.c
>>
>> diff --git a/tests/Makefile.sources b/tests/Makefile.sources
>> index af900bcf..c761eb92 100644
>> --- a/tests/Makefile.sources
>> +++ b/tests/Makefile.sources
>> @@ -35,6 +35,7 @@ TESTS_progs = \
>>   	kms_atomic_transition \
>>   	kms_available_modes_crc \
>>   	kms_big_fb \
>> +	kms_big_joiner \
>>   	kms_busy \
>>   	kms_ccs \
>>   	kms_concurrent \
>> diff --git a/tests/kms_big_joiner.c b/tests/kms_big_joiner.c
>> new file mode 100644
>> index 00000000..125ea0b1
>> --- /dev/null
>> +++ b/tests/kms_big_joiner.c
>> @@ -0,0 +1,171 @@
>> +/*
>> + * Copyright © 2020 Intel Corporation
>> + *
>> + * Permission is hereby granted, free of charge, to any person obtaining a
>> + * copy of this software and associated documentation files (the "Software"),
>> + * to deal in the Software without restriction, including without limitation
>> + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
>> + * and/or sell copies of the Software, and to permit persons to whom the
>> + * Software is furnished to do so, subject to the following conditions:
>> + *
>> + * The above copyright notice and this permission notice (including the next
>> + * paragraph) shall be included in all copies or substantial portions of the
>> + * Software.
>> + *
>> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
>> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
>> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
>> + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
>> + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
>> + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
>> + * IN THE SOFTWARE.
>> + *
>> + * Author:
>> + *  Karthik B S <karthik.b.s@intel.com>
>> + */
>> +
>> +#include "igt.h"
>> +
>> +#define HDISPLAY_5K 5120
> 
> So here HDISPLAY_5K indicates the max per pipe plane hwidth limitation right?
> May be rename this to something like MAX_HDISPLAY_PER_PIPE so that we dont confuse this with some 5K test?
> 

Thanks for the review.
Sure, I'll rename it.
My understanding is that even the hwidth of 5120 can't be supported on 
one pipe. So I've used the condition that any mode having hdisplay
'>=' 5120 can be treated as a big joiner mode.	

Is this correct? Naming it MAX_HDISPLAY_PER_PIPE would mean hdisplay 
should be greater than this and can't even be equal, for it to be 
considered a big joiner mode? Could you please help me out here.

>> +
>> +IGT_TEST_DESCRIPTION("Test big joiner");
>> +
>> +typedef struct {
>> +	int drm_fd;
>> +	igt_display_t display;
>> +	struct igt_fb fb;
>> +} data_t;
>> +
>> +static void test_invalid_modeset(data_t *data)
>> +{
>> +	drmModeModeInfo *mode;
>> +	igt_display_t *display = &data->display;
>> +	igt_output_t *output, *big_joiner_output = NULL, *second_output = NULL;
>> +	int width = 0, height = 0, i, ret;
>> +	igt_pipe_t *pipe;
>> +	igt_plane_t *plane;
>> +
>> +	for_each_connected_output(display, output) {
>> +		mode = &output->config.connector->modes[0];
> 
> So here the assumption is that mode[0] is always the highest mode or in 8K display
> case the assumption that mode[0] will be the 8K mode.
> While in most cases that is true, some displays might actual advertise stable modes as
> preferred mode and 8K mode somewhere lower in the list.
> May be before even calling this test, in main(), loop through all modes to find mode > 5K and pass
> its mode number?
> 

Sure, I'll make these changes.

Thanks,
Karthik.B.S
> Everything else does look good.
> 
> Manasi
> 
>> +
>> +		width = max(width, mode->hdisplay);
>> +		height = max(height, mode->vdisplay);
>> +
>> +		if (mode->hdisplay >= HDISPLAY_5K && big_joiner_output == NULL)
>> +			big_joiner_output = output;
>> +		else if (second_output == NULL)
>> +			second_output = output;
>> +
>> +		igt_output_set_pipe(output, PIPE_NONE);
>> +	}
>> +
>> +	igt_create_pattern_fb(data->drm_fd, width, height, DRM_FORMAT_XRGB8888,
>> +			      LOCAL_DRM_FORMAT_MOD_NONE, &data->fb);
>> +
>> +	for_each_pipe(display, i) {
>> +		if (i < (data->display.n_pipes - 1)) {
>> +			igt_output_set_pipe(big_joiner_output, i);
>> +
>> +			mode = &big_joiner_output->config.connector->modes[0];
>> +
>> +			pipe = &display->pipes[i];
>> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
>> +
>> +			igt_plane_set_fb(plane, &data->fb);
>> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
>> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
>> +
>> +			igt_display_commit2(&data->display, COMMIT_ATOMIC);
>> +			igt_output_set_pipe(second_output, i + 1);
>> +
>> +			mode = igt_output_get_mode(second_output);
>> +
>> +			pipe = &display->pipes[i + 1];
>> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
>> +
>> +			igt_plane_set_fb(plane, &data->fb);
>> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
>> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
>> +
>> +			/* This commit is expectd to fail as this pipe is being used for big joiner */
>> +			ret = igt_display_try_commit_atomic(&data->display, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
>> +			igt_assert_lt(ret, 0);
>> +
>> +			igt_output_set_pipe(big_joiner_output, PIPE_NONE);
>> +			igt_output_set_pipe(second_output, PIPE_NONE);
>> +		}
>> +	}
>> +
>> +	for_each_pipe(display, i) {
>> +		if (i < (data->display.n_pipes - 1)) {
>> +			igt_output_set_pipe(second_output, i + 1);
>> +
>> +			mode = igt_output_get_mode(second_output);
>> +
>> +			pipe = &display->pipes[i + 1];
>> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
>> +
>> +			igt_plane_set_fb(plane, &data->fb);
>> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
>> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
>> +
>> +			igt_display_commit2(&data->display, COMMIT_ATOMIC);
>> +
>> +			igt_output_set_pipe(big_joiner_output, i);
>> +
>> +			mode = &big_joiner_output->config.connector->modes[0];
>> +
>> +			pipe = &display->pipes[i];
>> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
>> +
>> +			igt_plane_set_fb(plane, &data->fb);
>> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
>> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
>> +
>> +			/* This commit is expected to fail as the adjacent pipe is already in use*/
>> +			ret = igt_display_try_commit_atomic(&data->display, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
>> +			igt_assert_lt(ret, 0);
>> +
>> +			igt_output_set_pipe(big_joiner_output, PIPE_NONE);
>> +			igt_output_set_pipe(second_output, PIPE_NONE);
>> +		}
>> +	}
>> +
>> +	igt_plane_set_fb(plane, NULL);
>> +	igt_remove_fb(data->drm_fd, &data->fb);
>> +}
>> +
>> +igt_main
>> +{
>> +	data_t data;
>> +	bool big_joiner_mode_found = false;
>> +	igt_output_t *output;
>> +	drmModeModeInfo *mode;
>> +	int valid_output = 0;
>> +
>> +	igt_fixture {
>> +		data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
>> +		kmstest_set_vt_graphics_mode();
>> +
>> +		igt_display_require(&data.display, data.drm_fd);
>> +
>> +		for_each_connected_output(&data.display, output) {
>> +			mode = &output->config.connector->modes[0];
>> +			if (mode->hdisplay >= HDISPLAY_5K)
>> +				big_joiner_mode_found = true;
>> +
>> +			valid_output++;
>> +		}
>> +
>> +		igt_require_f(big_joiner_mode_found, "No output with 5k+ mode found\n");
>> +		igt_require_f(valid_output > 1, "No valid Second output found\n");
>> +	}
>> +
>> +	igt_describe("Verify if the modeset on the adjoining pipe is rejected"
>> +		     "when the pipe is active with a big joiner modeset");
>> +	igt_subtest("invalid-modeset")
>> +		test_invalid_modeset(&data);
>> +
>> +	igt_fixture
>> +		igt_display_fini(&data.display);
>> +}
>> diff --git a/tests/meson.build b/tests/meson.build
>> index 28091794..430b43de 100644
>> --- a/tests/meson.build
>> +++ b/tests/meson.build
>> @@ -19,6 +19,7 @@ test_progs = [
>>   	'kms_atomic_transition',
>>   	'kms_available_modes_crc',
>>   	'kms_big_fb',
>> +	'kms_big_joiner' ,
>>   	'kms_busy',
>>   	'kms_ccs',
>>   	'kms_concurrent',
>> -- 
>> 2.22.0
>>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* Re: [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Add test to validate big joiner
  2020-08-17  8:32   ` Karthik B S
@ 2020-08-17 18:28     ` Navare, Manasi
  2020-08-21 11:00       ` Karthik B S
  0 siblings, 1 reply; 7+ messages in thread
From: Navare, Manasi @ 2020-08-17 18:28 UTC (permalink / raw)
  To: Karthik B S; +Cc: igt-dev

On Mon, Aug 17, 2020 at 02:02:47PM +0530, Karthik B S wrote:
> 
> 
> On 8/14/2020 4:28 AM, Navare, Manasi wrote:
> >On Wed, Jun 24, 2020 at 03:12:38PM +0530, Karthik B S wrote:
> >>Added negative test to verify the different scenarios for big joiner.
> >>In the test, modeset is done on Pipe A for a big joiner mode and
> >>a second modeset is attempted on Pipe B which is expected to fail.
> >>Same functionality is validated for other pipes as well.
> >>
> >>Secondly, the reverse is tested where a modeset is done on Pipe B
> >>and then a second big joiner modeset is attempted on Pipe A which is
> >>expected to fail. Same functionality is validated for other pipes as well.
> >>
> >>Signed-off-by: Karthik B S <karthik.b.s@intel.com>
> >>---
> >>  tests/Makefile.sources |   1 +
> >>  tests/kms_big_joiner.c | 171 +++++++++++++++++++++++++++++++++++++++++
> >>  tests/meson.build      |   1 +
> >>  3 files changed, 173 insertions(+)
> >>  create mode 100644 tests/kms_big_joiner.c
> >>
> >>diff --git a/tests/Makefile.sources b/tests/Makefile.sources
> >>index af900bcf..c761eb92 100644
> >>--- a/tests/Makefile.sources
> >>+++ b/tests/Makefile.sources
> >>@@ -35,6 +35,7 @@ TESTS_progs = \
> >>  	kms_atomic_transition \
> >>  	kms_available_modes_crc \
> >>  	kms_big_fb \
> >>+	kms_big_joiner \
> >>  	kms_busy \
> >>  	kms_ccs \
> >>  	kms_concurrent \
> >>diff --git a/tests/kms_big_joiner.c b/tests/kms_big_joiner.c
> >>new file mode 100644
> >>index 00000000..125ea0b1
> >>--- /dev/null
> >>+++ b/tests/kms_big_joiner.c
> >>@@ -0,0 +1,171 @@
> >>+/*
> >>+ * Copyright © 2020 Intel Corporation
> >>+ *
> >>+ * Permission is hereby granted, free of charge, to any person obtaining a
> >>+ * copy of this software and associated documentation files (the "Software"),
> >>+ * to deal in the Software without restriction, including without limitation
> >>+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
> >>+ * and/or sell copies of the Software, and to permit persons to whom the
> >>+ * Software is furnished to do so, subject to the following conditions:
> >>+ *
> >>+ * The above copyright notice and this permission notice (including the next
> >>+ * paragraph) shall be included in all copies or substantial portions of the
> >>+ * Software.
> >>+ *
> >>+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> >>+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> >>+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
> >>+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> >>+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
> >>+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
> >>+ * IN THE SOFTWARE.
> >>+ *
> >>+ * Author:
> >>+ *  Karthik B S <karthik.b.s@intel.com>
> >>+ */
> >>+
> >>+#include "igt.h"
> >>+
> >>+#define HDISPLAY_5K 5120
> >
> >So here HDISPLAY_5K indicates the max per pipe plane hwidth limitation right?
> >May be rename this to something like MAX_HDISPLAY_PER_PIPE so that we dont confuse this with some 5K test?
> >
> 
> Thanks for the review.
> Sure, I'll rename it.
> My understanding is that even the hwidth of 5120 can't be supported on one
> pipe. So I've used the condition that any mode having hdisplay
> '>=' 5120 can be treated as a big joiner mode.	
> 
> Is this correct? Naming it MAX_HDISPLAY_PER_PIPE would mean hdisplay should
> be greater than this and can't even be equal, for it to be considered a big
> joiner mode? Could you please help me out here.
>

Reading through the display resolution page in Bspec: "with each pipe and maximum plane size at 3840x4320" 
So anything greater than 5120 should require big joiner. The 5K resolution as such should not require
this split.

Manasi

> >>+
> >>+IGT_TEST_DESCRIPTION("Test big joiner");
> >>+
> >>+typedef struct {
> >>+	int drm_fd;
> >>+	igt_display_t display;
> >>+	struct igt_fb fb;
> >>+} data_t;
> >>+
> >>+static void test_invalid_modeset(data_t *data)
> >>+{
> >>+	drmModeModeInfo *mode;
> >>+	igt_display_t *display = &data->display;
> >>+	igt_output_t *output, *big_joiner_output = NULL, *second_output = NULL;
> >>+	int width = 0, height = 0, i, ret;
> >>+	igt_pipe_t *pipe;
> >>+	igt_plane_t *plane;
> >>+
> >>+	for_each_connected_output(display, output) {
> >>+		mode = &output->config.connector->modes[0];
> >
> >So here the assumption is that mode[0] is always the highest mode or in 8K display
> >case the assumption that mode[0] will be the 8K mode.
> >While in most cases that is true, some displays might actual advertise stable modes as
> >preferred mode and 8K mode somewhere lower in the list.
> >May be before even calling this test, in main(), loop through all modes to find mode > 5K and pass
> >its mode number?
> >
> 
> Sure, I'll make these changes.
> 
> Thanks,
> Karthik.B.S
> >Everything else does look good.
> >
> >Manasi
> >
> >>+
> >>+		width = max(width, mode->hdisplay);
> >>+		height = max(height, mode->vdisplay);
> >>+
> >>+		if (mode->hdisplay >= HDISPLAY_5K && big_joiner_output == NULL)
> >>+			big_joiner_output = output;
> >>+		else if (second_output == NULL)
> >>+			second_output = output;
> >>+
> >>+		igt_output_set_pipe(output, PIPE_NONE);
> >>+	}
> >>+
> >>+	igt_create_pattern_fb(data->drm_fd, width, height, DRM_FORMAT_XRGB8888,
> >>+			      LOCAL_DRM_FORMAT_MOD_NONE, &data->fb);
> >>+
> >>+	for_each_pipe(display, i) {
> >>+		if (i < (data->display.n_pipes - 1)) {
> >>+			igt_output_set_pipe(big_joiner_output, i);
> >>+
> >>+			mode = &big_joiner_output->config.connector->modes[0];
> >>+
> >>+			pipe = &display->pipes[i];
> >>+			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
> >>+
> >>+			igt_plane_set_fb(plane, &data->fb);
> >>+			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
> >>+			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
> >>+
> >>+			igt_display_commit2(&data->display, COMMIT_ATOMIC);
> >>+			igt_output_set_pipe(second_output, i + 1);
> >>+
> >>+			mode = igt_output_get_mode(second_output);
> >>+
> >>+			pipe = &display->pipes[i + 1];
> >>+			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
> >>+
> >>+			igt_plane_set_fb(plane, &data->fb);
> >>+			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
> >>+			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
> >>+
> >>+			/* This commit is expectd to fail as this pipe is being used for big joiner */
> >>+			ret = igt_display_try_commit_atomic(&data->display, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
> >>+			igt_assert_lt(ret, 0);
> >>+
> >>+			igt_output_set_pipe(big_joiner_output, PIPE_NONE);
> >>+			igt_output_set_pipe(second_output, PIPE_NONE);
> >>+		}
> >>+	}
> >>+
> >>+	for_each_pipe(display, i) {
> >>+		if (i < (data->display.n_pipes - 1)) {
> >>+			igt_output_set_pipe(second_output, i + 1);
> >>+
> >>+			mode = igt_output_get_mode(second_output);
> >>+
> >>+			pipe = &display->pipes[i + 1];
> >>+			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
> >>+
> >>+			igt_plane_set_fb(plane, &data->fb);
> >>+			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
> >>+			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
> >>+
> >>+			igt_display_commit2(&data->display, COMMIT_ATOMIC);
> >>+
> >>+			igt_output_set_pipe(big_joiner_output, i);
> >>+
> >>+			mode = &big_joiner_output->config.connector->modes[0];
> >>+
> >>+			pipe = &display->pipes[i];
> >>+			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
> >>+
> >>+			igt_plane_set_fb(plane, &data->fb);
> >>+			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
> >>+			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
> >>+
> >>+			/* This commit is expected to fail as the adjacent pipe is already in use*/
> >>+			ret = igt_display_try_commit_atomic(&data->display, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
> >>+			igt_assert_lt(ret, 0);
> >>+
> >>+			igt_output_set_pipe(big_joiner_output, PIPE_NONE);
> >>+			igt_output_set_pipe(second_output, PIPE_NONE);
> >>+		}
> >>+	}
> >>+
> >>+	igt_plane_set_fb(plane, NULL);
> >>+	igt_remove_fb(data->drm_fd, &data->fb);
> >>+}
> >>+
> >>+igt_main
> >>+{
> >>+	data_t data;
> >>+	bool big_joiner_mode_found = false;
> >>+	igt_output_t *output;
> >>+	drmModeModeInfo *mode;
> >>+	int valid_output = 0;
> >>+
> >>+	igt_fixture {
> >>+		data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
> >>+		kmstest_set_vt_graphics_mode();
> >>+
> >>+		igt_display_require(&data.display, data.drm_fd);
> >>+
> >>+		for_each_connected_output(&data.display, output) {
> >>+			mode = &output->config.connector->modes[0];
> >>+			if (mode->hdisplay >= HDISPLAY_5K)
> >>+				big_joiner_mode_found = true;
> >>+
> >>+			valid_output++;
> >>+		}
> >>+
> >>+		igt_require_f(big_joiner_mode_found, "No output with 5k+ mode found\n");
> >>+		igt_require_f(valid_output > 1, "No valid Second output found\n");
> >>+	}
> >>+
> >>+	igt_describe("Verify if the modeset on the adjoining pipe is rejected"
> >>+		     "when the pipe is active with a big joiner modeset");
> >>+	igt_subtest("invalid-modeset")
> >>+		test_invalid_modeset(&data);
> >>+
> >>+	igt_fixture
> >>+		igt_display_fini(&data.display);
> >>+}
> >>diff --git a/tests/meson.build b/tests/meson.build
> >>index 28091794..430b43de 100644
> >>--- a/tests/meson.build
> >>+++ b/tests/meson.build
> >>@@ -19,6 +19,7 @@ test_progs = [
> >>  	'kms_atomic_transition',
> >>  	'kms_available_modes_crc',
> >>  	'kms_big_fb',
> >>+	'kms_big_joiner' ,
> >>  	'kms_busy',
> >>  	'kms_ccs',
> >>  	'kms_concurrent',
> >>-- 
> >>2.22.0
> >>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

* Re: [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Add test to validate big joiner
  2020-08-17 18:28     ` Navare, Manasi
@ 2020-08-21 11:00       ` Karthik B S
  0 siblings, 0 replies; 7+ messages in thread
From: Karthik B S @ 2020-08-21 11:00 UTC (permalink / raw)
  To: Navare, Manasi; +Cc: igt-dev



On 8/17/2020 11:58 PM, Navare, Manasi wrote:
> On Mon, Aug 17, 2020 at 02:02:47PM +0530, Karthik B S wrote:
>>
>>
>> On 8/14/2020 4:28 AM, Navare, Manasi wrote:
>>> On Wed, Jun 24, 2020 at 03:12:38PM +0530, Karthik B S wrote:
>>>> Added negative test to verify the different scenarios for big joiner.
>>>> In the test, modeset is done on Pipe A for a big joiner mode and
>>>> a second modeset is attempted on Pipe B which is expected to fail.
>>>> Same functionality is validated for other pipes as well.
>>>>
>>>> Secondly, the reverse is tested where a modeset is done on Pipe B
>>>> and then a second big joiner modeset is attempted on Pipe A which is
>>>> expected to fail. Same functionality is validated for other pipes as well.
>>>>
>>>> Signed-off-by: Karthik B S <karthik.b.s@intel.com>
>>>> ---
>>>>   tests/Makefile.sources |   1 +
>>>>   tests/kms_big_joiner.c | 171 +++++++++++++++++++++++++++++++++++++++++
>>>>   tests/meson.build      |   1 +
>>>>   3 files changed, 173 insertions(+)
>>>>   create mode 100644 tests/kms_big_joiner.c
>>>>
>>>> diff --git a/tests/Makefile.sources b/tests/Makefile.sources
>>>> index af900bcf..c761eb92 100644
>>>> --- a/tests/Makefile.sources
>>>> +++ b/tests/Makefile.sources
>>>> @@ -35,6 +35,7 @@ TESTS_progs = \
>>>>   	kms_atomic_transition \
>>>>   	kms_available_modes_crc \
>>>>   	kms_big_fb \
>>>> +	kms_big_joiner \
>>>>   	kms_busy \
>>>>   	kms_ccs \
>>>>   	kms_concurrent \
>>>> diff --git a/tests/kms_big_joiner.c b/tests/kms_big_joiner.c
>>>> new file mode 100644
>>>> index 00000000..125ea0b1
>>>> --- /dev/null
>>>> +++ b/tests/kms_big_joiner.c
>>>> @@ -0,0 +1,171 @@
>>>> +/*
>>>> + * Copyright © 2020 Intel Corporation
>>>> + *
>>>> + * Permission is hereby granted, free of charge, to any person obtaining a
>>>> + * copy of this software and associated documentation files (the "Software"),
>>>> + * to deal in the Software without restriction, including without limitation
>>>> + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
>>>> + * and/or sell copies of the Software, and to permit persons to whom the
>>>> + * Software is furnished to do so, subject to the following conditions:
>>>> + *
>>>> + * The above copyright notice and this permission notice (including the next
>>>> + * paragraph) shall be included in all copies or substantial portions of the
>>>> + * Software.
>>>> + *
>>>> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
>>>> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
>>>> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
>>>> + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
>>>> + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
>>>> + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
>>>> + * IN THE SOFTWARE.
>>>> + *
>>>> + * Author:
>>>> + *  Karthik B S <karthik.b.s@intel.com>
>>>> + */
>>>> +
>>>> +#include "igt.h"
>>>> +
>>>> +#define HDISPLAY_5K 5120
>>>
>>> So here HDISPLAY_5K indicates the max per pipe plane hwidth limitation right?
>>> May be rename this to something like MAX_HDISPLAY_PER_PIPE so that we dont confuse this with some 5K test?
>>>
>>
>> Thanks for the review.
>> Sure, I'll rename it.
>> My understanding is that even the hwidth of 5120 can't be supported on one
>> pipe. So I've used the condition that any mode having hdisplay
>> '>=' 5120 can be treated as a big joiner mode.	
>>
>> Is this correct? Naming it MAX_HDISPLAY_PER_PIPE would mean hdisplay should
>> be greater than this and can't even be equal, for it to be considered a big
>> joiner mode? Could you please help me out here.
>>
> 
> Reading through the display resolution page in Bspec: "with each pipe and maximum plane size at 3840x4320"
> So anything greater than 5120 should require big joiner. The 5K resolution as such should not require
> this split.
> 

Sure. Thank you.
I'll update this condition accordingly.

Thanks,
Karthik.B.S

> Manasi
> 
>>>> +
>>>> +IGT_TEST_DESCRIPTION("Test big joiner");
>>>> +
>>>> +typedef struct {
>>>> +	int drm_fd;
>>>> +	igt_display_t display;
>>>> +	struct igt_fb fb;
>>>> +} data_t;
>>>> +
>>>> +static void test_invalid_modeset(data_t *data)
>>>> +{
>>>> +	drmModeModeInfo *mode;
>>>> +	igt_display_t *display = &data->display;
>>>> +	igt_output_t *output, *big_joiner_output = NULL, *second_output = NULL;
>>>> +	int width = 0, height = 0, i, ret;
>>>> +	igt_pipe_t *pipe;
>>>> +	igt_plane_t *plane;
>>>> +
>>>> +	for_each_connected_output(display, output) {
>>>> +		mode = &output->config.connector->modes[0];
>>>
>>> So here the assumption is that mode[0] is always the highest mode or in 8K display
>>> case the assumption that mode[0] will be the 8K mode.
>>> While in most cases that is true, some displays might actual advertise stable modes as
>>> preferred mode and 8K mode somewhere lower in the list.
>>> May be before even calling this test, in main(), loop through all modes to find mode > 5K and pass
>>> its mode number?
>>>
>>
>> Sure, I'll make these changes.
>>
>> Thanks,
>> Karthik.B.S
>>> Everything else does look good.
>>>
>>> Manasi
>>>
>>>> +
>>>> +		width = max(width, mode->hdisplay);
>>>> +		height = max(height, mode->vdisplay);
>>>> +
>>>> +		if (mode->hdisplay >= HDISPLAY_5K && big_joiner_output == NULL)
>>>> +			big_joiner_output = output;
>>>> +		else if (second_output == NULL)
>>>> +			second_output = output;
>>>> +
>>>> +		igt_output_set_pipe(output, PIPE_NONE);
>>>> +	}
>>>> +
>>>> +	igt_create_pattern_fb(data->drm_fd, width, height, DRM_FORMAT_XRGB8888,
>>>> +			      LOCAL_DRM_FORMAT_MOD_NONE, &data->fb);
>>>> +
>>>> +	for_each_pipe(display, i) {
>>>> +		if (i < (data->display.n_pipes - 1)) {
>>>> +			igt_output_set_pipe(big_joiner_output, i);
>>>> +
>>>> +			mode = &big_joiner_output->config.connector->modes[0];
>>>> +
>>>> +			pipe = &display->pipes[i];
>>>> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
>>>> +
>>>> +			igt_plane_set_fb(plane, &data->fb);
>>>> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
>>>> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
>>>> +
>>>> +			igt_display_commit2(&data->display, COMMIT_ATOMIC);
>>>> +			igt_output_set_pipe(second_output, i + 1);
>>>> +
>>>> +			mode = igt_output_get_mode(second_output);
>>>> +
>>>> +			pipe = &display->pipes[i + 1];
>>>> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
>>>> +
>>>> +			igt_plane_set_fb(plane, &data->fb);
>>>> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
>>>> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
>>>> +
>>>> +			/* This commit is expectd to fail as this pipe is being used for big joiner */
>>>> +			ret = igt_display_try_commit_atomic(&data->display, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
>>>> +			igt_assert_lt(ret, 0);
>>>> +
>>>> +			igt_output_set_pipe(big_joiner_output, PIPE_NONE);
>>>> +			igt_output_set_pipe(second_output, PIPE_NONE);
>>>> +		}
>>>> +	}
>>>> +
>>>> +	for_each_pipe(display, i) {
>>>> +		if (i < (data->display.n_pipes - 1)) {
>>>> +			igt_output_set_pipe(second_output, i + 1);
>>>> +
>>>> +			mode = igt_output_get_mode(second_output);
>>>> +
>>>> +			pipe = &display->pipes[i + 1];
>>>> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
>>>> +
>>>> +			igt_plane_set_fb(plane, &data->fb);
>>>> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
>>>> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
>>>> +
>>>> +			igt_display_commit2(&data->display, COMMIT_ATOMIC);
>>>> +
>>>> +			igt_output_set_pipe(big_joiner_output, i);
>>>> +
>>>> +			mode = &big_joiner_output->config.connector->modes[0];
>>>> +
>>>> +			pipe = &display->pipes[i];
>>>> +			plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
>>>> +
>>>> +			igt_plane_set_fb(plane, &data->fb);
>>>> +			igt_fb_set_size(&data->fb, plane, mode->hdisplay, mode->vdisplay);
>>>> +			igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay);
>>>> +
>>>> +			/* This commit is expected to fail as the adjacent pipe is already in use*/
>>>> +			ret = igt_display_try_commit_atomic(&data->display, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
>>>> +			igt_assert_lt(ret, 0);
>>>> +
>>>> +			igt_output_set_pipe(big_joiner_output, PIPE_NONE);
>>>> +			igt_output_set_pipe(second_output, PIPE_NONE);
>>>> +		}
>>>> +	}
>>>> +
>>>> +	igt_plane_set_fb(plane, NULL);
>>>> +	igt_remove_fb(data->drm_fd, &data->fb);
>>>> +}
>>>> +
>>>> +igt_main
>>>> +{
>>>> +	data_t data;
>>>> +	bool big_joiner_mode_found = false;
>>>> +	igt_output_t *output;
>>>> +	drmModeModeInfo *mode;
>>>> +	int valid_output = 0;
>>>> +
>>>> +	igt_fixture {
>>>> +		data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
>>>> +		kmstest_set_vt_graphics_mode();
>>>> +
>>>> +		igt_display_require(&data.display, data.drm_fd);
>>>> +
>>>> +		for_each_connected_output(&data.display, output) {
>>>> +			mode = &output->config.connector->modes[0];
>>>> +			if (mode->hdisplay >= HDISPLAY_5K)
>>>> +				big_joiner_mode_found = true;
>>>> +
>>>> +			valid_output++;
>>>> +		}
>>>> +
>>>> +		igt_require_f(big_joiner_mode_found, "No output with 5k+ mode found\n");
>>>> +		igt_require_f(valid_output > 1, "No valid Second output found\n");
>>>> +	}
>>>> +
>>>> +	igt_describe("Verify if the modeset on the adjoining pipe is rejected"
>>>> +		     "when the pipe is active with a big joiner modeset");
>>>> +	igt_subtest("invalid-modeset")
>>>> +		test_invalid_modeset(&data);
>>>> +
>>>> +	igt_fixture
>>>> +		igt_display_fini(&data.display);
>>>> +}
>>>> diff --git a/tests/meson.build b/tests/meson.build
>>>> index 28091794..430b43de 100644
>>>> --- a/tests/meson.build
>>>> +++ b/tests/meson.build
>>>> @@ -19,6 +19,7 @@ test_progs = [
>>>>   	'kms_atomic_transition',
>>>>   	'kms_available_modes_crc',
>>>>   	'kms_big_fb',
>>>> +	'kms_big_joiner' ,
>>>>   	'kms_busy',
>>>>   	'kms_ccs',
>>>>   	'kms_concurrent',
>>>> -- 
>>>> 2.22.0
>>>>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2020-08-21 11:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24  9:42 [igt-dev] [PATCH i-g-t] tests/kms_big_joiner: Add test to validate big joiner Karthik B S
2020-06-24 10:46 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-06-24 14:02 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2020-08-13 22:58 ` [igt-dev] [PATCH i-g-t] " Navare, Manasi
2020-08-17  8:32   ` Karthik B S
2020-08-17 18:28     ` Navare, Manasi
2020-08-21 11:00       ` Karthik B S

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