Skip to contentSkip to conversation

tests/kms_big_joiner: Add test to validate big joiner

PATCH Superseded Karthik B S 3 participants 7 messages Jun 24, 2020 – Aug 21, 2020 Arm/Amlogic Meson SoC support

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_big_joiner: Add test to validate big joiner

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.

---
 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
tests/Makefile.sources +1 -0
index af900bcf..c761eb92 100644
@@ -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 \
tests/kms_big_joiner.c new file +171 -0

171 lines not on this page · raw message

tests/meson.build +1 -0
index 28091794..430b43de 100644
@@ -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',
Signature · 6 lines
2.22.0

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

[igt-dev] ✓ Fi.CI.BAT: success for tests/kms_big_joiner: Add test to validate big joiner

== Series Details ==

== 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@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-glk-dsi/igt@[email protected]

* 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@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-kbl-x1275/igt@kms_busy@[email protected]

* 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@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-icl-u2/igt@kms_flip@[email protected]

* 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@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-tgl-u2/igt@[email protected]

* 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@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-tgl-dsi/igt@[email protected]

* 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@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-icl-u2/igt@[email protected]

#### 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@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-kbl-x1275/igt@kms_flip@[email protected]

* 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@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/fi-kbl-x1275/igt@[email protected]

{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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw

[igt-dev] ✗ Fi.CI.IGT: failure for tests/kms_big_joiner: Add test to validate big joiner

In reply to Karthik B S
== Series Details ==

== 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@[email protected]
- shard-tglb: NOTRUN -> [SKIP][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-tglb3/igt@[email protected]

* 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@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk1/igt@[email protected]

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@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-snb5/igt@[email protected]
- 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@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-hsw1/igt@[email protected]

* 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@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk4/igt@[email protected]

* 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@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl1/igt@[email protected]

* 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@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk8/igt@[email protected]

* 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@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@[email protected]
- shard-apl: [PASS][17] -> [FAIL][18] ([i915#168])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl1/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl1/igt@[email protected]

* 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@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@[email protected]

* 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@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl6/igt@[email protected]

* 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@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@[email protected]
- shard-apl: [PASS][25] -> [FAIL][26] ([i915#54])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8661/shard-apl7/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl1/igt@[email protected]

* 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@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl3/igt@[email protected]

* 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@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@kms_flip@[email protected]

* 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@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@[email protected]

* 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@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk9/igt@[email protected]

* 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@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-hsw5/igt@[email protected]

* 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@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-tglb3/igt@[email protected]

* 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@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-tglb1/igt@[email protected]

* 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@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk4/igt@[email protected]

* 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@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl7/igt@[email protected]

* 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@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl3/igt@[email protected]

* 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@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-hsw6/igt@[email protected]

* 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@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl6/igt@[email protected]

* 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@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl1/igt@[email protected]

* 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@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl2/igt@[email protected]

* 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@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl3/igt@[email protected]

* 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@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-glk2/igt@kms_flip@[email protected]

* 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@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl1/igt@[email protected]

* 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@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-tglb7/igt@[email protected]

* 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@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl3/igt@[email protected]
- 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@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl3/igt@[email protected]

* 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@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl2/igt@[email protected]

* 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@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl7/igt@[email protected]

#### 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@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl7/igt@[email protected]

* 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@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-snb6/igt@gem_exec_reloc@[email protected]

* 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@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl1/igt@[email protected]

* 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@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-hsw1/igt@[email protected]

* 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@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl6/igt@[email protected]

* 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@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl2/igt@[email protected]

* 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@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-hsw1/igt@[email protected]

* 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@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-snb2/igt@[email protected]

* 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@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-kbl3/igt@kms_flip@[email protected]

* 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@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-snb5/igt@[email protected]

* 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@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4700/shard-apl3/igt@[email protected]

{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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw
In reply to Karthik B S
Quoted 54 lines · Karthik B S

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.

---
 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
tests/Makefile.sources +1 -0
index af900bcf..c761eb92 100644
@@ -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 \
tests/kms_big_joiner.c new file +19 -0
new file mode 100644
index 00000000..125ea0b1
@@ -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

tests/kms_big_joiner.c line 29

Quoted 10 lines
tests/kms_big_joiner.c new file +10 -0
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Author:
+ *  Karthik B S <[email protected]>
+ */
+
+#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?

Quoted 10 lines
tests/kms_big_joiner.c new file +10 -0
+
+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)

tests/kms_big_joiner.c line 49

Quoted 10 lines
tests/kms_big_joiner.c new file +10 -0
+{
+	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

Quoted 137 lines
tests/kms_big_joiner.c new file +122 -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);
+}
tests/meson.build +1 -0
index 28091794..430b43de 100644
@@ -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',
Signature · 1 line
2.22.0

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

#4 lore raw
Quoted 60 lines · Manasi
Quoted 59 lines · Karthik B S

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.

---
  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

tests/Makefile.sources +1 -0
index af900bcf..c761eb92 100644
@@ -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 \
tests/kms_big_joiner.c new file +24 -0
new file mode 100644
index 00000000..125ea0b1
@@ -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 <[email protected]>
Quoted 9 lines

tests/kms_big_joiner.c line 29

Quoted 5 lines
tests/kms_big_joiner.c new file +5 -0
+ */
+
+#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.

Quoted 19 lines
Quoted 19 lines
tests/kms_big_joiner.c new file +19 -0
+
+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) {
Quoted 9 lines

tests/kms_big_joiner.c line 49

Quoted 1 line
tests/kms_big_joiner.c new file +1 -0
+		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

Quoted 133 lines

Everything else does look good.

Manasi

Quoted 129 lines
tests/kms_big_joiner.c new file +122 -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);
+}
tests/meson.build +0 -0
index 28091794..430b43de 100644
@@ -19,6 +19,7 @@ test_progs = [
  	'kms_atomic_transition',
  	'kms_available_modes_crc',
Quoted 8 lines
Quoted 8 lines
tests/meson.build +1 -0
  	'kms_big_fb',
+	'kms_big_joiner' ,
  	'kms_busy',
  	'kms_ccs',
  	'kms_concurrent',
Signature · 1 line
2.22.0

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

#5 lore raw
Quoted 79 lines · Karthik B S
Quoted 60 lines · Manasi
Quoted 59 lines · Karthik B S

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.

---
 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
tests/Makefile.sources +1 -0
index af900bcf..c761eb92 100644
@@ -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 \
tests/kms_big_joiner.c new file +24 -0
new file mode 100644
index 00000000..125ea0b1
@@ -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 <[email protected]>
Quoted 9 lines

tests/kms_big_joiner.c line 29

Quoted 5 lines
tests/kms_big_joiner.c new file +5 -0
+ */
+
+#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.

Quoted 4 lines

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

Quoted 166 lines
Quoted 19 lines
Quoted 19 lines
tests/kms_big_joiner.c new file +19 -0
+
+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) {
Quoted 9 lines

tests/kms_big_joiner.c line 49

Quoted 1 line
tests/kms_big_joiner.c new file +1 -0
+		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

Quoted 133 lines

Everything else does look good.

Manasi

Quoted 129 lines
tests/kms_big_joiner.c new file +122 -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);
+}
tests/meson.build +0 -0
index 28091794..430b43de 100644
@@ -19,6 +19,7 @@ test_progs = [
 	'kms_atomic_transition',
 	'kms_available_modes_crc',
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
tests/meson.build +1 -0
 	'kms_big_fb',
+	'kms_big_joiner' ,
 	'kms_busy',
 	'kms_ccs',
 	'kms_concurrent',
Signature · 1 line
2.22.0

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

#6 lore raw
Quoted 80 lines · Manasi
Quoted 79 lines · Karthik B S
Quoted 60 lines · Manasi
Quoted 59 lines · Karthik B S

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.

---
  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

tests/Makefile.sources +1 -0
index af900bcf..c761eb92 100644
@@ -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 \
tests/kms_big_joiner.c new file +24 -0
new file mode 100644
index 00000000..125ea0b1
@@ -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 <[email protected]>
Quoted 9 lines

tests/kms_big_joiner.c line 29

Quoted 5 lines
tests/kms_big_joiner.c new file +5 -0
+ */
+
+#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.

Quoted 9 lines
Quoted 4 lines

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

Quoted 168 lines

Manasi

Quoted 166 lines
Quoted 19 lines
Quoted 19 lines
tests/kms_big_joiner.c new file +19 -0
+
+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) {
Quoted 9 lines

tests/kms_big_joiner.c line 49

Quoted 1 line
tests/kms_big_joiner.c new file +1 -0
+		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

Quoted 133 lines

Everything else does look good.

Manasi

Quoted 129 lines
tests/kms_big_joiner.c new file +122 -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);
+}
tests/meson.build +0 -0
index 28091794..430b43de 100644
@@ -19,6 +19,7 @@ test_progs = [
  	'kms_atomic_transition',
  	'kms_available_modes_crc',
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
tests/meson.build +1 -0
  	'kms_big_fb',
+	'kms_big_joiner' ,
  	'kms_busy',
  	'kms_ccs',
  	'kms_concurrent',
Signature · 1 line
2.22.0

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