[igt-dev] [PATCH i-g-t 16/20] tests/i915/perf: Skip intel_ctx_create_all_physical for xe

Ashutosh Dixit ashutosh.dixit at intel.com
Tue Aug 8 01:00:13 UTC 2023


intel_ctx_create_all_physical is only available for i915.

Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
 tests/i915/perf.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/i915/perf.c b/tests/i915/perf.c
index 0efa7f71477d..bfe4dd6ee533 100644
--- a/tests/i915/perf.c
+++ b/tests/i915/perf.c
@@ -5955,7 +5955,7 @@ test_group_concurrent_oa_buffer_read(void)
 
 igt_main
 {
-	const intel_ctx_t *ctx;
+	const intel_ctx_t *ctx = NULL;
 	const struct intel_execution_engine2 *e;
 
 	igt_subtest("i915-ref-count")
@@ -5985,8 +5985,11 @@ igt_main
 
 		igt_require(init_sys_info());
 
-		ctx = intel_ctx_create_all_physical(drm_fd);
-		set_default_engine(ctx);
+		if (!is_xe_device(drm_fd)) {
+			ctx = intel_ctx_create_all_physical(drm_fd);
+			set_default_engine(ctx);
+		}
+
 		write_u64_file(i9xe.sysctl_path_paranoid, 1);
 		write_u64_file(i9xe.sysctl_path_max_sample_rate, 100000);
 
-- 
2.41.0



More information about the igt-dev mailing list