From: Andrzej Hajda <andrzej.hajda@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
Andrzej Hajda <andrzej.hajda@intel.com>
Subject: [PATCH] tests/intel/xe_exec_threads: decrease number of batches for simulation
Date: Fri, 26 Jul 2024 10:24:19 +0200 [thread overview]
Message-ID: <20240726-xe_exec_threads_limit_simul-v1-1-4c3f6e8da448@intel.com> (raw)
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>
next reply other threads:[~2024-07-26 8:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-26 8:24 Andrzej Hajda [this message]
2024-07-26 10:14 ` ✓ CI.xeBAT: success for tests/intel/xe_exec_threads: decrease number of batches for simulation 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240726-xe_exec_threads_limit_simul-v1-1-4c3f6e8da448@intel.com \
--to=andrzej.hajda@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox