tests/i915/kms_busy: Test cleanup
PATCH 1/1 tests/i915/kms_busy: Test cleanup
Sanitize the system state before starting the subtest.
--- tests/i915/kms_busy.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
tests/i915/kms_busy.c +10 -5
@@ -144,8 +144,7 @@ static void test_flip(igt_display_t *dpy, int pipe, bool modeset)igt_output_t *output;int timeout; -if (modeset) -igt_require (dpy->is_atomic); +igt_display_reset (dpy); output =set_fb_on_crtc (dpy, pipe, &fb[0 ]);igt_display_commit2 (dpy,COMMIT_LEGACY );
@@ -230,6 +229,7 @@ static void test_hang(igt_display_t *dpy,igt_output_t *output;igt_plane_t *primary; +igt_display_reset (dpy); output =set_fb_on_crtc (dpy, pipe, &fb[0 ]);igt_display_commit2 (dpy,COMMIT_ATOMIC ); primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY );
@@ -274,6 +274,8 @@ static void test_pageflip_modeset_hang(igt_display_t *dpy, enum pipe pipe)igt_spin_t *t;uint64_t ahnd =get_reloc_ahnd (dpy->drm_fd,0 ); +igt_display_reset (dpy); + output =set_fb_on_crtc (dpy, pipe, &fb); primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY );
@@ -352,6 +354,8 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)for_each_pipe (&display, pipe) active_pipes[last_pipe++] = pipe; last_pipe--; + +igt_require (display.is_atomic); }/* XXX Extend to cover atomic rendering tests to all planes + legacy */
@@ -363,8 +367,10 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)for_each_pipe (&display, pipe) { igt_dynamic("flip")test_flip (&display, pipe, false); - igt_dynamic("modeset") -test_flip (&display, pipe, true); +if (display.is_atomic) { + igt_dynamic("modeset") +test_flip (&display, pipe, true); + }break ; } }
@@ -411,7 +417,6 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)igt_hang_t hang; errno =0 ; -igt_require (display.is_atomic); hang =igt_allow_hang (display.drm_fd,0 ,0 );for_each_pipe (&display, pipe) {
Signature · 1 line
2.36.0
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for tests/i915/kms_busy: Test Cleanup (rev5)
== Series Details ==
== Series Details ==
Series: tests/i915/kms_busy: Test Cleanup (rev5)
URL : https://patchwork.freedesktop.org/series/107774/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12202 -> IGTPW_7895
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_7895 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_7895, 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_7895/index.html
Participating hosts (47 -> 43)
------------------------------
Missing (4): fi-ctg-p8600 fi-hsw-4200u fi-bdw-samus fi-pnv-d510
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_7895:
### IGT changes ###
#### Possible regressions ####
* igt@gem_ctx_create@basic-files:
- fi-tgl-u2: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12202/fi-tgl-u2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/fi-tgl-u2/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_7895 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@module-reload:
- fi-cfl-8109u: [PASS][3] -> [DMESG-FAIL][4] ([i915#62])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12202/fi-cfl-8109u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/fi-cfl-8109u/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- fi-hsw-4770: [PASS][5] -> [INCOMPLETE][6] ([i915#4785])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12202/fi-hsw-4770/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/fi-hsw-4770/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@late_gt_pm:
- fi-cfl-8109u: [PASS][7] -> [DMESG-WARN][8] ([i915#5904]) +30 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12202/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html
* igt@i915_suspend@basic-s2idle-without-i915:
- fi-cfl-8109u: [PASS][9] -> [DMESG-WARN][10] ([i915#5904] / [i915#62])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12202/fi-cfl-8109u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/fi-cfl-8109u/igt@[email protected]
* igt@kms_busy@basic:
- fi-blb-e6850: NOTRUN -> [SKIP][11] ([fdo#109271])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/fi-blb-e6850/igt@[email protected]
- fi-elk-e7500: NOTRUN -> [SKIP][12] ([fdo#109271])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/fi-elk-e7500/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-cfl-8109u: [PASS][13] -> [DMESG-WARN][14] ([i915#62]) +12 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12202/fi-cfl-8109u/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/fi-cfl-8109u/igt@[email protected]
* igt@runner@aborted:
- fi-hsw-4770: NOTRUN -> [FAIL][15] ([fdo#109271] / [i915#4312] / [i915#5594])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/fi-hsw-4770/igt@[email protected]
- fi-tgl-u2: NOTRUN -> [FAIL][16] ([i915#4312])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/fi-tgl-u2/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3@lmem0:
- {bat-dg2-11}: [DMESG-WARN][17] ([i915#6816]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12202/bat-dg2-11/igt@gem_exec_suspend@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/bat-dg2-11/igt@gem_exec_suspend@[email protected]
* igt@i915_selftest@live@requests:
- {bat-rpls-1}: [INCOMPLETE][19] ([i915#4983]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12202/bat-rpls-1/igt@i915_selftest@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/bat-rpls-1/igt@i915_selftest@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5537]: https://gitlab.freedesktop.org/drm/intel/issues/5537
[i915#5594]: https://gitlab.freedesktop.org/drm/intel/issues/5594
[i915#5904]: https://gitlab.freedesktop.org/drm/intel/issues/5904
[i915#6106]: https://gitlab.freedesktop.org/drm/intel/issues/6106
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6641]: https://gitlab.freedesktop.org/drm/intel/issues/6641
[i915#6816]: https://gitlab.freedesktop.org/drm/intel/issues/6816
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6670 -> IGTPW_7895
CI-20190529: 20190529
CI_DRM_12202: 0b9f0501c9541cf79fdfb43a7760360a81453d88 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7895: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/index.html
IGT_6670: d618e9865fe5cbaf511ca43503abad442605d0a5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
-igt@kms_vrr@negative-basic
-igt@kms_vrr@parse-vrr-range
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7895/index.html
Quoted 40 lines · Nidhi Gupta
Sanitize the system state before starting the subtest.
Signed-off-by Nidhi Gupta <[email protected]>Reviewed-by Bhanuprakash Modem <[email protected]>--- tests/i915/kms_busy.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)tests/i915/kms_busy.c +4
-2@@ -144,8 +144,7 @@ static void test_flip(igt_display_t *dpy, int pipe, bool modeset)igt_output_t *output;int timeout; -if (modeset) -igt_require (dpy->is_atomic); +igt_display_reset (dpy); output =set_fb_on_crtc (dpy, pipe, &fb[0 ]);igt_display_commit2 (dpy,COMMIT_LEGACY );@@ -230,6 +229,7 @@ static void test_hang(igt_display_t *dpy,igt_output_t *output;igt_plane_t *primary; +igt_display_reset (dpy); output =set_fb_on_crtc (dpy, pipe, &fb[0 ]);igt_display_commit2 (dpy,COMMIT_ATOMIC ); primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY );@@ -274,6 +274,8 @@ static void test_pageflip_modeset_hang(igt_display_t *dpy, enum pipe pipe)igt_spin_t *t;uint64_t ahnd =get_reloc_ahnd (dpy->drm_fd,0 ); +igt_display_reset (dpy); + output =set_fb_on_crtc (dpy, pipe, &fb); primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY );
tests/i915/kms_busy.c igt_main_args("e", NULL, help_str, opt_handler, NULL) · line 358
Quoted 5 lines
tests/i915/kms_busy.c +2
-0@@ -352,6 +354,8 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)for_each_pipe (&display, pipe) active_pipes[last_pipe++] = pipe; last_pipe--; + +igt_require (display.is_atomic);
This is not correct, and it leads to skip all the subtests on older platforms.
I asked to create a igt_fixture for extended-.* tests:
for (i = 0; i < sizeof(tests) / sizeof (tests[0]); i++) {
+ igt_fixture
+ igt_require(display.is_atomic);
+
igt_subtest_with_dynamic(tests[i].name) {Along with this change, please use "ARRAY_SIZE()" instead of "sizeof(tests) / sizeof (tests[0])"
- Bhanu
Quoted 24 lines
tests/i915/kms_busy.c +4
-3}/* XXX Extend to cover atomic rendering tests to all planes + legacy */ @@ -363,8 +367,10 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)for_each_pipe (&display, pipe) { igt_dynamic("flip")test_flip (&display, pipe, false); - igt_dynamic("modeset") -test_flip (&display, pipe, true); +if (display.is_atomic) { + igt_dynamic("modeset") +test_flip (&display, pipe, true); + }break ; } }@@ -411,7 +417,6 @@ igt_main_args("e", NULL, help_str, opt_handler, NULL)igt_hang_t hang; errno =0 ; -igt_require (display.is_atomic); hang =igt_allow_hang (display.drm_fd,0 ,0 );for_each_pipe (&display, pipe) {