From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id D9ECA10E0A7 for ; Tue, 8 Aug 2023 01:00:24 +0000 (UTC) From: Ashutosh Dixit To: igt-dev@lists.freedesktop.org Date: Mon, 7 Aug 2023 18:00:13 -0700 Message-ID: <20230808010017.37819-17-ashutosh.dixit@intel.com> In-Reply-To: <20230808010017.37819-1-ashutosh.dixit@intel.com> References: <20230808010017.37819-1-ashutosh.dixit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 16/20] tests/i915/perf: Skip intel_ctx_create_all_physical for xe List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: intel_ctx_create_all_physical is only available for i915. Signed-off-by: Ashutosh Dixit --- 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