From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id AF6B210E998 for ; Fri, 12 Jan 2024 00:27:19 +0000 (UTC) From: Pallavi Mishra To: igt-dev@lists.freedesktop.org Subject: [igt-dev] [PATCH] tests/intel/xe_exec_thread: Increase ufence timeout Date: Fri, 12 Jan 2024 06:04:50 +0530 Message-Id: <20240112003450.1691892-1-pallavi.mishra@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: For invalidate scenario, the ufence occasionally times out. Increase timeout for invalidate case. Fixes: xe_exec_threads@threads-mixed-userptr-invalidate and xe_exec_threads@threads-bal-mixed-userptr-invalidate Signed-off-by: Pallavi Mishra --- tests/intel/xe_exec_threads.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/intel/xe_exec_threads.c b/tests/intel/xe_exec_threads.c index 17ee57a49..04c0e2196 100644 --- a/tests/intel/xe_exec_threads.c +++ b/tests/intel/xe_exec_threads.c @@ -327,6 +327,7 @@ test_compute_mode(int fd, uint32_t vm, uint64_t addr, uint64_t userptr, bo_size, sync, 1); #define THREE_SEC MS_TO_NS(3000) #define THIRTY_SEC MS_TO_NS(30000) +#define FIVE_SEC MS_TO_NS(5000) fence_timeout = igt_run_in_simulation() ? THIRTY_SEC : THREE_SEC; @@ -389,7 +390,7 @@ test_compute_mode(int fd, uint32_t vm, uint64_t addr, uint64_t userptr, xe_wait_ufence(fd, &data[j].exec_sync, USER_FENCE_VALUE, exec_queues[e], - fence_timeout); + FIVE_SEC); igt_assert_eq(data[i].data, 0xc0ffee); } else if (i * 2 != n_execs) { /* @@ -422,7 +423,7 @@ test_compute_mode(int fd, uint32_t vm, uint64_t addr, uint64_t userptr, (flags & RACE ? n_execs / 2 + 1 : n_execs - 1) : 0; for (i = j; i < n_execs; i++) xe_wait_ufence(fd, &data[i].exec_sync, USER_FENCE_VALUE, - exec_queues[i % n_exec_queues], fence_timeout); + exec_queues[i % n_exec_queues], FIVE_SEC); /* Wait for all execs to complete */ if (flags & INVALIDATE) -- 2.25.1