tests/kms_flip: Restrict the hang tests execution to two pipes
PATCH v3 1/1 tests/kms_flip: Restrict the hang tests execution to two pipes
To save the CI execution time, instead of running on all pipes restrict the hang tests execution to two pipes.
If we want to execute on all pipes, we need to pass an extra argument "-e" indicates extended.
Example: ./build/tests/kms_flip -e --r flip-vs-modeset-vs-hang
v2, v3:
* Fix the typo in args handler (Petri)
--- tests/kms_flip.c | 52 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 7 deletions(-)
tests/kms_flip.c +45 -7
@@ -85,6 +85,10 @@#define DRM_CAP_TIMESTAMP_MONOTONIC 6#endif +/* restricted pipe count */ +#define CRTC_RESTRICT_CNT 2 +static bool all_pipes = false; +drmModeRes *resources;int drm_fd;static struct buf_ops *bops;
@@ -1435,10 +1439,17 @@ static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs,__run_test_on_crtc_set (o, crtc_idxs, crtc_count, duration_ms); } +static int limit_crtc_count (int count_crtcs) +{ +return (count_crtcs >CRTC_RESTRICT_CNT )? +CRTC_RESTRICT_CNT : count_crtcs; +} +static int run_test (int duration,int flags) {struct test_output o;int i, n, modes =0 ; +int count_crtcs;igt_require ((flags &TEST_HANG ) ==0 || !is_wedged (drm_fd)); igt_require(!(flags & TEST_FENCE_STRESS) ||
@@ -1447,9 +1458,14 @@ static int run_test(int duration, int flags) resources =drmModeGetResources (drm_fd);igt_require (resources); + count_crtcs = resources->count_crtcs; +/* Limit the execution to 2 CRTCs for hang tests */ +if (!!(flags &TEST_HANG ) && !all_pipes) + count_crtcs =limit_crtc_count (count_crtcs); +/* Count output configurations to scale test runtime. */ for (i =0 ; i < resources->count_connectors; i++) { -for (n =0 ; n < resources->count_crtcs; n++) { +for (n =0 ; n < count_crtcs; n++) {memset (&o,0 ,sizeof (o)); o.count =1 ; o._connector[0 ] = resources->connectors[i];
@@ -1471,7 +1487,7 @@ static int run_test(int duration, int flags)/* Find any connected displays */ for (i =0 ; i < resources->count_connectors; i++) { -for (n =0 ; n < resources->count_crtcs; n++) { +for (n =0 ; n < count_crtcs; n++) {int crtc_idx;memset (&o,0 ,sizeof (o));
@@ -1494,6 +1510,7 @@ static int run_pair(int duration, int flags) {struct test_output o;int i, j, m, n, modes =0 ; +int count_crtcs;igt_require ((flags &TEST_HANG ) ==0 || !is_wedged (drm_fd)); igt_require(!(flags & TEST_FENCE_STRESS) ||
@@ -1502,11 +1519,16 @@ static int run_pair(int duration, int flags) resources =drmModeGetResources (drm_fd);igt_require (resources); + count_crtcs = resources->count_crtcs; +/* Limit the execution to 2 CRTCs for hang tests */ +if (!!(flags &TEST_HANG ) && !all_pipes) + count_crtcs =limit_crtc_count (count_crtcs); +/* Find a pair of connected displays */ for (i =0 ; i < resources->count_connectors; i++) { -for (n =0 ; n < resources->count_crtcs; n++) { +for (n =0 ; n < count_crtcs; n++) {for (j = i +1 ; j < resources->count_connectors; j++) { -for (m = n +1 ; m < resources->count_crtcs; m++) { +for (m = n +1 ; m < count_crtcs; m++) {memset (&o,0 ,sizeof (o)); o.count =2 ; o._connector[0 ] = resources->connectors[i];
@@ -1533,9 +1555,9 @@ static int run_pair(int duration, int flags)/* Find a pair of connected displays */ for (i =0 ; i < resources->count_connectors; i++) { -for (n =0 ; n < resources->count_crtcs; n++) { +for (n =0 ; n < count_crtcs; n++) {for (j = i +1 ; j < resources->count_connectors; j++) { -for (m = n +1 ; m < resources->count_crtcs; m++) { +for (m = n +1 ; m < count_crtcs; m++) {int crtc_idxs[2 ];memset (&o,0 ,sizeof (o));
@@ -1604,7 +1626,23 @@ static void test_nonblocking_read(int in)close (fd); } -igt_main +static int opt_handler (int opt,int opt_index,void *data) +{ +switch (opt) { +case 'e' : + all_pipes = true; +break ; +default : +return IGT_OPT_HANDLER_ERROR ; + } + +return IGT_OPT_HANDLER_SUCCESS ; +} + +const char *help_str = +" -e \tRun on all pipes. (By default subtests will run on two pipes)\n" ; + +igt_main_args("e", NULL, help_str, opt_handler, NULL) {struct {int duration;
Signature · 6 lines
2.20.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for tests/kms_flip: Restrict the hang tests execution to two pipes (rev3)
== Series Details ==
== Series Details ==
Series: tests/kms_flip: Restrict the hang tests execution to two pipes (rev3)
URL : https://patchwork.freedesktop.org/series/87828/
State : success
== Summary ==
CI Bug Log - changes from IGT_6028 -> IGTPW_5590
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/index.html
Known issues
------------
Here are the changes found in IGTPW_5590 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@sync-fork-compute0:
- fi-snb-2600: NOTRUN -> [SKIP][1] ([fdo#109271]) +17 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/fi-snb-2600/igt@amdgpu/[email protected]
* igt@gem_linear_blits@basic:
- fi-kbl-8809g: [PASS][2] -> [TIMEOUT][3] ([i915#2502] / [i915#3145]) +1 similar issue
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/fi-kbl-8809g/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/fi-kbl-8809g/igt@[email protected]
* igt@i915_selftest@live@client:
- fi-glk-dsi: [PASS][4] -> [DMESG-FAIL][5] ([i915#3047])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/fi-glk-dsi/igt@i915_selftest@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/fi-glk-dsi/igt@i915_selftest@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [INCOMPLETE][6] ([i915#2782]) -> [PASS][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/fi-snb-2600/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/fi-snb-2600/igt@i915_selftest@[email protected]
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#2502]: https://gitlab.freedesktop.org/drm/intel/issues/2502
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#3047]: https://gitlab.freedesktop.org/drm/intel/issues/3047
[i915#3145]: https://gitlab.freedesktop.org/drm/intel/issues/3145
Participating hosts (47 -> 41)
------------------------------
Missing (6): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-ctg-p8600 fi-dg1-1 fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6028 -> IGTPW_5590
CI-20190529: 20190529
CI_DRM_9844: 3108bcbbbf191b3b5e624f21348c306010725a02 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_5590: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/index.html
IGT_6028: f3109d1e3b554903df9109e1e4d10c881b3f811b @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for tests/kms_flip: Restrict the hang tests execution to two pipes (rev3)
In reply to Bhanuprakash Modem== Series Details ==
== Series Details ==
Series: tests/kms_flip: Restrict the hang tests execution to two pipes (rev3)
URL : https://patchwork.freedesktop.org/series/87828/
State : failure
== Summary ==
CI Bug Log - changes from IGT_6028_full -> IGTPW_5590_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_5590_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_5590_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_5590/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_5590_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_plane_scaling@scaler-with-rotation:
- shard-kbl: NOTRUN -> [INCOMPLETE][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl6/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_5590_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@feature_discovery@display-4x:
- shard-tglb: NOTRUN -> [SKIP][2] ([i915#1839])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][3] ([i915#1839])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb5/igt@[email protected]
* igt@gem_create@create-massive:
- shard-snb: NOTRUN -> [DMESG-WARN][4] ([i915#3002])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-snb2/igt@[email protected]
* igt@gem_ctx_persistence@idempotent:
- shard-snb: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#1099]) +5 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-snb6/igt@[email protected]
* igt@gem_ctx_sseu@invalid-sseu:
- shard-tglb: NOTRUN -> [SKIP][6] ([i915#280])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb2/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-iclb: [PASS][7] -> [TIMEOUT][8] ([i915#2369] / [i915#2481] / [i915#3070])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb5/igt@[email protected]
* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-iclb: NOTRUN -> [FAIL][9] ([i915#2842]) +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb5/igt@gem_exec_fair@[email protected]
- shard-glk: NOTRUN -> [FAIL][10] ([i915#2842])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-glk9/igt@gem_exec_fair@[email protected]
- shard-tglb: NOTRUN -> [FAIL][11] ([i915#2842])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-kbl: [PASS][12] -> [FAIL][13] ([i915#2842]) +2 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl1/igt@gem_exec_fair@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: [PASS][14] -> [FAIL][15] ([i915#2842]) +1 similar issue
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-glk7/igt@gem_exec_fair@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-glk1/igt@gem_exec_fair@[email protected]
- shard-iclb: [PASS][16] -> [FAIL][17] ([i915#2849])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb6/igt@gem_exec_fair@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_reloc@basic-many-active@vcs0:
- shard-kbl: NOTRUN -> [FAIL][18] ([i915#2389]) +4 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl1/igt@gem_exec_reloc@[email protected]
* igt@gem_exec_reloc@basic-many-active@vcs1:
- shard-iclb: NOTRUN -> [FAIL][19] ([i915#2389])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb4/igt@gem_exec_reloc@[email protected]
* igt@gem_media_vme:
- shard-tglb: NOTRUN -> [SKIP][20] ([i915#284])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb8/igt@gem_media_vme.html
* igt@gem_mmap_gtt@cpuset-medium-copy:
- shard-iclb: [PASS][21] -> [FAIL][22] ([i915#307])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb7/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb6/igt@[email protected]
* igt@gem_render_copy@y-tiled-ccs-to-yf-tiled-mc-ccs:
- shard-iclb: NOTRUN -> [SKIP][23] ([i915#768]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb2/igt@[email protected]
* igt@gem_softpin@evict-snoop:
- shard-iclb: NOTRUN -> [SKIP][24] ([fdo#109312])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb5/igt@[email protected]
- shard-tglb: NOTRUN -> [SKIP][25] ([fdo#109312])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb7/igt@[email protected]
* igt@gem_userptr_blits@input-checking:
- shard-apl: NOTRUN -> [DMESG-WARN][26] ([i915#3002])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl7/igt@[email protected]
* igt@gem_userptr_blits@process-exit-mmap@gtt:
- shard-kbl: NOTRUN -> [SKIP][27] ([fdo#109271] / [i915#1699]) +3 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl6/igt@gem_userptr_blits@[email protected]
* igt@gem_userptr_blits@process-exit-mmap@wb:
- shard-glk: NOTRUN -> [SKIP][28] ([fdo#109271] / [i915#1699]) +3 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-glk9/igt@gem_userptr_blits@[email protected]
* igt@gem_userptr_blits@process-exit-mmap@wc:
- shard-iclb: NOTRUN -> [SKIP][29] ([i915#1699]) +3 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb5/igt@gem_userptr_blits@[email protected]
- shard-tglb: NOTRUN -> [SKIP][30] ([i915#1699]) +3 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb7/igt@gem_userptr_blits@[email protected]
* igt@gem_userptr_blits@vma-merge:
- shard-kbl: NOTRUN -> [INCOMPLETE][31] ([i915#2502] / [i915#2667])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl2/igt@[email protected]
* igt@gem_vm_create@destroy-race:
- shard-tglb: [PASS][32] -> [TIMEOUT][33] ([i915#2795])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-tglb3/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb1/igt@[email protected]
* igt@gem_workarounds@suspend-resume-fd:
- shard-kbl: NOTRUN -> [DMESG-WARN][34] ([i915#180])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl6/igt@[email protected]
* igt@gen3_render_linear_blits:
- shard-tglb: NOTRUN -> [SKIP][35] ([fdo#109289]) +4 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb3/igt@gen3_render_linear_blits.html
- shard-iclb: NOTRUN -> [SKIP][36] ([fdo#109289]) +2 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb7/igt@gen3_render_linear_blits.html
* igt@gen9_exec_parse@unaligned-jump:
- shard-tglb: NOTRUN -> [SKIP][37] ([fdo#112306])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb1/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-dp:
- shard-apl: NOTRUN -> [SKIP][38] ([fdo#109271] / [i915#1937])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl1/igt@i915_pm_lpsp@[email protected]
* igt@i915_pm_rpm@dpms-non-lpsp:
- shard-tglb: NOTRUN -> [SKIP][39] ([fdo#111644] / [i915#1397] / [i915#2411])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb2/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress:
- shard-apl: NOTRUN -> [SKIP][40] ([fdo#109271]) +223 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl7/igt@[email protected]
* igt@kms_atomic@plane-primary-overlay-mutable-zpos:
- shard-tglb: NOTRUN -> [SKIP][41] ([i915#404])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][42] ([i915#404])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb5/igt@[email protected]
* igt@kms_atomic_transition@plane-all-transition-nonblocking-fencing@edp-1-pipe-b:
- shard-iclb: [PASS][43] -> [FAIL][44] ([i915#3168])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb3/igt@kms_atomic_transition@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb6/igt@kms_atomic_transition@[email protected]
* igt@kms_big_joiner@invalid-modeset:
- shard-apl: NOTRUN -> [SKIP][45] ([fdo#109271] / [i915#2705])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl2/igt@[email protected]
* igt@kms_chamelium@dp-mode-timings:
- shard-apl: NOTRUN -> [SKIP][46] ([fdo#109271] / [fdo#111827]) +25 similar issues
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl7/igt@[email protected]
* igt@kms_chamelium@vga-edid-read:
- shard-iclb: NOTRUN -> [SKIP][47] ([fdo#109284] / [fdo#111827]) +2 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb4/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][48] ([fdo#109271] / [fdo#111827]) +7 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-glk6/igt@[email protected]
* igt@kms_color@pipe-b-ctm-0-75:
- shard-tglb: NOTRUN -> [FAIL][49] ([i915#1149] / [i915#315]) +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [FAIL][50] ([i915#1149] / [i915#315])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb3/igt@[email protected]
* igt@kms_color@pipe-d-ctm-0-25:
- shard-iclb: NOTRUN -> [SKIP][51] ([fdo#109278] / [i915#1149])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb7/igt@[email protected]
* igt@kms_color_chamelium@pipe-a-ctm-blue-to-red:
- shard-snb: NOTRUN -> [SKIP][52] ([fdo#109271] / [fdo#111827]) +18 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-snb6/igt@[email protected]
* igt@kms_color_chamelium@pipe-c-ctm-negative:
- shard-kbl: NOTRUN -> [SKIP][53] ([fdo#109271] / [fdo#111827]) +6 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl4/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-red-to-blue:
- shard-tglb: NOTRUN -> [SKIP][54] ([fdo#109284] / [fdo#111827]) +6 similar issues
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb7/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][55] ([fdo#109278] / [fdo#109284] / [fdo#111827])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb5/igt@[email protected]
* igt@kms_content_protection@dp-mst-type-0:
- shard-tglb: NOTRUN -> [SKIP][56] ([i915#3116])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb6/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][57] ([i915#3116])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb4/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][58] ([i915#1319])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl3/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-512x170-random:
- shard-tglb: NOTRUN -> [SKIP][59] ([fdo#109279])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb6/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][60] ([fdo#109278] / [fdo#109279])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb4/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-apl: [PASS][61] -> [DMESG-WARN][62] ([i915#180]) +1 similar issue
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-apl1/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl8/igt@[email protected]
* igt@kms_cursor_legacy@cursora-vs-flipb-atomic-transitions-varying-size:
- shard-iclb: NOTRUN -> [SKIP][63] ([fdo#109274] / [fdo#109278]) +1 similar issue
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb3/igt@kms_cursor_legacy@cursora-vs-flipb-atomic-transitions-varying-size.html
* igt@kms_cursor_legacy@pipe-d-single-move:
- shard-iclb: NOTRUN -> [SKIP][64] ([fdo#109278]) +10 similar issues
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb8/igt@[email protected]
* igt@kms_flip@2x-flip-vs-rmfb-interruptible:
- shard-iclb: NOTRUN -> [SKIP][65] ([fdo#109274]) +3 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb5/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1:
- shard-tglb: NOTRUN -> [FAIL][66] ([i915#2598])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb7/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-2p-indfb-fliptrack:
- shard-tglb: NOTRUN -> [SKIP][67] ([fdo#111825]) +29 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-2p-scndscrn-cur-indfb-move:
- shard-iclb: NOTRUN -> [SKIP][68] ([fdo#109280]) +12 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb2/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-shrfb-msflip-blt:
- shard-glk: NOTRUN -> [SKIP][69] ([fdo#109271]) +63 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-glk1/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- shard-apl: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#533]) +3 similar issues
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl8/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
- shard-kbl: [PASS][71] -> [DMESG-WARN][72] ([i915#180])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl1/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][73] ([fdo#108145] / [i915#265]) +5 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-alpha-transparent-fb:
- shard-glk: NOTRUN -> [FAIL][74] ([i915#265])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-glk8/igt@[email protected]
- shard-kbl: NOTRUN -> [FAIL][75] ([i915#265])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl1/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
- shard-kbl: NOTRUN -> [FAIL][76] ([fdo#108145] / [i915#265])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl7/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][77] ([i915#265])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl1/igt@[email protected]
* igt@kms_plane_multiple@atomic-pipe-b-tiling-yf:
- shard-tglb: NOTRUN -> [SKIP][78] ([fdo#111615]) +5 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb5/igt@[email protected]
* igt@kms_psr2_sf@plane-move-sf-dmg-area-2:
- shard-apl: NOTRUN -> [SKIP][79] ([fdo#109271] / [i915#658]) +2 similar issues
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl8/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-kbl: NOTRUN -> [SKIP][80] ([fdo#109271] / [i915#658])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl6/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][81] -> [SKIP][82] ([fdo#109441]) +2 similar issues
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb6/igt@kms_psr@psr2_cursor_render.html
* igt@kms_vblank@pipe-d-query-forked-hang:
- shard-snb: NOTRUN -> [SKIP][83] ([fdo#109271]) +360 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-snb6/igt@[email protected]
* igt@kms_writeback@writeback-invalid-parameters:
- shard-apl: NOTRUN -> [SKIP][84] ([fdo#109271] / [i915#2437])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl7/igt@[email protected]
* igt@nouveau_crc@pipe-a-source-rg:
- shard-iclb: NOTRUN -> [SKIP][85] ([i915#2530]) +1 similar issue
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb7/igt@[email protected]
* igt@nouveau_crc@pipe-b-ctx-flip-detection:
- shard-tglb: NOTRUN -> [SKIP][86] ([i915#2530]) +3 similar issues
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb6/igt@[email protected]
* igt@nouveau_crc@pipe-d-ctx-flip-skip-current-frame:
- shard-iclb: NOTRUN -> [SKIP][87] ([fdo#109278] / [i915#2530])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb4/igt@[email protected]
* igt@prime_nv_pcopy@test2:
- shard-kbl: NOTRUN -> [SKIP][88] ([fdo#109271]) +58 similar issues
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl4/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][89] ([fdo#109291]) +1 similar issue
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb6/igt@[email protected]
* igt@prime_nv_pcopy@test3_2:
- shard-tglb: NOTRUN -> [SKIP][90] ([fdo#109291]) +2 similar issues
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb1/igt@prime_nv_pcopy@test3_2.html
* igt@prime_vgem@sync@rcs0:
- shard-iclb: [PASS][91] -> [INCOMPLETE][92] ([i915#409])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb6/igt@prime_vgem@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb1/igt@prime_vgem@[email protected]
* igt@sysfs_clients@recycle-many:
- shard-iclb: [PASS][93] -> [FAIL][94] ([i915#3028])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb3/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb5/igt@[email protected]
* igt@sysfs_clients@sema-10@rcs0:
- shard-apl: NOTRUN -> [SKIP][95] ([fdo#109271] / [i915#3026]) +1 similar issue
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl7/igt@sysfs_clients@[email protected]
#### Possible fixes ####
* igt@gem_exec_fair@basic-pace@vecs0:
- shard-kbl: [FAIL][96] ([i915#2842]) -> [PASS][97] +1 similar issue
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl4/igt@gem_exec_fair@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_schedule@u-fairslice@bcs0:
- shard-tglb: [DMESG-WARN][98] ([i915#2803]) -> [PASS][99]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-tglb5/igt@gem_exec_schedule@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb7/igt@gem_exec_schedule@[email protected]
* igt@gem_exec_schedule@u-fairslice@vcs0:
- shard-iclb: [DMESG-WARN][100] ([i915#2803]) -> [PASS][101]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb8/igt@gem_exec_schedule@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb3/igt@gem_exec_schedule@[email protected]
* igt@gem_mmap_gtt@cpuset-big-copy:
- shard-iclb: [FAIL][102] ([i915#307]) -> [PASS][103]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb5/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb8/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-64x64-random:
- shard-glk: [FAIL][104] ([i915#54]) -> [PASS][105]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-glk4/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-glk3/igt@[email protected]
- shard-apl: [FAIL][106] ([i915#54]) -> [PASS][107]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-apl6/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-kbl: [DMESG-WARN][108] ([i915#180]) -> [PASS][109] +4 similar issues
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl7/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl1/igt@[email protected]
* igt@kms_flip@plain-flip-fb-recreate-interruptible@c-dp1:
- shard-kbl: [FAIL][110] ([i915#2122]) -> [PASS][111]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl6/igt@kms_flip@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl3/igt@kms_flip@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [SKIP][112] ([fdo#109441]) -> [PASS][113] +1 similar issue
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb4/igt@kms_psr@psr2_sprite_plane_move.html
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [DMESG-WARN][114] ([i915#180] / [i915#295]) -> [PASS][115]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl6/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl4/igt@[email protected]
* igt@perf@rc6-disable:
- shard-tglb: [SKIP][116] ([fdo#111719]) -> [PASS][117]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-tglb3/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-tglb1/igt@[email protected]
* igt@sysfs_clients@recycle:
- shard-kbl: [FAIL][118] ([i915#3028]) -> [PASS][119]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl2/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl3/igt@[email protected]
- shard-apl: [FAIL][120] ([i915#3028]) -> [PASS][121]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-apl8/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-apl2/igt@[email protected]
#### Warnings ####
* igt@i915_pm_dc@dc3co-vpb-simulation:
- shard-iclb: [SKIP][122] ([i915#588]) -> [SKIP][123] ([i915#658])
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb2/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb5/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][124] ([i915#2681] / [i915#2684]) -> [WARN][125] ([i915#1804] / [i915#2684])
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb8/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb7/igt@[email protected]
* igt@kms_content_protection@dp-mst-lic-type-1:
- shard-iclb: [FAIL][126] ([i915#3144]) -> [SKIP][127] ([i915#3116])
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb1/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb6/igt@[email protected]
* igt@kms_content_protection@srm:
- shard-iclb: [FAIL][128] ([i915#3144]) -> [SKIP][129] ([fdo#109300] / [fdo#111066])
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb1/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb7/igt@[email protected]
* igt@kms_content_protection@uevent:
- shard-iclb: [SKIP][130] ([fdo#109300] / [fdo#111066]) -> [FAIL][131] ([i915#3144])
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb7/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb1/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-busy-crc-legacy:
- shard-kbl: [DMESG-FAIL][132] ([IGT#6]) -> [DMESG-FAIL][133] ([IGT#6] / [i915#1982])
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl2/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-kbl1/igt@[email protected]
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [DMESG-WARN][134] ([i915#1226]) -> [SKIP][135] ([fdo#109349])
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb2/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb8/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-2:
- shard-iclb: [SKIP][136] ([i915#658]) -> [SKIP][137] ([i915#2920]) +1 similar issue
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb4/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb2/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-5:
- shard-iclb: [SKIP][138] ([i915#2920]) -> [SKIP][139] ([i915#658]) +1 similar issue
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-iclb2/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/shard-iclb4/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][140], [FAIL][141], [FAIL][142], [FAIL][143], [FAIL][144]) ([i915#1436] / [i915#180] / [i915#1814] / [i915#2505] / [i915#3002] / [i915#602]) -> ([FAIL][145], [FAIL][146], [FAIL][147], [FAIL][148], [FAIL][149]) ([i915#1814] / [i915#2505] / [i915#2724] / [i915#3002])
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl7/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl7/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6028/shard-kbl6/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5590/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 8 lines · Bhanuprakash Modem
To save the CI execution time, instead of running on all pipes restrict the hang tests execution to two pipes.
If we want to execute on all pipes, we need to pass an extra argument "-e" indicates extended.
Example: ./build/tests/kms_flip -e --r flip-vs-modeset-vs-hang
Quoted 7 lines
v2, v3:
* Fix the typo in args handler (Petri)Cc Uma Shankar <[email protected]>Cc Petri Latvala <[email protected]>Cc Karthik B S <[email protected]>Signed-off-by Bhanuprakash Modem <[email protected]>
Quoted 129 lines
--- tests/kms_flip.c | 52 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 7 deletions(-)tests/kms_flip.c +45
-7@@ -85,6 +85,10 @@#define DRM_CAP_TIMESTAMP_MONOTONIC 6#endif +/* restricted pipe count */ +#define CRTC_RESTRICT_CNT 2 +static bool all_pipes = false; +drmModeRes *resources;int drm_fd;static struct buf_ops *bops;@@ -1435,10 +1439,17 @@ static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs,__run_test_on_crtc_set (o, crtc_idxs, crtc_count, duration_ms); } +static int limit_crtc_count (int count_crtcs) +{ +return (count_crtcs >CRTC_RESTRICT_CNT )? +CRTC_RESTRICT_CNT : count_crtcs; +} +static int run_test (int duration,int flags) {struct test_output o;int i, n, modes =0 ; +int count_crtcs;igt_require ((flags &TEST_HANG ) ==0 || !is_wedged (drm_fd)); igt_require(!(flags & TEST_FENCE_STRESS) ||@@ -1447,9 +1458,14 @@ static int run_test(int duration, int flags) resources =drmModeGetResources (drm_fd);igt_require (resources); + count_crtcs = resources->count_crtcs; +/* Limit the execution to 2 CRTCs for hang tests */ +if (!!(flags &TEST_HANG ) && !all_pipes) + count_crtcs =limit_crtc_count (count_crtcs); +/* Count output configurations to scale test runtime. */ for (i =0 ; i < resources->count_connectors; i++) { -for (n =0 ; n < resources->count_crtcs; n++) { +for (n =0 ; n < count_crtcs; n++) {memset (&o,0 ,sizeof (o)); o.count =1 ; o._connector[0 ] = resources->connectors[i];@@ -1471,7 +1487,7 @@ static int run_test(int duration, int flags)/* Find any connected displays */ for (i =0 ; i < resources->count_connectors; i++) { -for (n =0 ; n < resources->count_crtcs; n++) { +for (n =0 ; n < count_crtcs; n++) {int crtc_idx;memset (&o,0 ,sizeof (o));@@ -1494,6 +1510,7 @@ static int run_pair(int duration, int flags) {struct test_output o;int i, j, m, n, modes =0 ; +int count_crtcs;igt_require ((flags &TEST_HANG ) ==0 || !is_wedged (drm_fd)); igt_require(!(flags & TEST_FENCE_STRESS) ||@@ -1502,11 +1519,16 @@ static int run_pair(int duration, int flags) resources =drmModeGetResources (drm_fd);igt_require (resources); + count_crtcs = resources->count_crtcs; +/* Limit the execution to 2 CRTCs for hang tests */ +if (!!(flags &TEST_HANG ) && !all_pipes) + count_crtcs =limit_crtc_count (count_crtcs); +/* Find a pair of connected displays */ for (i =0 ; i < resources->count_connectors; i++) { -for (n =0 ; n < resources->count_crtcs; n++) { +for (n =0 ; n < count_crtcs; n++) {for (j = i +1 ; j < resources->count_connectors; j++) { -for (m = n +1 ; m < resources->count_crtcs; m++) { +for (m = n +1 ; m < count_crtcs; m++) {memset (&o,0 ,sizeof (o)); o.count =2 ; o._connector[0 ] = resources->connectors[i];@@ -1533,9 +1555,9 @@ static int run_pair(int duration, int flags)/* Find a pair of connected displays */ for (i =0 ; i < resources->count_connectors; i++) { -for (n =0 ; n < resources->count_crtcs; n++) { +for (n =0 ; n < count_crtcs; n++) {for (j = i +1 ; j < resources->count_connectors; j++) { -for (m = n +1 ; m < resources->count_crtcs; m++) { +for (m = n +1 ; m < count_crtcs; m++) {int crtc_idxs[2 ];memset (&o,0 ,sizeof (o));@@ -1604,7 +1626,23 @@ static void test_nonblocking_read(int in)close (fd); } -igt_main +static int opt_handler (int opt,int opt_index,void *data) +{ +switch (opt) { +case 'e' : + all_pipes = true; +break ; +default : +return IGT_OPT_HANDLER_ERROR ; + } + +return IGT_OPT_HANDLER_SUCCESS ; +} + +const char *help_str = +" -e \tRun on all pipes. (By default subtests will run on two pipes)\n" ; + +igt_main_args("e", NULL, help_str, opt_handler, NULL) {struct {int duration;Signature · 1 line
2.20.1
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev