Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/xe_eu_stall: Skip test on SR-IOV VF
@ 2025-05-22 17:24 Jakub Kolakowski
  2025-05-22 19:17 ` ✗ i915.CI.BAT: failure for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Jakub Kolakowski @ 2025-05-22 17:24 UTC (permalink / raw)
  To: igt-dev
  Cc: Jakub Kolakowski, Harish Chegondi, Ashutosh Dixit, Adam Miszczak,
	Lukasz Laguna, Marcin Bernatowicz

EU stall sampling is not supported on SR-IOV VF. Skip the test on SR-IOV
VF.

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

diff --git a/tests/intel/xe_eu_stall.c b/tests/intel/xe_eu_stall.c
index 411c30871..aa94d9565 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"
 
@@ -653,7 +654,7 @@ igt_main_args("e:g:o:r:u:w:", long_options, help_str, opt_handler, NULL)
 		drm_fd = drm_open_driver(DRIVER_XE);
 		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(!intel_is_vf_device(drm_fd) && (IS_PONTEVECCHIO(devid) || intel_graphics_ver(devid) >= IP_VER(20, 0)));
 		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


^ permalink raw reply related	[flat|nested] 12+ messages in thread
* [PATCH i-g-t] tests/intel/xe_eu_stall: Skip test on SR-IOV VF
@ 2025-05-23 12:44 Jakub Kolakowski
  0 siblings, 0 replies; 12+ messages in thread
From: Jakub Kolakowski @ 2025-05-23 12:44 UTC (permalink / raw)
  To: igt-dev
  Cc: Jakub Kolakowski, Kamil Konieczny, Harish Chegondi,
	Ashutosh Dixit, Adam Miszczak, Lukasz Laguna, Marcin Bernatowicz

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@linux.intel.com>
Cc: Harish Chegondi <harish.chegondi@intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Adam Miszczak <adam.miszczak@linux.intel.com>
Cc: Lukasz Laguna <lukasz.laguna@intel.com>
Cc: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Signed-off-by: Jakub Kolakowski <jakub1.kolakowski@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


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-05-23 16:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-22 17:24 [PATCH i-g-t] tests/intel/xe_eu_stall: Skip test on SR-IOV VF Jakub Kolakowski
2025-05-22 19:17 ` ✗ i915.CI.BAT: failure for " Patchwork
2025-05-22 19:30 ` ✓ Xe.CI.BAT: success " Patchwork
2025-05-23  6:51 ` [PATCH i-g-t] " Harish Chegondi
2025-05-23 10:40 ` Bernatowicz, Marcin
2025-05-23 12:23   ` Kolakowski, Jakub1
2025-05-23 13:11     ` Bernatowicz, Marcin
2025-05-23 13:56       ` Bernatowicz, Marcin
2025-05-23 16:06         ` Dixit, Ashutosh
2025-05-23 10:47 ` Kamil Konieczny
2025-05-23 12:20 ` ✗ Xe.CI.Full: failure for " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2025-05-23 12:44 [PATCH i-g-t] " Jakub Kolakowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox