Skip to contentSkip to conversation

tests/i915/i915_module_load : Use GEM_BUSY instead of SET_CACHE for sanity check

PATCH In review vikassri07 3 participants 3 messages Oct 14, 2022 – Oct 19, 2022

lore
Share & tools
lore

vikassri07

author
#0 lore raw

PATCH 1/1 tests/i915/i915_module_load : Use GEM_BUSY instead of SET_CACHE for sanity check

Use GEM_BUSY ioctl for sanity check as SET_CACHING ioctl is not supported on latest platforms like MTL.

References: VLK-36552

CC Janga Rahul Kumar <[email protected]>
Cc Aravind Iddamsetty<[email protected]>
Cc Fei Yang <[email protected]>
Cc Stuart Summers <[email protected]>
Cc Chris Wilson <[email protected]>
---
 tests/i915/i915_module_load.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/i915/i915_module_load.c +2 -2
index 1009a22b..eebb3167 100644
@@ -226,13 +226,13 @@ inject_fault(const char *module_name, const char *opt, int fault)
 
 static void gem_sanitycheck(void)
 {
-	struct drm_i915_gem_caching args = {};
+	struct drm_i915_gem_busy args = {};
 	int i915 = __drm_open_driver(DRIVER_INTEL);
 	int expected = gem_has_lmem(i915) ? -ENODEV : -ENOENT;
 	int err;
 
 	err = 0;
-	if (ioctl(i915, DRM_IOCTL_I915_GEM_SET_CACHING, &args))
+	if (ioctl(i915,DRM_IOCTL_I915_GEM_BUSY, &args))
 		err = -errno;
 	if (err == expected)
 		store_all(i915);
Signature · 1 line
2.25.1
#1 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for tests/i915/i915_module_load : Use GEM_BUSY instead of SET_CACHE for sanity check

== Series Details ==

== Series Details ==

Series: tests/i915/i915_module_load : Use GEM_BUSY instead of SET_CACHE for sanity check
URL : https://patchwork.freedesktop.org/series/109752/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_12250 -> IGTPW_7969
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (45 -> 43)
------------------------------

Additional (1): fi-rkl-guc
Missing (3): fi-bdw-samus fi-bxt-dsi fi-skl-6700k2

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

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

### IGT changes ###

#### Possible regressions ####

* igt@gem_exec_gttfill@basic:
- fi-pnv-d510: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/fi-pnv-d510/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7969/fi-pnv-d510/igt@[email protected]

* igt@runner@aborted:
- fi-rkl-guc: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7969/fi-rkl-guc/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_pm_rpm@module-reload:
- {fi-tgl-dsi}: [INCOMPLETE][4] ([i915#7190]) -> [INCOMPLETE][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12250/fi-tgl-dsi/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7969/fi-tgl-dsi/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[i915#7190]: https://gitlab.freedesktop.org/drm/intel/issues/7190

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

* CI: CI-20190529 -> None
* IGT: IGT_7016 -> IGTPW_7969

CI-20190529: 20190529
CI_DRM_12250: 9b84132c9b266a89e2865cbe8b586dd0b14cc2a4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7969: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7969/index.html
IGT_7016: 642f4bf44e2b42791b4d1684936a1bfbe2d099ee @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

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

#2 lore raw
In reply to vikassri07

Add original author in the signed-off along with yours and in the author put the original author as major changes haven't been done. After that change.
You can add Acked-by: Priyanka Dandamudi <[email protected]>

Quoted 50 lines

-----Original Message-----
From: igt-dev <[email protected]> On Behalf Of vikassri07
Sent: 14 October 2022 02:32 PM
To: [email protected]; Iddamsetty, Aravind <[email protected]>; Wilson, Chris P <[email protected]>
Cc: Kumar, Janga Rahul <[email protected]>; Yang, Fei <[email protected]>
Subject: [igt-dev] [PATCH i-g-t] tests/i915/i915_module_load : Use GEM_BUSY instead of SET_CACHE for sanity check

Use GEM_BUSY ioctl for sanity check as SET_CACHING ioctl is not supported on latest platforms like MTL.

References: VLK-36552

CC Janga Rahul Kumar <[email protected]>
Cc Aravind Iddamsetty<[email protected]>
Cc Fei Yang <[email protected]>
Cc Stuart Summers <[email protected]>
Cc Chris Wilson <[email protected]>
---
 tests/i915/i915_module_load.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/i915/i915_module_load.c +2 -2
index 1009a22b..eebb3167 100644
@@ -226,13 +226,13 @@ inject_fault(const char *module_name, const char
 *opt, int fault)
 
 static void gem_sanitycheck(void)
 {
-	struct drm_i915_gem_caching args = {};
+	struct drm_i915_gem_busy args = {};
 	int i915 = __drm_open_driver(DRIVER_INTEL);
 	int expected = gem_has_lmem(i915) ? -ENODEV : -ENOENT;
 	int err;
 
 	err = 0;
-	if (ioctl(i915, DRM_IOCTL_I915_GEM_SET_CACHING, &args))
+	if (ioctl(i915,DRM_IOCTL_I915_GEM_BUSY, &args))
 		err = -errno;
 	if (err == expected)

store_all(i915);
--
2.25.1