Skip to contentSkip to conversation

tests/i915/gem_userptr_blits: skip set-cache-level subtest on MTL platform

PATCH In review Vikas Srivastava 3 participants 5 messages Mar 2, 2023 – Mar 7, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/i915/gem_userptr_blits: skip set-cache-level subtest on MTL platform

SET_CACHE ioctl is not supported on latest platform like MTL so instead of failing in set-cache-level subtest just skip it.

---
 tests/i915/gem_userptr_blits.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
tests/i915/gem_userptr_blits.c +4 -1
index 483570d0a..402d8810b 100644
@@ -2417,8 +2417,11 @@ igt_main_args("c:", NULL, help_str, opt_handler, NULL)
 			test_sd_probe(fd);
 		}
 
-		igt_subtest("set-cache-level")
+		igt_subtest("set-cache-level") {
+			igt_require_f(__gem_set_caching(fd, 0, 0) != -EOPNOTSUPP,
+				      "set_caching not supported on this platform");
 			test_set_caching(fd);
+		}
 
 		igt_subtest("userfault")
 			test_userfault(fd);
Signature · 1 line
2.25.1
#1 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for tests/i915/gem_userptr_blits: skip set-cache-level subtest on MTL platform

== Series Details ==

== Series Details ==

Series: tests/i915/gem_userptr_blits: skip set-cache-level subtest on MTL platform
URL : https://patchwork.freedesktop.org/series/114547/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_12800 -> IGTPW_8552
====================================================

Summary
-------

**FAILURE**

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

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

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

ERROR: It appears as if the changes made in IGTPW_8552 prevented too many machines from booting.

Additional (1): bat-atsm-1
Missing (37): fi-rkl-11600 bat-adls-5 bat-dg1-6 bat-dg1-5 bat-adlp-6 fi-apl-guc fi-snb-2520m bat-rpls-1 fi-blb-e6850 bat-rpls-2 fi-skl-6600u fi-bsw-n3050 bat-dg2-8 bat-adlm-1 bat-dg2-9 fi-ilk-650 fi-hsw-4770 bat-adln-1 fi-ivb-3770 bat-jsl-3 bat-rplp-1 fi-elk-e7500 bat-dg2-11 fi-bsw-nick fi-kbl-7567u bat-dg1-7 bat-kbl-2 bat-adlp-9 fi-skl-guc fi-cfl-8700k fi-glk-j4005 bat-jsl-1 fi-tgl-1115g4 fi-cfl-guc fi-kbl-guc fi-kbl-x1275 fi-cfl-8109u

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

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

### IGT changes ###

#### Issues hit ####

