Skip to contentSkip to conversation

i915/gem_wait: Add description for test and subtests

PATCH In review [email protected] 3 participants 3 messages Feb 23, 2022 – Mar 3, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 i915/gem_wait: Add description for test and subtests

From: Apoorva Singh <[email protected]>

Add description for test and all the subtests

v2: Rebase

Cc Kamil Konieczny <[email protected]>
Cc Arjun Melkaveri <[email protected]>
---
 tests/i915/gem_wait.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
tests/i915/gem_wait.c +12 -2
index b17927b6..9f84ef33 100644
@@ -32,6 +32,8 @@
 #include "igt.h"
 #include "igt_vgem.h"
 
+IGT_TEST_DESCRIPTION("Tests the GEM_WAIT ioctl");
+
 static int __gem_wait(int fd, struct drm_i915_gem_wait *w)
 {
 	int err;
@@ -185,9 +187,11 @@ igt_main
 		ctx = intel_ctx_create_all_physical(fd);
 	}
 
+	igt_describe("Tests that GEM_WAIT ioctl returns relevant error with invalid flag");
 	igt_subtest("invalid-flags")
 		invalid_flags(fd);
 
+	igt_describe("Tests that GEM_WAIT ioctl returns relevant error with invalid buffer object");
 	igt_subtest("invalid-buf")
 		invalid_buf(fd);
 
@@ -209,8 +213,11 @@ igt_main
 			igt_fork_signal_helper();
 		}
 
-		for (const typeof(*tests) *t = tests; t->name; t++)
+		for (const typeof(*tests) *t = tests; t->name; t++) {
+			igt_describe_f("For all engines, test the GEM_WAIT ioctl waiting on "
+				       "buffer object in %s mode", t->name);
 			test_all_engines(t->name, fd, ctx, t->flags);
+		}
 
 		igt_fixture {
 			igt_stop_signal_helper();
@@ -236,8 +243,11 @@ igt_main
 			igt_fork_signal_helper();
 		}
 
