Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH] tests/intel/xe_exec_thread: Increase ufence timeout
@ 2024-01-12  0:34 Pallavi Mishra
  2024-01-12  0:59 ` Matthew Brost
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Pallavi Mishra @ 2024-01-12  0:34 UTC (permalink / raw)
  To: igt-dev

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 <pallavi.mishra@intel.com>
---
 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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-16 18:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-12  0:34 [igt-dev] [PATCH] tests/intel/xe_exec_thread: Increase ufence timeout Pallavi Mishra
2024-01-12  0:59 ` Matthew Brost
2024-01-16 18:10   ` Mishra, Pallavi
2024-01-12  1:16 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-01-12  1:34 ` ✗ CI.xeBAT: failure " Patchwork
2024-01-12  5:03 ` ✓ Fi.CI.IGT: success " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox