tests/kms_color: Limit the execution to two pipes
PATCH v3 1/1 tests/kms_color: Limit the execution to two pipes
As the test execution is taking more time on simulation, limit the execution to two (first & last) pipes. This optimization is for simulation and hardware.
This patch will also provide an option (command line flag '-e') to execute on all pipes.
Example: ./kms_color -e --run-subtest ctm-0-50
v2: Restrict the execution only on 2 pipes for
real hardware aswell (Ankit)
v3: Restrict the execution only on 2 pipes for
all subtests (Bhanu)
--- tests/kms_color.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-)
tests/kms_color.c +51 -1
@@ -26,6 +26,10 @@IGT_TEST_DESCRIPTION ("Test Color Features at Pipe level" ); +static bool extended; +static enum pipe active_pipes[IGT_MAX_PIPES ]; +static uint32_t last_pipe; +static bool test_pipe_degamma (data_t *data,igt_plane_t *primary) {
@@ -878,6 +882,16 @@ run_deep_color_tests_for_pipe(data_t *data, enum pipe p)test_cleanup (data); } +static bool execution_constraint (enum pipe pipe) +{ +if (!extended && + pipe != active_pipes[0 ] && + pipe != active_pipes[last_pipe]) +return true; + +return false; +} +static void run_invalid_tests_for_pipe (data_t *data) {
@@ -902,6 +916,9 @@ run_invalid_tests_for_pipe(data_t *data)igt_describe_f ("%s" , tests[i].desc); igt_subtest_with_dynamic_f("%s", tests[i].name) {for_each_pipe (&data->display, pipe) { +if (execution_constraint (pipe)) +continue ; +prep_pipe (data, pipe);igt_dynamic_f ("pipe-%s" ,kmstest_pipe_name (pipe))
@@ -1012,6 +1029,9 @@ run_tests_for_pipe(data_t *data)igt_describe_f ("%s" , gamma_degamma_tests[i].desc); igt_subtest_with_dynamic_f("%s", gamma_degamma_tests[i].name) {for_each_pipe (&data->display, pipe) { +if (execution_constraint (pipe)) +continue ; +run_gamma_degamma_tests_for_pipe (data, pipe, gamma_degamma_tests[i].test_t); }
@@ -1022,6 +1042,9 @@ run_tests_for_pipe(data_t *data)igt_describe_f ("%s" , ctm_tests[i].desc); igt_subtest_with_dynamic_f("%s", ctm_tests[i].name) {for_each_pipe (&data->display, pipe) { +if (execution_constraint (pipe)) +continue ; + run_ctm_tests_for_pipe(data, pipe, ctm_tests[i].colors, ctm_tests[i].ctm,
@@ -1036,14 +1059,36 @@ run_tests_for_pipe(data_t *data)igt_describe ("Verify that deep color works correctly" ); igt_subtest_with_dynamic("deep-color") {for_each_pipe (&data->display, pipe) { +if (execution_constraint (pipe)) +continue ; +run_deep_color_tests_for_pipe (data, pipe); } } } -igt_main +static int opt_handler (int opt,int opt_index,void *_data) +{ +switch (opt) { +case 'e' : + extended = true; +break ; +default : +return IGT_OPT_HANDLER_ERROR ; + } + +return IGT_OPT_HANDLER_SUCCESS ; +} + +const char *help_str = +" -e \tExtended tests.\n" ; + +igt_main_args("e", NULL, help_str, opt_handler, NULL) {data_t data = {}; +enum pipe pipe; + + last_pipe =0 ; igt_fixture { data.drm_fd =drm_open_driver_master (DRIVER_ANY );
@@ -1052,6 +1097,11 @@ igt_mainkmstest_set_vt_graphics_mode ();igt_display_require (&data.display, data.drm_fd); + +/* Get active pipes. */ +for_each_pipe (&data.display, pipe) + active_pipes[last_pipe++] = pipe; + last_pipe--; } igt_subtest_group
Signature · 1 line
2.39.0
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for tests/kms_color: Limit the execution to two pipes (rev3)
== Series Details ==
== Series Details ==
Series: tests/kms_color: Limit the execution to two pipes (rev3)
URL : https://patchwork.freedesktop.org/series/114389/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12789 -> IGTPW_8536
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/index.html
Participating hosts (38 -> 37)
------------------------------
Missing (1): fi-snb-2520m
Changes
-------
No changes found
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7174 -> IGTPW_8536
CI-20190529: 20190529
CI_DRM_12789: 8589fd9227ca62484e8599cbd62216230c2c9a64 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8536: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/index.html
IGT_7174: 55642b7805d6fc5b987b396c2bbfa46db654db4f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/index.html
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for tests/kms_color: Limit the execution to two pipes (rev3)
In reply to Nidhi Gupta== Series Details ==
== Series Details ==
Series: tests/kms_color: Limit the execution to two pipes (rev3)
URL : https://patchwork.freedesktop.org/series/114389/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12789_full -> IGTPW_8536_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/index.html
Participating hosts (8 -> 8)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_8536_full:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@prime_vgem@fence-wait@rcs0:
- {shard-dg1}: NOTRUN -> [ABORT][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/shard-dg1-17/igt@prime_vgem@[email protected]
Known issues
------------
Here are the changes found in IGTPW_8536_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_shared@q-promotion@rcs0:
- shard-glk: NOTRUN -> [ABORT][2] ([i915#8233]) +1 similar issue
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/shard-glk7/igt@gem_ctx_shared@[email protected]
* igt@gem_ctx_shared@q-promotion@vecs0:
- shard-glk: NOTRUN -> [DMESG-WARN][3] ([i915#8233]) +5 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/shard-glk7/igt@gem_ctx_shared@[email protected]
* igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-glk: NOTRUN -> [SKIP][4] ([fdo#109271]) +29 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/shard-glk7/igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#3886])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/shard-glk7/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_vblank@pipe-d-wait-idle:
- shard-glk: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#533])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/shard-glk7/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#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109313]: https://bugs.freedesktop.org/show_bug.cgi?id=109313
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3826]: https://gitlab.freedesktop.org/drm/intel/issues/3826
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4565]: https://gitlab.freedesktop.org/drm/intel/issues/4565
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4880]: https://gitlab.freedesktop.org/drm/intel/issues/4880
[i915#4958]: https://gitlab.freedesktop.org/drm/intel/issues/4958
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6227]: https://gitlab.freedesktop.org/drm/intel/issues/6227
[i915#6334]: https://gitlab.freedesktop.org/drm/intel/issues/6334
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#8233]: https://gitlab.freedesktop.org/drm/intel/issues/8233
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7174 -> IGTPW_8536
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_12789: 8589fd9227ca62484e8599cbd62216230c2c9a64 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8536: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/index.html
IGT_7174: 55642b7805d6fc5b987b396c2bbfa46db654db4f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8536/index.html