From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id BCCFD10E1C4 for ; Thu, 20 Jul 2023 23:18:03 +0000 (UTC) From: Ashutosh Dixit To: igt-dev@lists.freedesktop.org Date: Thu, 20 Jul 2023 16:17:43 -0700 Message-ID: <20230720231756.3464641-8-ashutosh.dixit@intel.com> In-Reply-To: <20230720231756.3464641-1-ashutosh.dixit@intel.com> References: <20230720231756.3464641-1-ashutosh.dixit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 07/20] tests/i915/perf: Fix i915_perf_revision for use with xe List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Because xe driver is based on the latest upstream i915, set the perf revision for xe to be greater than the latest i915 perf revision. Doing so ensures that all tests for latest i915 features are also available for xe. Signed-off-by: Ashutosh Dixit --- tests/i915/perf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/i915/perf.c b/tests/i915/perf.c index 9fb11f9e0730..03af968d9484 100644 --- a/tests/i915/perf.c +++ b/tests/i915/perf.c @@ -564,6 +564,12 @@ static int i915_perf_revision(int fd) drm_i915_getparam_t gp; int value = 1, ret; +#define FINAL_I915_PERF_REV 7 + + if (is_xe_device(drm_fd)) + return FINAL_I915_PERF_REV + + xe_config(drm_fd)->info[XE_QUERY_OA_IOCTL_VERSION]; + gp.param = I915_PARAM_PERF_REVISION; gp.value = &value; ret = igt_ioctl(drm_fd, DRM_IOCTL_I915_GETPARAM, &gp); -- 2.41.0