Skip to contentSkip to conversation

tests: Remove restrictions on tests running only DRIVER_INTEL and DRIVER_AMDGPU

PATCH In review Mark Yacoub 3 participants 5 messages Nov 10, 2021 – Nov 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: Remove restrictions on tests running only DRIVER_INTEL and DRIVER_AMDGPU

From: Mark Yacoub <[email protected]>

[Why]
Drivers such as MSM are able to run tests that are made generic through supporting another driver that's not i915. Removing the restriction that enables the test on a 2 drivers only allow the tests to run on other drivers.

[How]
1. Replace DRIVER_INTEL | DRIVER_AMDGPU by DRIVER_ANY
2. Make the checks more broad to allow intel generic implementation to work on all drivers while keeping special amdgpu's quirks.

Tested on Trogdor (MSM)

---
 tests/kms_hdr.c            |  2 +-
 tests/kms_plane_multiple.c |  2 +-
 tests/kms_plane_scaling.c  |  2 +-
 tests/kms_rotation_crc.c   | 52 +++++++++++++++++++++++---------------
 4 files changed, 34 insertions(+), 24 deletions(-)
tests/kms_hdr.c +1 -1
index 5b8529c8..2a76c7ec 100644
@@ -643,7 +643,7 @@ igt_main
 	data_t data = {};
 
 	igt_fixture {
-		data.fd = drm_open_driver_master(DRIVER_AMDGPU | DRIVER_INTEL);
+		data.fd = drm_open_driver_master(DRIVER_ANY);
 
 		kmstest_set_vt_graphics_mode();
 
tests/kms_plane_multiple.c +1 -1
index 45cabb50..e3aa2e7c 100644
@@ -445,7 +445,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 	enum pipe pipe;
 
 	igt_fixture {
-		data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
+		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
 		kmstest_set_vt_graphics_mode();
 		igt_require_pipe_crc(data.drm_fd);
 		igt_display_require(&data.display, data.drm_fd);
tests/kms_plane_scaling.c +1 -1
index 4c517a43..270f7615 100644
@@ -709,7 +709,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 	enum pipe pipe;
 
 	igt_fixture {
-		data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
+		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
 		igt_display_require(&data.display, data.drm_fd);
 		data.devid = is_i915_device(data.drm_fd) ?
 			intel_get_drm_devid(data.drm_fd) : 0;
tests/kms_rotation_crc.c +31 -21

95 lines not on this page · raw message

Signature · 1 line
2.34.0.rc0.344.g81b53c2807-goog
#1 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for tests: Remove restrictions on tests running only DRIVER_INTEL and DRIVER_AMDGPU

== Series Details ==

== Series Details ==

Series: tests: Remove restrictions on tests running only DRIVER_INTEL and DRIVER_AMDGPU
URL : https://patchwork.freedesktop.org/series/96780/
State : success

== Summary ==

CI Bug Log - changes from IGT_6277 -> IGTPW_6391
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

Participating hosts (34 -> 33)
------------------------------

Missing (1): fi-bsw-cyan

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

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

### IGT changes ###

#### Issues hit ####

* igt@amdgpu/amd_basic@semaphore:
- fi-bdw-5557u: NOTRUN -> [SKIP][1] ([fdo#109271]) +27 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/fi-bdw-5557u/igt@amdgpu/[email protected]

* igt@kms_chamelium@dp-crc-fast:
- fi-bdw-5557u: NOTRUN -> [SKIP][2] ([fdo#109271] / [fdo#111827]) +8 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/fi-bdw-5557u/igt@[email protected]

#### Possible fixes ####

* igt@core_hotunplug@unbind-rebind:
- fi-tgl-u2: [INCOMPLETE][3] ([i915#4006]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/fi-tgl-u2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/fi-tgl-u2/igt@[email protected]

* igt@gem_exec_suspend@basic-s0:
- fi-tgl-1115g4: [FAIL][5] ([i915#1888]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/fi-tgl-1115g4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/fi-tgl-1115g4/igt@[email protected]

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

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#3057]: https://gitlab.freedesktop.org/drm/intel/issues/3057
[i915#3918]: https://gitlab.freedesktop.org/drm/intel/issues/3918
[i915#4006]: https://gitlab.freedesktop.org/drm/intel/issues/4006
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4449]: https://gitlab.freedesktop.org/drm/intel/issues/4449

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

* CI: CI-20190529 -> None
* IGT: IGT_6277 -> IGTPW_6391

CI-20190529: 20190529
CI_DRM_10863: de2d87964c398bd4de93d264192e7f69928cf9c8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6391: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/index.html
IGT_6277: 7201d343fced07a1951feea119480d55bce787e4 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

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

#2 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for tests: Remove restrictions on tests running only DRIVER_INTEL and DRIVER_AMDGPU

In reply to Mark Yacoub
== Series Details ==

== Series Details ==

Series: tests: Remove restrictions on tests running only DRIVER_INTEL and DRIVER_AMDGPU
URL : https://patchwork.freedesktop.org/series/96780/
State : success

== Summary ==

CI Bug Log - changes from IGT_6277_full -> IGTPW_6391_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

Participating hosts (7 -> 7)
------------------------------

No changes in participating hosts

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_persistence@engines-mixed:
- shard-snb: NOTRUN -> [SKIP][1] ([fdo#109271] / [i915#1099])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-snb2/igt@[email protected]

* igt@gem_exec_fair@basic-none-share@rcs0:
- shard-iclb: [PASS][2] -> [FAIL][3] ([i915#2842])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-iclb4/igt@gem_exec_fair@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb4/igt@gem_exec_fair@[email protected]
- shard-apl: [PASS][4] -> [SKIP][5] ([fdo#109271])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-apl7/igt@gem_exec_fair@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl8/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-kbl: NOTRUN -> [FAIL][6] ([i915#2842])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none-vip@rcs0:
- shard-tglb: NOTRUN -> [FAIL][7] ([i915#2842])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb8/igt@gem_exec_fair@[email protected]

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

* igt@gem_exec_fair@basic-pace@bcs0:
- shard-tglb: [PASS][10] -> [FAIL][11] ([i915#2842])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-tglb2/igt@gem_exec_fair@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb2/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vcs1:
- shard-iclb: NOTRUN -> [FAIL][12] ([i915#2842])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [PASS][13] -> [FAIL][14] ([i915#2849])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-iclb7/igt@gem_exec_fair@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb1/igt@gem_exec_fair@[email protected]

* igt@gem_exec_params@secure-non-master:
- shard-tglb: NOTRUN -> [SKIP][15] ([fdo#112283])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb3/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][16] ([fdo#112283])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb4/igt@[email protected]

* igt@gem_exec_whisper@basic-contexts-all:
- shard-glk: [PASS][17] -> [DMESG-WARN][18] ([i915#118])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-glk7/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk1/igt@[email protected]

* igt@gem_render_copy@yf-tiled-to-vebox-y-tiled:
- shard-iclb: NOTRUN -> [SKIP][19] ([i915#768])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb7/igt@[email protected]

* igt@gem_userptr_blits@coherency-sync:
- shard-tglb: NOTRUN -> [SKIP][20] ([fdo#110542])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][21] ([fdo#109290])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb1/igt@[email protected]

* igt@gem_userptr_blits@unsync-overlap:
- shard-tglb: NOTRUN -> [SKIP][22] ([i915#3297]) +1 similar issue
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb8/igt@[email protected]

* igt@gem_userptr_blits@vma-merge:
- shard-apl: NOTRUN -> [FAIL][23] ([i915#3318])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl1/igt@[email protected]
- shard-kbl: NOTRUN -> [FAIL][24] ([i915#3318])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl3/igt@[email protected]

* igt@gen7_exec_parse@cmd-crossing-page:
- shard-tglb: NOTRUN -> [SKIP][25] ([fdo#109289]) +1 similar issue
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb6/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][26] ([fdo#109289])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb8/igt@[email protected]

* igt@gen9_exec_parse@bb-large:
- shard-tglb: NOTRUN -> [SKIP][27] ([i915#2856]) +2 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb6/igt@[email protected]

* igt@gen9_exec_parse@bb-start-far:
- shard-iclb: NOTRUN -> [SKIP][28] ([i915#2856])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb6/igt@[email protected]

* igt@i915_pm_dc@dc6-dpms:
- shard-iclb: [PASS][29] -> [FAIL][30] ([i915#454])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-iclb5/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb3/igt@[email protected]
- shard-kbl: NOTRUN -> [FAIL][31] ([i915#454])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl4/igt@[email protected]

* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a:
- shard-glk: NOTRUN -> [SKIP][32] ([fdo#109271] / [i915#1937])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk5/igt@i915_pm_lpsp@[email protected]

* igt@i915_pm_rpm@modeset-pc8-residency-stress:
- shard-tglb: NOTRUN -> [SKIP][33] ([fdo#109506] / [i915#2411])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb8/igt@[email protected]

* igt@i915_query@query-topology-known-pci-ids:
- shard-tglb: NOTRUN -> [SKIP][34] ([fdo#109303])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb5/igt@[email protected]

* igt@i915_query@query-topology-unsupported:
- shard-tglb: NOTRUN -> [SKIP][35] ([fdo#109302])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb6/igt@[email protected]

* igt@i915_selftest@live@gt_lrc:
- shard-tglb: NOTRUN -> [DMESG-FAIL][36] ([i915#2373])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb1/igt@i915_selftest@live@gt_lrc.html

* igt@i915_selftest@live@gt_pm:
- shard-tglb: NOTRUN -> [DMESG-FAIL][37] ([i915#1759])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb1/igt@i915_selftest@live@gt_pm.html

* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [PASS][38] -> [DMESG-WARN][39] ([i915#180]) +3 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-apl4/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl8/igt@[email protected]

* igt@i915_suspend@forcewake:
- shard-tglb: [PASS][40] -> [INCOMPLETE][41] ([i915#2411] / [i915#456]) +1 similar issue
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-tglb1/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb7/igt@[email protected]

* igt@kms_atomic@plane-primary-overlay-mutable-zpos:
- shard-tglb: NOTRUN -> [SKIP][42] ([i915#404])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb8/igt@[email protected]

* igt@kms_big_fb@linear-8bpp-rotate-90:
- shard-tglb: NOTRUN -> [SKIP][43] ([fdo#111614]) +2 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb3/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][44] ([fdo#110725] / [fdo#111614]) +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb4/igt@[email protected]

* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-hflip:
- shard-kbl: NOTRUN -> [SKIP][45] ([fdo#109271] / [i915#3777]) +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl7/igt@[email protected]

* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0:
- shard-apl: NOTRUN -> [SKIP][46] ([fdo#109271]) +95 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl3/igt@[email protected]

* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip:
- shard-iclb: NOTRUN -> [SKIP][47] ([fdo#110723])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb3/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html

* igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_mc_ccs:
- shard-apl: NOTRUN -> [SKIP][48] ([fdo#109271] / [i915#3886]) +3 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl2/igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_mc_ccs.html
- shard-tglb: NOTRUN -> [SKIP][49] ([i915#3689] / [i915#3886])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb8/igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_mc_ccs.html

* igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_rc_ccs_cc:
- shard-kbl: NOTRUN -> [SKIP][50] ([fdo#109271] / [i915#3886]) +7 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl3/igt@kms_ccs@pipe-a-bad-rotation-90-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc:
- shard-iclb: NOTRUN -> [SKIP][51] ([fdo#109278] / [i915#3886]) +2 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb1/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-c-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][52] ([fdo#109271] / [i915#3886]) +4 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk1/igt@kms_ccs@pipe-c-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc.html

* igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][53] ([i915#3689]) +10 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb2/igt@kms_ccs@pipe-d-bad-aux-stride-y_tiled_gen12_mc_ccs.html

* igt@kms_chamelium@dp-edid-read:
- shard-snb: NOTRUN -> [SKIP][54] ([fdo#109271] / [fdo#111827]) +5 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-snb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][55] ([fdo#109284] / [fdo#111827]) +5 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb8/igt@[email protected]

* igt@kms_chamelium@vga-edid-read:
- shard-glk: NOTRUN -> [SKIP][56] ([fdo#109271] / [fdo#111827]) +10 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk7/igt@[email protected]

* igt@kms_chamelium@vga-hpd-enable-disable-mode:
- shard-apl: NOTRUN -> [SKIP][57] ([fdo#109271] / [fdo#111827]) +9 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl3/igt@[email protected]

* igt@kms_color@pipe-d-ctm-blue-to-red:
- shard-iclb: NOTRUN -> [SKIP][58] ([fdo#109278] / [i915#1149])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb1/igt@[email protected]

* igt@kms_color_chamelium@pipe-a-ctm-0-75:
- shard-kbl: NOTRUN -> [SKIP][59] ([fdo#109271] / [fdo#111827]) +24 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl3/igt@[email protected]

* igt@kms_color_chamelium@pipe-b-ctm-limited-range:
- shard-tglb: NOTRUN -> [SKIP][60] ([fdo#109284] / [fdo#111827]) +10 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb7/igt@[email protected]

* igt@kms_content_protection@atomic:
- shard-kbl: NOTRUN -> [TIMEOUT][61] ([i915#1319]) +3 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl6/igt@[email protected]

* igt@kms_content_protection@content_type_change:
- shard-tglb: NOTRUN -> [SKIP][62] ([fdo#111828])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb6/igt@kms_content_protection@content_type_change.html

* igt@kms_content_protection@dp-mst-lic-type-1:
- shard-iclb: NOTRUN -> [SKIP][63] ([i915#3116])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb1/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][64] ([i915#3116])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb8/igt@[email protected]

* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][65] ([i915#1319]) +1 similar issue
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl7/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-32x32-sliding:
- shard-tglb: NOTRUN -> [SKIP][66] ([i915#3319]) +4 similar issues
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb1/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-32x10-random:
- shard-tglb: NOTRUN -> [SKIP][67] ([i915#3359]) +4 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb6/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-256x256-random:
- shard-glk: NOTRUN -> [SKIP][68] ([fdo#109271]) +88 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk5/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-32x32-rapid-movement:
- shard-iclb: NOTRUN -> [SKIP][69] ([fdo#109278]) +12 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb6/igt@[email protected]

* igt@kms_cursor_crc@pipe-d-cursor-512x170-sliding:
- shard-tglb: NOTRUN -> [SKIP][70] ([fdo#109279] / [i915#3359])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb7/igt@[email protected]

* igt@kms_cursor_legacy@2x-cursor-vs-flip-atomic:
- shard-iclb: NOTRUN -> [SKIP][71] ([fdo#109274] / [fdo#109278])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb6/igt@[email protected]

* igt@kms_cursor_legacy@cursorb-vs-flipb-varying-size:
- shard-tglb: NOTRUN -> [SKIP][72] ([fdo#111825]) +29 similar issues
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb1/igt@[email protected]

* igt@kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic:
- shard-snb: [PASS][73] -> [SKIP][74] ([fdo#109271]) +1 similar issue
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-snb7/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-snb7/igt@[email protected]

* igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size:
- shard-tglb: NOTRUN -> [SKIP][75] ([i915#4103])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb8/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size.html

* igt@kms_flip@flip-vs-suspend@a-dp1:
- shard-apl: [PASS][76] -> [DMESG-WARN][77] ([i915#180] / [i915#1982])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-apl2/igt@kms_flip@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl4/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend@c-dp1:
- shard-kbl: [PASS][78] -> [DMESG-WARN][79] ([i915#180]) +5 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-kbl7/igt@kms_flip@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl3/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs:
- shard-tglb: NOTRUN -> [SKIP][80] ([i915#2587])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb1/igt@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-kbl: NOTRUN -> [SKIP][81] ([fdo#109271] / [i915#2672])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl2/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html

* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile:
- shard-iclb: [PASS][82] -> [SKIP][83] ([i915#3701]) +1 similar issue
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-iclb4/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb2/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- shard-tglb: NOTRUN -> [SKIP][84] ([fdo#109285])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb3/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-move:
- shard-iclb: NOTRUN -> [SKIP][85] ([fdo#109280]) +5 similar issues
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb3/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render:
- shard-snb: NOTRUN -> [SKIP][86] ([fdo#109271]) +67 similar issues
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-snb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html

* igt@kms_frontbuffer_tracking@psr-rgb101010-draw-mmap-wc:
- shard-kbl: NOTRUN -> [SKIP][87] ([fdo#109271]) +263 similar issues
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl7/igt@[email protected]

* igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
- shard-tglb: NOTRUN -> [SKIP][88] ([i915#1839])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb1/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-alpha-basic:
- shard-kbl: NOTRUN -> [FAIL][89] ([fdo#108145] / [i915#265])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl1/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-alpha-transparent-fb:
- shard-kbl: NOTRUN -> [FAIL][90] ([i915#265])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl6/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-max:
- shard-glk: NOTRUN -> [FAIL][91] ([fdo#108145] / [i915#265])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk5/igt@[email protected]

* igt@kms_plane_multiple@atomic-pipe-d-tiling-yf:
- shard-tglb: NOTRUN -> [SKIP][92] ([fdo#112054])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb1/igt@[email protected]

* igt@kms_plane_scaling@2x-scaler-multi-pipe:
- shard-iclb: NOTRUN -> [SKIP][93] ([fdo#109274]) +4 similar issues
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb7/igt@[email protected]

* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping:
- shard-kbl: NOTRUN -> [SKIP][94] ([fdo#109271] / [i915#2733])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl6/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html
- shard-glk: NOTRUN -> [SKIP][95] ([fdo#109271] / [i915#2733])
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk7/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html

* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-1:
- shard-tglb: NOTRUN -> [SKIP][96] ([i915#2920]) +2 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb5/igt@[email protected]

* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1:
- shard-iclb: NOTRUN -> [SKIP][97] ([i915#658])
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb7/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][98] ([fdo#109271] / [i915#658]) +2 similar issues
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk5/igt@[email protected]
- shard-kbl: NOTRUN -> [SKIP][99] ([fdo#109271] / [i915#658]) +4 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl6/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][100] ([fdo#109271] / [i915#658])
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl3/igt@[email protected]

* igt@kms_psr2_su@frontbuffer:
- shard-tglb: NOTRUN -> [SKIP][101] ([i915#1911])
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb5/igt@[email protected]

* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: NOTRUN -> [SKIP][102] ([fdo#109441])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb4/igt@kms_psr@psr2_sprite_mmap_gtt.html
- shard-tglb: NOTRUN -> [FAIL][103] ([i915#132] / [i915#3467]) +1 similar issue
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb3/igt@kms_psr@psr2_sprite_mmap_gtt.html

* igt@kms_psr@psr2_sprite_render:
- shard-iclb: [PASS][104] -> [SKIP][105] ([fdo#109441]) +1 similar issue
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-iclb2/igt@kms_psr@psr2_sprite_render.html
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb5/igt@kms_psr@psr2_sprite_render.html

* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0:
- shard-tglb: NOTRUN -> [SKIP][106] ([fdo#111615]) +4 similar issues
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb5/igt@[email protected]

* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [PASS][107] -> [DMESG-WARN][108] ([i915#180] / [i915#295])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-kbl7/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl1/igt@[email protected]

* igt@kms_vblank@pipe-c-ts-continuation-suspend:
- shard-kbl: NOTRUN -> [DMESG-WARN][109] ([i915#180])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl3/igt@[email protected]

* igt@kms_vblank@pipe-d-wait-idle:
- shard-kbl: NOTRUN -> [SKIP][110] ([fdo#109271] / [i915#533])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl2/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][111] ([fdo#109271] / [i915#533])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl8/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][112] ([fdo#109271] / [i915#533])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk9/igt@[email protected]

* igt@kms_writeback@writeback-check-output:
- shard-kbl: NOTRUN -> [SKIP][113] ([fdo#109271] / [i915#2437])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl1/igt@[email protected]

* igt@kms_writeback@writeback-fb-id:
- shard-tglb: NOTRUN -> [SKIP][114] ([i915#2437]) +1 similar issue
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb3/igt@[email protected]

* igt@nouveau_crc@pipe-a-ctx-flip-skip-current-frame:
- shard-tglb: NOTRUN -> [SKIP][115] ([i915#2530])
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][116] ([i915#2530])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb3/igt@[email protected]

* igt@prime_nv_api@i915_nv_import_twice:
- shard-iclb: NOTRUN -> [SKIP][117] ([fdo#109291]) +2 similar issues
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb1/igt@prime_nv_api@i915_nv_import_twice.html

* igt@prime_nv_pcopy@test1_macro:
- shard-tglb: NOTRUN -> [SKIP][118] ([fdo#109291]) +3 similar issues
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb6/igt@prime_nv_pcopy@test1_macro.html

* igt@sysfs_clients@busy:
- shard-tglb: NOTRUN -> [SKIP][119] ([i915#2994]) +3 similar issues
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb6/igt@[email protected]

* igt@sysfs_clients@fair-3:
- shard-kbl: NOTRUN -> [SKIP][120] ([fdo#109271] / [i915#2994]) +3 similar issues
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-kbl1/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][121] ([fdo#109271] / [i915#2994]) +1 similar issue
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk7/igt@[email protected]

* igt@sysfs_clients@fair-7:
- shard-apl: NOTRUN -> [SKIP][122] ([fdo#109271] / [i915#2994])
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-apl8/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][123] ([i915#2994])
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb3/igt@[email protected]

#### Possible fixes ####

* igt@gem_ctx_isolation@preservation-s3@bcs0:
- shard-tglb: [INCOMPLETE][124] ([i915#456]) -> [PASS][125]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-tglb7/igt@gem_ctx_isolation@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb2/igt@gem_ctx_isolation@[email protected]

* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-iclb: [FAIL][126] ([i915#2842]) -> [PASS][127]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-iclb2/igt@gem_exec_fair@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-iclb7/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none@rcs0:
- shard-glk: [FAIL][128] ([i915#2842]) -> [PASS][129]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-glk8/igt@gem_exec_fair@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-glk9/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@rcs0:
- shard-tglb: [FAIL][130] ([i915#2842]) -> [PASS][131]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-tglb2/igt@gem_exec_fair@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb2/igt@gem_exec_fair@[email protected]

* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-tglb: [INCOMPLETE][132] ([i915#456] / [i915#750]) -> [PASS][133]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-tglb7/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6391/shard-tglb8/igt@[email protected]

* igt@kms_big_fb@linear-32bpp-rotate-180:
- shard-glk: [DMESG-WARN][134] ([i915#118]) -> [PASS][135] +3 similar issues
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6277/shard-glk9/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/dr

== Logs ==

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

Reviewed-by on v1 1/1
#3 lore raw
In reply to Mark Yacoub
Quoted 8 lines · Mark Yacoub

From: Mark Yacoub <[email protected]>

[Why]
Drivers such as MSM are able to run tests that are made generic through supporting another driver that's not i915. Removing the restriction that enables the test on a 2 drivers only allow the tests to run on other drivers.

Quoted 8 lines

[How]
1. Replace DRIVER_INTEL | DRIVER_AMDGPU by DRIVER_ANY
2. Make the checks more broad to allow intel generic implementation to work on all drivers while keeping special amdgpu's quirks.

Tested on Trogdor (MSM)

Thanks for this!

Quoted 154 lines
---
 tests/kms_hdr.c            |  2 +-
 tests/kms_plane_multiple.c |  2 +-
 tests/kms_plane_scaling.c  |  2 +-
 tests/kms_rotation_crc.c   | 52 +++++++++++++++++++++++---------------
 4 files changed, 34 insertions(+), 24 deletions(-)
tests/kms_hdr.c +1 -1
index 5b8529c8..2a76c7ec 100644
@@ -643,7 +643,7 @@ igt_main
 	data_t data = {};
 
 	igt_fixture {
-		data.fd = drm_open_driver_master(DRIVER_AMDGPU | DRIVER_INTEL);
+		data.fd = drm_open_driver_master(DRIVER_ANY);
 
 		kmstest_set_vt_graphics_mode();
 
tests/kms_plane_multiple.c +1 -1
index 45cabb50..e3aa2e7c 100644
@@ -445,7 +445,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 	enum pipe pipe;
 
 	igt_fixture {
-		data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
+		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
 		kmstest_set_vt_graphics_mode();
 		igt_require_pipe_crc(data.drm_fd);
 		igt_display_require(&data.display, data.drm_fd);
tests/kms_plane_scaling.c +1 -1
index 4c517a43..270f7615 100644
@@ -709,7 +709,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 	enum pipe pipe;
 
 	igt_fixture {
-		data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
+		data.drm_fd = drm_open_driver_master(DRIVER_ANY);
 		igt_display_require(&data.display, data.drm_fd);
 		data.devid = is_i915_device(data.drm_fd) ?
 			intel_get_drm_devid(data.drm_fd) : 0;
tests/kms_rotation_crc.c +31 -21
index 11401a6d..71525f95 100644
@@ -295,15 +295,15 @@ static void prepare_fbs(data_t *data, igt_output_t *output,
 			igt_plane_set_position(plane, data->pos_x, data->pos_y);
 		igt_display_commit2(display, COMMIT_ATOMIC);
 
-		if (is_i915_device(data->gfx_fd)) {
+		if (is_amdgpu_device(data->gfx_fd)) {
+			igt_pipe_crc_collect_crc(
+				data->pipe_crc,
+				&data->crc_rect[data->output_crc_in_use][rect].flip_crc);
+		} else {
 			igt_pipe_crc_get_current(
 				display->drm_fd, data->pipe_crc,
 				&data->crc_rect[data->output_crc_in_use][rect].flip_crc);
 			igt_remove_fb(data->gfx_fd, &data->fb_flip);
-		} else if (is_amdgpu_device(data->gfx_fd)) {
-			igt_pipe_crc_collect_crc(
-				data->pipe_crc,
-				&data->crc_rect[data->output_crc_in_use][rect].flip_crc);
 		}
 
 		/*
@@ -318,13 +318,15 @@ static void prepare_fbs(data_t *data, igt_output_t *output,
 			igt_plane_set_position(plane, data->pos_x, data->pos_y);
 		igt_display_commit2(display, COMMIT_ATOMIC);
 
-		if (is_i915_device(data->gfx_fd)) {
-			igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc,
-					&data->crc_rect[data->output_crc_in_use][rect].ref_crc);
-		} else if (is_amdgpu_device(data->gfx_fd)) {
-			igt_pipe_crc_collect_crc(data->pipe_crc,
-					&data->crc_rect[data->output_crc_in_use][rect].ref_crc);
+		if (is_amdgpu_device(data->gfx_fd)) {
+			igt_pipe_crc_collect_crc(
+				data->pipe_crc,
+				&data->crc_rect[data->output_crc_in_use][rect].ref_crc);
 			igt_remove_fb(data->gfx_fd, &data->fb_flip);
+		} else {
+			igt_pipe_crc_get_current(
+				display->drm_fd, data->pipe_crc,
+				&data->crc_rect[data->output_crc_in_use][rect].ref_crc);
 		}
 		data->crc_rect[data->output_crc_in_use][rect].valid = true;
 	}
@@ -383,12 +385,15 @@ static void test_single_case(data_t *data, enum pipe pipe,
 	igt_assert_eq(ret, 0);
 
 	/* Check CRC */
-	if (is_i915_device(data->gfx_fd))
-		igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &crc_output);
-	else if (is_amdgpu_device(data->gfx_fd))
+	if (is_amdgpu_device(data->gfx_fd)) {
 		igt_pipe_crc_collect_crc(data->pipe_crc, &crc_output);
-	igt_assert_crc_equal(&data->crc_rect[data->output_crc_in_use][rect].ref_crc,
-			     &crc_output);
+	} else {
+		igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc,
+								 &crc_output);
+	}
+	igt_assert_crc_equal(
+		&data->crc_rect[data->output_crc_in_use][rect].ref_crc,
+		&crc_output);
 
 	/*
 	 * If flips are requested flip to a different fb and
@@ -410,10 +415,13 @@ static void test_single_case(data_t *data, enum pipe pipe,
 			igt_assert_eq(ret, 0);
 		}
 		kmstest_wait_for_pageflip(data->gfx_fd);
-		if (is_i915_device(data->gfx_fd))
-			igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &crc_output);
-		else if (is_amdgpu_device(data->gfx_fd))
+
+		if (is_amdgpu_device(data->gfx_fd)) {
 			igt_pipe_crc_collect_crc(data->pipe_crc, &crc_output);
+		} else {
+			igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc,
+									 &crc_output);
+		}
 		igt_assert_crc_equal(&data->crc_rect[data->output_crc_in_use][rect].flip_crc,
 				     &crc_output);
 	}
@@ -519,7 +527,9 @@ static void test_plane_rotation(data_t *data, int plane_type, bool test_bad_form
 			/* Only support partial covering primary plane on gen9+ */
 			if (is_amdgpu_device(data->gfx_fd) ||
 				(plane_type == DRM_PLANE_TYPE_PRIMARY &&
-			    intel_display_ver(intel_get_drm_devid(data->gfx_fd)) < 9)) {
+				 is_i915_device(data->gfx_fd) &&
+				 intel_display_ver(
+					 intel_get_drm_devid(data->gfx_fd)) < 9)) {
 				if (i != rectangle)
 					continue;
 				else
@@ -1033,7 +1043,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
 	int gen = 0;
 
 	igt_fixture {
-		data.gfx_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
+		data.gfx_fd = drm_open_driver_master(DRIVER_ANY);
 		if (is_i915_device(data.gfx_fd)) {
 			data.devid = intel_get_drm_devid(data.gfx_fd);
 			gen = intel_display_ver(data.devid);
Signature · 1 line
2.34.0.rc0.344.g81b53c2807-goog
author Applied
#4 lore raw

Applied. Thanks!

Quoted 178 lines · Petri Latvala
Quoted 8 lines · Mark Yacoub

From: Mark Yacoub <[email protected]>

[Why]
Drivers such as MSM are able to run tests that are made generic through supporting another driver that's not i915. Removing the restriction that enables the test on a 2 drivers only allow the tests to run on other drivers.

Quoted 8 lines

[How]
1. Replace DRIVER_INTEL | DRIVER_AMDGPU by DRIVER_ANY
2. Make the checks more broad to allow intel generic implementation to work on all drivers while keeping special amdgpu's quirks.

Tested on Trogdor (MSM)

Thanks for this!

Quoted 154 lines
---
 tests/kms_hdr.c            |  2 +-
 tests/kms_plane_multiple.c |  2 +-
 tests/kms_plane_scaling.c  |  2 +-
 tests/kms_rotation_crc.c   | 52 +++++++++++++++++++++++---------------
 4 files changed, 34 insertions(+), 24 deletions(-)
tests/kms_hdr.c +1 -1
index 5b8529c8..2a76c7ec 100644
@@ -643,7 +643,7 @@ igt_main
      data_t data = {};
 
      igt_fixture {
-             data.fd = drm_open_driver_master(DRIVER_AMDGPU | DRIVER_INTEL);
+             data.fd = drm_open_driver_master(DRIVER_ANY);
 
              kmstest_set_vt_graphics_mode();
 
tests/kms_plane_multiple.c +1 -1
index 45cabb50..e3aa2e7c 100644
@@ -445,7 +445,7 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
      enum pipe pipe;
 
      igt_fixture {
-             data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
+             data.drm_fd = drm_open_driver_master(DRIVER_ANY);
              kmstest_set_vt_graphics_mode();
              igt_require_pipe_crc(data.drm_fd);
              igt_display_require(&data.display, data.drm_fd);
tests/kms_plane_scaling.c +1 -1
index 4c517a43..270f7615 100644
@@ -709,7 +709,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
      enum pipe pipe;
 
      igt_fixture {
-             data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
+             data.drm_fd = drm_open_driver_master(DRIVER_ANY);
              igt_display_require(&data.display, data.drm_fd);
              data.devid = is_i915_device(data.drm_fd) ?
                      intel_get_drm_devid(data.drm_fd) : 0;
tests/kms_rotation_crc.c +31 -22
index 11401a6d..71525f95 100644
@@ -295,15 +295,15 @@ static void prepare_fbs(data_t *data, igt_output_t *output,
                      igt_plane_set_position(plane, data->pos_x, data->pos_y);
              igt_display_commit2(display, COMMIT_ATOMIC);
 
-             if (is_i915_device(data->gfx_fd)) {
+             if (is_amdgpu_device(data->gfx_fd)) {
+                     igt_pipe_crc_collect_crc(
+                             data->pipe_crc,
+                             &data->crc_rect[data->output_crc_in_use][rect].flip_crc);
+             } else {
                      igt_pipe_crc_get_current(
                              display->drm_fd, data->pipe_crc,
                              &data->crc_rect[data->output_crc_in_use][rect].flip_crc);
                      igt_remove_fb(data->gfx_fd, &data->fb_flip);
-             } else if (is_amdgpu_device(data->gfx_fd)) {
-                     igt_pipe_crc_collect_crc(
-                             data->pipe_crc,
-                             &data->crc_rect[data->output_crc_in_use][rect].flip_crc);
              }
 
              /*
@@ -318,13 +318,15 @@ static void prepare_fbs(data_t *data, igt_output_t *output,
                      igt_plane_set_position(plane, data->pos_x, data->pos_y);
              igt_display_commit2(display, COMMIT_ATOMIC);
 
-             if (is_i915_device(data->gfx_fd)) {
-                     igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc,
-                                     &data->crc_rect[data->output_crc_in_use][rect].ref_crc);
-             } else if (is_amdgpu_device(data->gfx_fd)) {
-                     igt_pipe_crc_collect_crc(data->pipe_crc,
-                                     &data->crc_rect[data->output_crc_in_use][rect].ref_crc);
+             if (is_amdgpu_device(data->gfx_fd)) {
+                     igt_pipe_crc_collect_crc(
+                             data->pipe_crc,
+                             &data->crc_rect[data->output_crc_in_use][rect].ref_crc);
                      igt_remove_fb(data->gfx_fd, &data->fb_flip);
+             } else {
+                     igt_pipe_crc_get_current(
+                             display->drm_fd, data->pipe_crc,
+                             &data->crc_rect[data->output_crc_in_use][rect].ref_crc);
              }
              data->crc_rect[data->output_crc_in_use][rect].valid = true;
      }
@@ -383,12 +385,15 @@ static void test_single_case(data_t *data, enum pipe pipe,
      igt_assert_eq(ret, 0);
 
      /* Check CRC */
-     if (is_i915_device(data->gfx_fd))
-             igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &crc_output);
-     else if (is_amdgpu_device(data->gfx_fd))
+     if (is_amdgpu_device(data->gfx_fd)) {
              igt_pipe_crc_collect_crc(data->pipe_crc, &crc_output);
-     igt_assert_crc_equal(&data->crc_rect[data->output_crc_in_use][rect].ref_crc,
-                          &crc_output);
+     } else {
+             igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc,
+                                                              &crc_output);
+     }
+     igt_assert_crc_equal(
+             &data->crc_rect[data->output_crc_in_use][rect].ref_crc,
+             &crc_output);
 
      /*
       * If flips are requested flip to a different fb and
@@ -410,10 +415,13 @@ static void test_single_case(data_t *data, enum pipe pipe,
                      igt_assert_eq(ret, 0);
              }
              kmstest_wait_for_pageflip(data->gfx_fd);
-             if (is_i915_device(data->gfx_fd))
-                     igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &crc_output);
-             else if (is_amdgpu_device(data->gfx_fd))
+
+             if (is_amdgpu_device(data->gfx_fd)) {
                      igt_pipe_crc_collect_crc(data->pipe_crc, &crc_output);
+             } else {
+                     igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc,
+                                                                      &crc_output);
+             }
              igt_assert_crc_equal(&data->crc_rect[data->output_crc_in_use][rect].flip_crc,
                                   &crc_output);
      }
@@ -519,7 +527,9 @@ static void test_plane_rotation(data_t *data, int plane_type, bool test_bad_form
                      /* Only support partial covering primary plane on gen9+ */
                      if (is_amdgpu_device(data->gfx_fd) ||
                              (plane_type == DRM_PLANE_TYPE_PRIMARY &&
-                         intel_display_ver(intel_get_drm_devid(data->gfx_fd)) < 9)) {
+                              is_i915_device(data->gfx_fd) &&
+                              intel_display_ver(
+                                      intel_get_drm_devid(data->gfx_fd)) < 9)) {
                              if (i != rectangle)
                                      continue;
                              else
@@ -1033,7 +1043,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
      int gen = 0;
 
      igt_fixture {
-             data.gfx_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
+             data.gfx_fd = drm_open_driver_master(DRIVER_ANY);
              if (is_i915_device(data.gfx_fd)) {
                      data.devid = intel_get_drm_devid(data.gfx_fd);
                      gen = intel_display_ver(data.devid);
--

2.34.0.rc0.344.g81b53c2807-goog