Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/intel/xe_exec_threads: decrease number of batches for simulation
@ 2024-07-26  8:24 Andrzej Hajda
  2024-07-26 10:14 ` ✓ CI.xeBAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andrzej Hajda @ 2024-07-26  8:24 UTC (permalink / raw)
  To: igt-dev; +Cc: Kamil Konieczny, Andrzej Hajda

Tests like threads-mixed-shared-vm-rebind takes significantly longer time
on simulation due to high number of batches - 6-8 minutes vs few seconds
on hw. As a result CI tests frequently fails due to timeout.

Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
---
 tests/intel/xe_exec_threads.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/intel/xe_exec_threads.c b/tests/intel/xe_exec_threads.c
index e7a0a7cd0692..9a37730a9615 100644
--- a/tests/intel/xe_exec_threads.c
+++ b/tests/intel/xe_exec_threads.c
@@ -944,6 +944,7 @@ static void *thread(void *data)
 
 static void threads(int fd, int flags)
 {
+	int n_execs = igt_run_in_simulation() ? 256 : 1024;
 	struct thread_data *threads_data;
 	struct drm_xe_engine_class_instance *hwe;
 	uint64_t addr = 0x1a0000;
@@ -1002,8 +1003,7 @@ static void threads(int fd, int flags)
 		threads_data[i].eci = hwe;
 #define N_EXEC_QUEUE	16
 		threads_data[i].n_exec_queue = N_EXEC_QUEUE;
-#define N_EXEC		1024
-		threads_data[i].n_exec = N_EXEC;
+		threads_data[i].n_exec = n_execs;
 		threads_data[i].flags = flags;
 		if (flags & MIXED_MODE) {
 			threads_data[i].flags &= ~MIXED_MODE;
@@ -1050,7 +1050,7 @@ static void threads(int fd, int flags)
 						vm_legacy_mode;
 					threads_data[i].class = class;
 					threads_data[i].n_exec_queue = N_EXEC_QUEUE;
-					threads_data[i].n_exec = N_EXEC;
+					threads_data[i].n_exec = n_execs;
 					threads_data[i].flags = flags;
 					threads_data[i].flags &= ~BALANCER;
 					threads_data[i].flags |= *data_flags;

---
base-commit: 0471a1097444389a901d78b260c24eaf4fc2d7df
change-id: 20240726-xe_exec_threads_limit_simul-3dc20e0deac3

Best regards,
-- 
Andrzej Hajda <andrzej.hajda@intel.com>


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

end of thread, other threads:[~2024-07-26 20:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-26  8:24 [PATCH] tests/intel/xe_exec_threads: decrease number of batches for simulation Andrzej Hajda
2024-07-26 10:14 ` ✓ CI.xeBAT: success for " Patchwork
2024-07-26 10:27 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-07-26 11:45 ` [PATCH] " Kamil Konieczny
2024-07-26 20:27 ` ✗ CI.xeFULL: failure for " Patchwork

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