Skip to contentSkip to conversation

tests/kms_flip: Check if is Intel device before doing all the setup

PATCH Superseded Maíra Canal 3 participants 3 messages May 3, 2023 – May 4, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_flip: Check if is Intel device before doing all the setup

The tests bo-too-big and bo-too-big-interruptible should only run on Intel devices. Instead of checking this condition after doing all the setup, check this condition in the beginning of the test.

Checking if is an Intel device in the beginning of the test will also avoid the following error, which occurs in non-Intel devices when running the test bo-too-big:

(kms_flip:1641) igt_kms-CRITICAL: Test assertion failure function kmstest_set_connector_dpms, file ../lib/igt_kms.c:1960:
(kms_flip:1641) igt_kms-CRITICAL: Failed assertion: found_it
(kms_flip:1641) igt_kms-CRITICAL: Last errno: 9, Bad file descriptor
(kms_flip:1641) igt_kms-CRITICAL: DPMS property not found on 36
Stack trace:

    #0 ../lib/igt_core.c:1963 __igt_fail_assert()
    #1 ../lib/igt_kms.c:1960 kmstest_set_connector_dpms()
    #2 ../lib/igt_core.c:2831 igt_atexit_handler()
    #3 /usr/src/debug/glibc-2.36-9.fc37.x86_64/stdlib/exit.c:114 __run_exit_handlers()
    #4 /usr/src/debug/glibc-2.36-9.fc37.x86_64/stdlib/fmtmsg.c:292 internal_addseverity()
    #5 ../lib/igt_core.c:2297 igt_exit()
    #6 [main+0x32]
    #7 ../sysdeps/nptl/libc_start_call_main.h:74 __libc_start_call_main()
    #8 ../csu/libc-start.c:128 __libc_start_main@@GLIBC_2.34()
    #9 [_start+0x25]
---
 tests/kms_flip.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tests/kms_flip.c +3 -1
index e4c98b8e..ed5615e8 100755
@@ -1354,7 +1354,6 @@ restart:
 	/* 256 MB is usually the maximum mappable aperture,
 	 * (make it 4x times that to ensure failure) */
 	if (o->flags & TEST_BO_TOOBIG) {
-		igt_skip_on(!is_intel_device(drm_fd));
 		bo_size = 4*gem_mappable_aperture_size(drm_fd);
 
 		if (is_i915_device(drm_fd))
@@ -1571,6 +1570,9 @@ static void run_test(int duration, int flags)
 	igt_require(!(flags & TEST_FENCE_STRESS) ||
 		    (is_i915_device(drm_fd) && gem_available_fences(drm_fd)));
 
+	if (flags & TEST_BO_TOOBIG)
+		igt_require(is_intel_device(drm_fd));
+
 	resources = drmModeGetResources(drm_fd);
 	igt_require(resources);
 
Signature · 1 line
2.40.1
#1 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_flip: Check if is Intel device before doing all the setup

== Series Details ==

== Series Details ==

Series: tests/kms_flip: Check if is Intel device before doing all the setup
URL : https://patchwork.freedesktop.org/series/117246/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_13105 -> IGTPW_8904
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_8904 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_8904, 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_8904/index.html

Participating hosts (38 -> 38)
------------------------------

Additional (1): fi-kbl-soraka
Missing (1): fi-snb-2520m

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_8904:

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@hangcheck:
- fi-skl-guc: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13105/fi-skl-guc/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/fi-skl-guc/igt@i915_selftest@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#2190])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/fi-kbl-soraka/igt@[email protected]

* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#4613]) +3 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/fi-kbl-soraka/igt@[email protected]

* igt@i915_selftest@live@gt_heartbeat:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][5] ([i915#5334] / [i915#7872])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html

* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][6] ([i915#1886] / [i915#7913])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html

* igt@kms_chamelium_frames@hdmi-crc-fast:
- fi-kbl-soraka: NOTRUN -> [SKIP][7] ([fdo#109271]) +16 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/fi-kbl-soraka/igt@[email protected]

* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- bat-rpls-1: NOTRUN -> [SKIP][8] ([i915#7828])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/bat-rpls-1/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc:
- bat-rpls-1: NOTRUN -> [SKIP][9] ([i915#1845])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/bat-rpls-1/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@requests:
- {bat-mtlp-8}: [ABORT][10] ([i915#4983] / [i915#7920]) -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13105/bat-mtlp-8/igt@i915_selftest@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/bat-mtlp-8/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@reset:
- bat-rpls-1: [ABORT][12] ([i915#4983] / [i915#7461] / [i915#8347] / [i915#8384]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13105/bat-rpls-1/igt@i915_selftest@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/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#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#7461]: https://gitlab.freedesktop.org/drm/intel/issues/7461
[i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7872]: https://gitlab.freedesktop.org/drm/intel/issues/7872
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7920]: https://gitlab.freedesktop.org/drm/intel/issues/7920
[i915#8347]: https://gitlab.freedesktop.org/drm/intel/issues/8347
[i915#8384]: https://gitlab.freedesktop.org/drm/intel/issues/8384

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

* CI: CI-20190529 -> None
* IGT: IGT_7277 -> IGTPW_8904

CI-20190529: 20190529
CI_DRM_13105: e9c4e0f955197134304733e2417f72ce6392cb30 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8904: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8904/index.html
IGT_7277: 1cb3507f3ff28d11bd5cfabcde576fe78ddab571 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

Testlist changes
----------------

-igt@kms_dsc@dsc-with-output-formats

== Logs ==

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

#2 lore raw
In reply to Maíra Canal
Quoted 42 lines · Maíra Canal

The tests bo-too-big and bo-too-big-interruptible should only run on Intel devices. Instead of checking this condition after doing all the setup, check this condition in the beginning of the test.

Checking if is an Intel device in the beginning of the test will also avoid the following error, which occurs in non-Intel devices when running the test bo-too-big:

(kms_flip:1641) igt_kms-CRITICAL: Test assertion failure function kmstest_set_connector_dpms, file ../lib/igt_kms.c:1960:
(kms_flip:1641) igt_kms-CRITICAL: Failed assertion: found_it
(kms_flip:1641) igt_kms-CRITICAL: Last errno: 9, Bad file descriptor
(kms_flip:1641) igt_kms-CRITICAL: DPMS property not found on 36
Stack trace:

     #0 ../lib/igt_core.c:1963 __igt_fail_assert()
     #1 ../lib/igt_kms.c:1960 kmstest_set_connector_dpms()
     #2 ../lib/igt_core.c:2831 igt_atexit_handler()
     #3 /usr/src/debug/glibc-2.36-9.fc37.x86_64/stdlib/exit.c:114 __run_exit_handlers()
     #4 /usr/src/debug/glibc-2.36-9.fc37.x86_64/stdlib/fmtmsg.c:292 internal_addseverity()
     #5 ../lib/igt_core.c:2297 igt_exit()
     #6 [main+0x32]
     #7 ../sysdeps/nptl/libc_start_call_main.h:74 __libc_start_call_main()
     #8 ../csu/libc-start.c:128 __libc_start_main@@GLIBC_2.34()
     #9 [_start+0x25]
---
  tests/kms_flip.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
tests/kms_flip.c +0 -1
index e4c98b8e..ed5615e8 100755
@@ -1354,7 +1354,6 @@ restart:
  	/* 256 MB is usually the maximum mappable aperture,
  	 * (make it 4x times that to ensure failure) */
  	if (o->flags & TEST_BO_TOOBIG) {
-		igt_skip_on(!is_intel_device(drm_fd));
  		bo_size = 4*gem_mappable_aperture_size(drm_fd);
 
  		if (is_i915_device(drm_fd))

tests/kms_flip.c static void run_test(int duration, int flags) · line 1574

Quoted 5 lines
tests/kms_flip.c +2 -0
@@ -1571,6 +1570,9 @@ static void run_test(int duration, int flags)
  	igt_require(!(flags & TEST_FENCE_STRESS) ||
  		    (is_i915_device(drm_fd) && gem_available_fences(drm_fd)));
 
+	if (flags & TEST_BO_TOOBIG)
+		igt_require(is_intel_device(drm_fd));

As kms_flip is using dynamic subtests, no need to trigger the skip (igt_subtest_with_dynamic will call igt_skip if no dynamic subtests executed).

So, just return if it is not an intel device.

+ if (flags & TEST_BO_TOOBIG && !is_intel_device(drm_fd))
+ return;

Also, do we need the same change for 2x tests too?

- Bhanu

Quoted 4 lines
tests/kms_flip.c +1 -0
+
  	resources = drmModeGetResources(drm_fd);
  	igt_require(resources);