From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 729C910E286 for ; Tue, 5 Sep 2023 16:50:42 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Tue, 5 Sep 2023 22:12:27 +0530 Message-Id: <20230905164230.1679263-3-bhanuprakash.modem@intel.com> In-Reply-To: <20230905164230.1679263-1-bhanuprakash.modem@intel.com> References: <20230905164230.1679263-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V2 2/5] tests/kms_vblank: Allow hang tests to run on XE List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kunal Joshi Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: As hang tests supports both i915 & XE, update the intel specific checks to allow them to run on XE. Cc: Kunal Joshi Signed-off-by: Bhanuprakash Modem Reviewed-by: Kunal Joshi --- tests/kms_vblank.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c index 0cc21bb5f..6753dc918 100644 --- a/tests/kms_vblank.c +++ b/tests/kms_vblank.c @@ -289,7 +289,10 @@ static void run_test(data_t *data, void (*testfunc)(data_t *, int, int)) igt_output_name(output)); if (!(data->flags & NOHANG)) { - ahnd = get_reloc_ahnd(fd, 0); + ahnd = is_i915_device(fd) ? + get_reloc_ahnd(fd, 0) : + intel_allocator_open(fd, 0, INTEL_ALLOCATOR_RELOC); + hang = igt_hang_ring_with_ahnd(fd, I915_EXEC_DEFAULT, ahnd); } -- 2.40.0