[PATCH i-g-t] tests/intel/xe_eu_stall: Skip test on SR-IOV VF

Jakub Kolakowski jakub1.kolakowski at intel.com
Fri May 23 12:44:20 UTC 2025


EU stall sampling is not supported on SR-IOV VF so add a skip for this.

v2: simplify commit message (Kamil)
    move vf check to separate igt_require_f with skip message (Kamil)

Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Cc: Harish Chegondi <harish.chegondi at intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit at intel.com>
Cc: Adam Miszczak <adam.miszczak at linux.intel.com>
Cc: Lukasz Laguna <lukasz.laguna at intel.com>
Cc: Marcin Bernatowicz <marcin.bernatowicz at linux.intel.com>
Signed-off-by: Jakub Kolakowski <jakub1.kolakowski at intel.com>
---
 tests/intel/xe_eu_stall.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/intel/xe_eu_stall.c b/tests/intel/xe_eu_stall.c
index 411c30871..decbcf541 100644
--- a/tests/intel/xe_eu_stall.c
+++ b/tests/intel/xe_eu_stall.c
@@ -44,6 +44,7 @@
 
 #include "igt.h"
 #include "igt_core.h"
+#include "igt_sriov_device.h"
 #include "xe_drm.h"
 #include "xe/xe_ioctl.h"
 
@@ -654,6 +655,7 @@ igt_main_args("e:g:o:r:u:w:", long_options, help_str, opt_handler, NULL)
 		igt_require_fd(drm_fd);
 		devid = intel_get_drm_devid(drm_fd);
 		igt_require(IS_PONTEVECCHIO(devid) || intel_graphics_ver(devid) >= IP_VER(20, 0));
+		igt_require_f(!intel_is_vf_device(drm_fd), "EU stall sampling not supported on SR-IOV VF.\n");
 		igt_require_f(igt_get_gpgpu_fillfunc(devid), "no gpgpu-fill function\n");
 		igt_require_f(!stat(OBSERVATION_PARANOID, &sb), "no observation_paranoid file\n");
 		if (output_file) {
-- 
2.34.1



More information about the igt-dev mailing list