[PATCH i-g-t v2 1/1] tests/intel/xe_exec_sip_eudebug: skip eudebug tests on VF

Jan Sokolowski jan.sokolowski at intel.com
Thu Apr 3 11:53:07 UTC 2025


Tests using eudebug are not compatible with VF functionality.
A way to check for that scenario is to check eudebug toggle
capability.

Skip a test that tries to use eudebug toggle if it doesn't
exist.

v2: Changed the idea from disabling a single test to disabling
all possible tests.

Signed-off-by: Jan Sokolowski <jan.sokolowski at intel.com>
Cc: Katarzyna Piecielska <katarzyna.piecielska at intel.com>
Reviewed-by: Lukasz Laguna <lukasz.laguna at intel.com>
Cc: Lukasz Laguna <lukasz.laguna at intel.com>
Reviewed-by: Christoph Manszewski <christoph.manszewski at intel.com>
Cc: Christoph Manszewski <christoph.manszewski at intel.com>
---
 lib/xe/xe_eudebug.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/xe/xe_eudebug.c b/lib/xe/xe_eudebug.c
index ec946058b..667c31c6e 100644
--- a/lib/xe/xe_eudebug.c
+++ b/lib/xe/xe_eudebug.c
@@ -1794,10 +1794,7 @@ bool xe_eudebug_enable(int fd, bool enable)
 	bool old = false;
 	int ret = __xe_eudebug_enable_getset(fd, &old, &enable);
 
-	if (ret) {
-		igt_skip_on(enable);
-		old = false;
-	}
+	igt_skip_on(ret);
 
 	return old;
 }
-- 
2.34.1



More information about the igt-dev mailing list