-		for (const typeof(*tests) *t = tests; t->name; t++)
+		for (const typeof(*tests) *t = tests; t->name; t++) {
+			igt_describe_f("For all engines, test the GEM_WAIT ioctl waiting on "
+				       "buffer object in %s mode when hang is allowed", (t->name+5));
 			test_all_engines(t->name, fd, ctx, t->flags);
+		}
 
 		igt_fixture {
 			igt_stop_signal_helper();
Signature · 1 line
2.25.1
#1 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for i915/gem_wait: Add description for test and subtests (rev2)

== Series Details ==

== Series Details ==

Series: i915/gem_wait: Add description for test and subtests (rev2)
URL : https://patchwork.freedesktop.org/series/83892/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_11272 -> IGTPW_6685
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (47 -> 46)
------------------------------

Additional (3): fi-kbl-soraka fi-icl-u2 fi-pnv-d510
Missing (4): fi-ctg-p8600 fi-bsw-cyan fi-bdw-samus fi-hsw-4200u

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@hangcheck:
- fi-rkl-guc: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11272/fi-rkl-guc/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-rkl-guc/igt@i915_selftest@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@amdgpu/amd_cs_nop@fork-gfx0:
- fi-icl-u2: NOTRUN -> [SKIP][3] ([fdo#109315]) +17 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-icl-u2/igt@amdgpu/[email protected]

* igt@gem_exec_fence@basic-busy@bcs0:
- fi-kbl-soraka: NOTRUN -> [SKIP][4] ([fdo#109271]) +8 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-kbl-soraka/igt@gem_exec_fence@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-pnv-d510: NOTRUN -> [SKIP][5] ([fdo#109271]) +57 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-pnv-d510/igt@[email protected]
- fi-kbl-soraka: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#2190])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-kbl-soraka/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][7] ([i915#2190])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-icl-u2/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- fi-icl-u2: NOTRUN -> [SKIP][8] ([i915#4613]) +3 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-icl-u2/igt@[email protected]
- fi-kbl-soraka: NOTRUN -> [SKIP][9] ([fdo#109271] / [i915#4613]) +3 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-kbl-soraka/igt@[email protected]

* igt@i915_pm_rpm@module-reload:
- fi-kbl-soraka: NOTRUN -> [DMESG-WARN][10] ([i915#1982] / [i915#4391])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-kbl-soraka/igt@[email protected]

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

* igt@i915_selftest@live@hangcheck:
- bat-dg1-5: [PASS][12] -> [DMESG-FAIL][13] ([i915#4494] / [i915#4957])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11272/bat-dg1-5/igt@i915_selftest@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/bat-dg1-5/igt@i915_selftest@[email protected]

* igt@kms_busy@basic@modeset:
- bat-adlp-4: [PASS][14] -> [DMESG-WARN][15] ([i915#3576])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11272/bat-adlp-4/igt@kms_busy@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/bat-adlp-4/igt@kms_busy@[email protected]

* igt@kms_chamelium@dp-edid-read:
- fi-kbl-soraka: NOTRUN -> [SKIP][16] ([fdo#109271] / [fdo#111827]) +8 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-kbl-soraka/igt@[email protected]

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: NOTRUN -> [SKIP][17] ([fdo#111827]) +8 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-icl-u2/igt@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-icl-u2: NOTRUN -> [SKIP][18] ([fdo#109278]) +2 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-icl-u2/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- fi-icl-u2: NOTRUN -> [SKIP][19] ([fdo#109285])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-icl-u2/igt@[email protected]

* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- fi-kbl-soraka: NOTRUN -> [SKIP][20] ([fdo#109271] / [i915#533])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-kbl-soraka/igt@[email protected]

* igt@kms_psr@primary_page_flip:
- fi-skl-6600u: [PASS][21] -> [FAIL][22] ([i915#4547])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11272/fi-skl-6600u/igt@kms_psr@primary_page_flip.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-skl-6600u/igt@kms_psr@primary_page_flip.html

* igt@prime_vgem@basic-userptr:
- fi-icl-u2: NOTRUN -> [SKIP][23] ([i915#3301])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-icl-u2/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@hangcheck:
- bat-dg1-6: [DMESG-FAIL][24] ([i915#4494] / [i915#4957]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11272/bat-dg1-6/igt@i915_selftest@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/bat-dg1-6/igt@i915_selftest@[email protected]

* igt@kms_flip@basic-flip-vs-modeset@a-edp1:
- bat-adlp-4: [DMESG-WARN][26] ([i915#3576]) -> [PASS][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11272/bat-adlp-4/igt@kms_flip@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/bat-adlp-4/igt@kms_flip@[email protected]

* igt@kms_flip@basic-flip-vs-wf_vblank@a-edp1:
- {bat-adlp-6}: [DMESG-WARN][28] ([i915#3576]) -> [PASS][29]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11272/bat-adlp-6/igt@kms_flip@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/bat-adlp-6/igt@kms_flip@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- fi-cml-u2: [DMESG-WARN][30] ([i915#4269]) -> [PASS][31]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11272/fi-cml-u2/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-cml-u2/igt@[email protected]

#### Warnings ####

* igt@runner@aborted:
- fi-skl-6600u: [FAIL][32] ([i915#1436] / [i915#4312]) -> [FAIL][33] ([i915#4312])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11272/fi-skl-6600u/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/fi-skl-6600u/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#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291
[i915#2411]: https://gitlab.freedesktop.org/drm/intel/issues/2411
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3576]: https://gitlab.freedesktop.org/drm/intel/issues/3576
[i915#4269]: https://gitlab.freedesktop.org/drm/intel/issues/4269
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#4494]: https://gitlab.freedesktop.org/drm/intel/issues/4494
[i915#4547]: https://gitlab.freedesktop.org/drm/intel/issues/4547
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4957]: https://gitlab.freedesktop.org/drm/intel/issues/4957
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533

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

* CI: CI-20190529 -> None
* IGT: IGT_6354 -> IGTPW_6685

CI-20190529: 20190529
CI_DRM_11272: 892b88db21ff2cc8d66fade70ad41e31a1bd3854 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6685: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6685/index.html
IGT_6354: 7146765b80919e3f134398ba433b36a56377e4c9 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

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

#2 lore raw
In reply to [email protected]

Hi Apoorva,

Dnia 2022-02-23 at 19:04:57 +0530, [email protected] napisał(a):

Quoted 5 lines

From: Apoorva Singh <[email protected]>

Add description for test and all the subtests

v2: Rebase

Please do not rebase when it is not needed, this patch will apply unless someone makes other changes to this file. You can rebase when you will make some changes to your patch. The main reason why not send it when no change in patch was done, is that it goes to CI testing, but there is no new functionality in it (despite description).

Before sending new version, please wait until discussion about such patches will end, see RFC post from Zbigniew with HAX in subject.

Quoted 22 lines
Cc Kamil Konieczny <[email protected]>
Cc Arjun Melkaveri <[email protected]>
---
 tests/i915/gem_wait.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
tests/i915/gem_wait.c +2 -0
index b17927b6..9f84ef33 100644
@@ -32,6 +32,8 @@
 #include "igt.h"
 #include "igt_vgem.h"
 
+IGT_TEST_DESCRIPTION("Tests the GEM_WAIT ioctl");
+
 static int __gem_wait(int fd, struct drm_i915_gem_wait *w)
 {
 	int err;

tests/i915/gem_wait.c igt_main · line 190

Quoted 4 lines
tests/i915/gem_wait.c +1 -0
@@ -185,9 +187,11 @@ igt_main
 		ctx = intel_ctx_create_all_physical(fd);
 	}
 
+	igt_describe("Tests that GEM_WAIT ioctl returns relevant error with invalid flag");

s/ioctl//

Description it is a little unfortunate, please rewrite it, for example:

"Verify that GEM_WAIT called with invalid flag will fail."

Please also split text if needed to keep whole line under 80 chars. It can sometimes be a little longer, but please try to keep it under 80.

tests/i915/gem_wait.c igt_main · line 194

Quoted 4 lines
tests/i915/gem_wait.c +1 -0
 	igt_subtest("invalid-flags")
 		invalid_flags(fd);
 
+	igt_describe("Tests that GEM_WAIT ioctl returns relevant error with invalid buffer object");

Same here, rewrite it.

tests/i915/gem_wait.c igt_main · line 218

Quoted 11 lines
tests/i915/gem_wait.c +3 -1
 	igt_subtest("invalid-buf")
 		invalid_buf(fd);
 
@@ -209,8 +213,11 @@ igt_main
 			igt_fork_signal_helper();
 		}
 
-		for (const typeof(*tests) *t = tests; t->name; t++)
+		for (const typeof(*tests) *t = tests; t->name; t++) {
+			igt_describe_f("For all engines, test the GEM_WAIT ioctl waiting on "
+				       "buffer object in %s mode", t->name);

Rewrite this here, look like it is testing basic functionality, so maybe something like:

Verify GEM_WAIT basic functionality in %s mode.

tests/i915/gem_wait.c igt_main · line 248

Quoted 13 lines
tests/i915/gem_wait.c +4 -1
 			test_all_engines(t->name, fd, ctx, t->flags);
+		}
 
 		igt_fixture {
 			igt_stop_signal_helper();
@@ -236,8 +243,11 @@ igt_main
 			igt_fork_signal_helper();
 		}
 
-		for (const typeof(*tests) *t = tests; t->name; t++)
+		for (const typeof(*tests) *t = tests; t->name; t++) {
+			igt_describe_f("For all engines, test the GEM_WAIT ioctl waiting on "
+				       "buffer object in %s mode when hang is allowed", (t->name+5));

Same here, rewrite it.

Quoted 8 lines
tests/i915/gem_wait.c +1 -0
 			test_all_engines(t->name, fd, ctx, t->flags);
+		}
 
 		igt_fixture {
 			igt_stop_signal_helper();
Signature · 1 line
2.25.1

Regards,
Kamil