From: Sobin Thomas <sobin.thomas@intel.com>
To: igt-dev@lists.freedesktop.org, matthew.brost@intel.com
Cc: Sobin Thomas <sobin.thomas@intel.com>
Subject: [PATCH v2 i-g-t] tests/intel/xe_exec_reset: Wait for spin jobs
Date: Thu, 21 Aug 2025 08:02:38 +0000 [thread overview]
Message-ID: <20250821080238.467357-2-sobin.thomas@intel.com> (raw)
In-Reply-To: <20250821080238.467357-1-sobin.thomas@intel.com>
This fix will allow waiting for the spin jobs to be triggered
before performing the gt reset. This allows all the job
to be started on the guc ids and prevents the timeout message
in dmesg as warnings.
Signed-off-by: Sobin Thomas <sobin.thomas@intel.com>
---
tests/intel/xe_exec_reset.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/intel/xe_exec_reset.c b/tests/intel/xe_exec_reset.c
index 7ae53c679..94768b48c 100644
--- a/tests/intel/xe_exec_reset.c
+++ b/tests/intel/xe_exec_reset.c
@@ -251,6 +251,9 @@ test_balancer(int fd, int gt, int class, int n_exec_queues, int n_execs,
xe_spin_wait_started(&data[i].spin);
}
+ for (i = 0; i < n_exec_queues && n_execs; i++)
+ igt_assert(syncobj_wait(fd, &syncobjs[i], 1, INT64_MAX, 0,
+ NULL));
if (flags & GT_RESET)
xe_force_gt_reset_async(fd, gt);
@@ -266,9 +269,6 @@ test_balancer(int fd, int gt, int class, int n_exec_queues, int n_execs,
return;
}
- for (i = 0; i < n_exec_queues && n_execs; i++)
- igt_assert(syncobj_wait(fd, &syncobjs[i], 1, INT64_MAX, 0,
- NULL));
igt_assert(syncobj_wait(fd, &sync[0].handle, 1, INT64_MAX, 0, NULL));
sync[0].flags |= DRM_XE_SYNC_FLAG_SIGNAL;
--
2.34.1
next prev parent reply other threads:[~2025-08-21 8:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 8:02 [PATCH i-g-t v2 0/1] tests/intel/xe_exec_reset: Wait for spin jobs Sobin Thomas
2025-08-21 8:02 ` Sobin Thomas [this message]
2025-08-21 14:14 ` ✓ Xe.CI.BAT: success for tests/intel/xe_exec_reset: Wait for spin jobs (rev2) Patchwork
2025-08-21 14:24 ` ✓ i915.CI.BAT: " Patchwork
2025-08-21 18:49 ` ✗ i915.CI.Full: failure " Patchwork
2025-08-22 11:50 ` ✗ Xe.CI.Full: " 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=20250821080238.467357-2-sobin.thomas@intel.com \
--to=sobin.thomas@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=matthew.brost@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.