[igt-dev] [PATCH i-g-t v5] tests/i915/i915_module_load: Use GEM_BUSY instead of SET_CACHE for sanity check

Vikas Srivastava vikas.srivastava at intel.com
Thu Oct 20 09:33:05 UTC 2022


Use GEM_BUSY ioctl for sanity check as SET_CACHING ioctl is not supported on latest platforms like MTL.
    
Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar at intel.com>
Acked-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
Cc: Aravind Iddamsetty<aravind.iddamsetty at intel.com>
Cc: Fei Yang <fei.yang at intel.com>
Cc: Stuart Summers <stuart.summers at intel.com>
Cc: Chris Wilson <chris.p.wilson at intel.com>
    
---
 tests/i915/i915_module_load.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/i915/i915_module_load.c b/tests/i915/i915_module_load.c
index 1009a22b..eebb3167 100644
--- a/tests/i915/i915_module_load.c
+++ b/tests/i915/i915_module_load.c
@@ -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



More information about the igt-dev mailing list