* igt@fbdev@eof:
- bat-atsm-1: NOTRUN -> [SKIP][1] ([i915#2582]) +4 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@gem_mmap@basic:
- bat-atsm-1: NOTRUN -> [SKIP][2] ([i915#4083])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@gem_tiled_fence_blits@basic:
- bat-atsm-1: NOTRUN -> [SKIP][3] ([i915#4077]) +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@gem_tiled_pread_basic:
- bat-atsm-1: NOTRUN -> [SKIP][4] ([i915#4079]) +1 similar issue
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@gem_tiled_pread_basic.html

* igt@i915_pm_rps@basic-api:
- bat-atsm-1: NOTRUN -> [SKIP][5] ([i915#6621])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@i915_suspend@basic-s3-without-i915:
- bat-atsm-1: NOTRUN -> [SKIP][6] ([i915#6645])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@kms_addfb_basic@size-max:
- bat-atsm-1: NOTRUN -> [SKIP][7] ([i915#6077]) +36 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@kms_cursor_legacy@basic-flip-after-cursor-atomic:
- bat-atsm-1: NOTRUN -> [SKIP][8] ([i915#6078]) +19 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@kms_flip@basic-plain-flip:
- bat-atsm-1: NOTRUN -> [SKIP][9] ([i915#6166]) +3 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@kms_force_connector_basic@prune-stale-modes:
- bat-atsm-1: NOTRUN -> [SKIP][10] ([i915#6093]) +3 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@kms_pipe_crc_basic@hang-read-crc:
- bat-atsm-1: NOTRUN -> [SKIP][11] ([i915#1836]) +6 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@kms_prop_blob@basic:
- bat-atsm-1: NOTRUN -> [SKIP][12] ([i915#7357])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@kms_psr@sprite_plane_onoff:
- bat-atsm-1: NOTRUN -> [SKIP][13] ([i915#1072]) +3 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@kms_psr@sprite_plane_onoff.html

* igt@kms_setmode@basic-clone-single-crtc:
- bat-atsm-1: NOTRUN -> [SKIP][14] ([i915#6094])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- bat-atsm-1: NOTRUN -> [SKIP][15] ([fdo#109295] / [i915#6078])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@prime_vgem@basic-fence-mmap:
- bat-atsm-1: NOTRUN -> [SKIP][16] ([fdo#109295] / [i915#4077]) +1 similar issue
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

* igt@prime_vgem@basic-write:
- bat-atsm-1: NOTRUN -> [SKIP][17] ([fdo#109295]) +3 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/bat-atsm-1/igt@[email protected]

[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1836]: https://gitlab.freedesktop.org/drm/intel/issues/1836
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#6077]: https://gitlab.freedesktop.org/drm/intel/issues/6077
[i915#6078]: https://gitlab.freedesktop.org/drm/intel/issues/6078
[i915#6093]: https://gitlab.freedesktop.org/drm/intel/issues/6093
[i915#6094]: https://gitlab.freedesktop.org/drm/intel/issues/6094
[i915#6166]: https://gitlab.freedesktop.org/drm/intel/issues/6166
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#7357]: https://gitlab.freedesktop.org/drm/intel/issues/7357

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

* CI: CI-20190529 -> None
* IGT: IGT_7178 -> IGTPW_8552

CI-20190529: 20190529
CI_DRM_12800: 648a70b879daba67a6e7c69f191e846c4e043854 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8552: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8552/index.html
IGT_7178: ffe3f6670b91ab975f90799ab3fd0941b6eae019 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

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

#2 lore raw
In reply to Vikas Srivastava

Hi Vikas,

Quoted 2 lines · Vikas Srivastava

SET_CACHE ioctl is not supported on latest platform like MTL so instead of failing in set-cache-level subtest just skip it.

You already have patchset: tests/i915: skip gem_set_caching call for mtl Why not place it there ?

Quoted 11 lines
---
 tests/i915/gem_userptr_blits.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
tests/i915/gem_userptr_blits.c +0 -0
index 483570d0a..402d8810b 100644

tests/i915/gem_userptr_blits.c igt_main_args("c:", NULL, help_str, opt_handler, NULL) · line 2421

Quoted 6 lines
tests/i915/gem_userptr_blits.c +2 -1
@@ -2417,8 +2417,11 @@ igt_main_args("c:", NULL, help_str, opt_handler, NULL)
 			test_sd_probe(fd);
 		}
 
-		igt_subtest("set-cache-level")
+		igt_subtest("set-cache-level") {
+			igt_require_f(__gem_set_caching(fd, 0, 0) != -EOPNOTSUPP,

Maybe better to check for MTL here and skip with message ?

Regards,
Kamil

Quoted 9 lines
tests/i915/gem_userptr_blits.c +2 -0
+				      "set_caching not supported on this platform");
 			test_set_caching(fd);
+		}
 
 		igt_subtest("userfault")
 			test_userfault(fd);
Signature · 1 line
2.25.1
#3 lore raw

Hi Kamil,

Thanks for checking , ok I will send this change as a part of " skip gem_set_caching call for mtl".

Regards,
Vikas

Quoted 52 lines

-----Original Message-----
From: Kamil Konieczny <[email protected]>
Sent: Thursday, March 2, 2023 4:33 PM
To: Srivastava, Vikas <[email protected]>
Cc: [email protected]
Subject: Re: [igt-dev] [PATCH i-g-t] tests/i915/gem_userptr_blits: skip set-cache- level subtest on MTL platform

Hi Vikas,

Quoted 2 lines · Vikas Srivastava

SET_CACHE ioctl is not supported on latest platform like MTL so instead of failing in set-cache-level subtest just skip it.

You already have patchset: tests/i915: skip gem_set_caching call for mtl Why not place it there ?

tests/i915/gem_userptr_blits.c igt_main_args("c:", NULL, help_str, opt_handler,

Quoted 11 lines
---
 tests/i915/gem_userptr_blits.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/tests/i915/gem_userptr_blits.c index 483570d0a..402d8810b 100644

tests/i915/gem_userptr_blits.c +0 -0
@@ -2417,8 +2417,11 @@ igt_main_args("c:", NULL, help_str, opt_handler,

NULL)

tests/i915/gem_userptr_blits.c igt_main_args("c:", NULL, help_str, opt_handler, NULL)

Quoted 6 lines
tests/i915/gem_userptr_blits.c +2 -1
 			test_sd_probe(fd);
 		}
 
-		igt_subtest("set-cache-level")
+		igt_subtest("set-cache-level") {
+			igt_require_f(__gem_set_caching(fd, 0, 0) != -

EOPNOTSUPP,

Maybe better to check for MTL here and skip with message ?

Regards,
Kamil

tests/i915/gem_userptr_blits.c igt_main_args("c:", NULL, help_str, opt_handler, · line 2422

Quoted 1 line
tests/i915/gem_userptr_blits.c +1 -0
+				      "set_caching not supported on this

platform");

Quoted 8 lines
tests/i915/gem_userptr_blits.c +1 -1
 			test_set_caching(fd);
+		}
 
 		igt_subtest("userfault")
 			test_userfault(fd);
--

2.25.1

#4 lore raw

Hi Vikas,

Quoted 7 lines · Vikas

Hi Kamil,

Thanks for checking , ok I will send this change as a part of " skip gem_set_caching call for mtl".

Regards,
Vikas

no problem, I looked at it again and imho you can use:

	bool has_set_caching = IS_METEORLAKE(devid) ? false : true;

and later:

		igt_require_f(has_set_caching);

or you can create function gem_has_set_caching and use it. We already have few such functions, see for example gem_has_context or other gem_has_*

This way you avoid calling set_caching with tmp values (which may fail) or accidentally setting caching for object 0.

Regards,
Kamil

Quoted 52 lines
Quoted 52 lines

-----Original Message-----
From: Kamil Konieczny <[email protected]>
Sent: Thursday, March 2, 2023 4:33 PM
To: Srivastava, Vikas <[email protected]>
Cc: [email protected]
Subject: Re: [igt-dev] [PATCH i-g-t] tests/i915/gem_userptr_blits: skip set-cache- level subtest on MTL platform

Hi Vikas,

Quoted 2 lines · Vikas Srivastava

SET_CACHE ioctl is not supported on latest platform like MTL so instead of failing in set-cache-level subtest just skip it.

You already have patchset: tests/i915: skip gem_set_caching call for mtl Why not place it there ?

tests/i915/gem_userptr_blits.c igt_main_args("c:", NULL, help_str, opt_handler,

Quoted 11 lines
---
 tests/i915/gem_userptr_blits.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/tests/i915/gem_userptr_blits.c index 483570d0a..402d8810b 100644

tests/i915/gem_userptr_blits.c +0 -0
@@ -2417,8 +2417,11 @@ igt_main_args("c:", NULL, help_str, opt_handler,

NULL)

tests/i915/gem_userptr_blits.c igt_main_args("c:", NULL, help_str, opt_handler, NULL)

Quoted 6 lines
tests/i915/gem_userptr_blits.c +2 -1
 			test_sd_probe(fd);
 		}
 
-		igt_subtest("set-cache-level")
+		igt_subtest("set-cache-level") {
+			igt_require_f(__gem_set_caching(fd, 0, 0) != -

EOPNOTSUPP,

Maybe better to check for MTL here and skip with message ?

Regards,
Kamil

tests/i915/gem_userptr_blits.c igt_main_args("c:", NULL, help_str, opt_handler, · line 2422

Quoted 1 line
tests/i915/gem_userptr_blits.c +1 -0
+				      "set_caching not supported on this

platform");

Quoted 8 lines
tests/i915/gem_userptr_blits.c +1 -1
 			test_set_caching(fd);
+		}
 
 		igt_subtest("userfault")
 			test_userfault(fd);
--

2.25.1