From: Jonathan Cavitt <jonathan.cavitt@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jonathan.cavitt@intel.com, saurabhg.gupta@intel.com,
matthew.brost@intel.com
Subject: [PATCH i-g-t 2/2] tests/xe_spin_batch: Sync after vm_bind_async
Date: Fri, 23 Feb 2024 15:04:07 -0800 [thread overview]
Message-ID: <20240223230407.1712361-3-jonathan.cavitt@intel.com> (raw)
In-Reply-To: <20240223230407.1712361-1-jonathan.cavitt@intel.com>
Ensure that vm bind completes before the call to xe_exec occurs later in
the preempter.
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Suggested-by: Matthew Brost <matthew.brost@intel.com>
---
tests/intel/xe_spin_batch.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/intel/xe_spin_batch.c b/tests/intel/xe_spin_batch.c
index faf569baf8..3bdc1e5e20 100644
--- a/tests/intel/xe_spin_batch.c
+++ b/tests/intel/xe_spin_batch.c
@@ -202,6 +202,9 @@ static void preempter(int fd, struct drm_xe_engine_class_instance *hwe)
data = xe_bo_map(fd, bo, bo_size);
store_dword_batch(data, addr, value);
+ igt_assert(syncobj_wait(fd, &syncobj, 1, INT64_MAX, 0, NULL));
+ syncobj_reset(fd, &syncobj, 1);
+
exec_queue = xe_exec_queue_create(fd, vm, hwe, to_user_pointer(&ext));
exec.exec_queue_id = exec_queue;
exec.address = data->addr;
--
2.25.1
next prev parent reply other threads:[~2024-02-23 23:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-23 23:04 [PATCH i-g-t 0/2] tests/xe_spin_batch: Miscellaneous preempter fixes Jonathan Cavitt
2024-02-23 23:04 ` [PATCH i-g-t 1/2] tests/xe_spin_batch: Correct xe_vm_bind_async usage Jonathan Cavitt
2024-02-24 3:40 ` Matthew Brost
2024-02-23 23:04 ` Jonathan Cavitt [this message]
2024-02-24 3:41 ` [PATCH i-g-t 2/2] tests/xe_spin_batch: Sync after vm_bind_async Matthew Brost
2024-02-23 23:46 ` ✓ CI.xeBAT: success for tests/xe_spin_batch: Miscellaneous preempter fixes Patchwork
2024-02-24 0:02 ` ✓ Fi.CI.BAT: " Patchwork
2024-02-24 17:09 ` ✗ Fi.CI.IGT: failure " 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=20240223230407.1712361-3-jonathan.cavitt@intel.com \
--to=jonathan.cavitt@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=matthew.brost@intel.com \
--cc=saurabhg.gupta@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