[igt-dev] [PATCH i-g-t] i915/gem_exec_schedule: Semaphore priority fixups
Chris Wilson
chris at chris-wilson.co.uk
Sat May 4 07:22:45 UTC 2019
A stray git add from my test boxen -- we were being careful enough to
preserve priority and ordering to match the implicit policies.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
tests/i915/gem_exec_schedule.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c
index 330e8a54e..77a264a6a 100644
--- a/tests/i915/gem_exec_schedule.c
+++ b/tests/i915/gem_exec_schedule.c
@@ -507,6 +507,7 @@ static void semaphore_resolve(int i915)
uint32_t handle, cancel;
uint32_t *cs, *map;
igt_spin_t *spin;
+ int64_t poke = 1;
if (!gem_can_store_dword(i915, engine))
continue;
@@ -587,6 +588,7 @@ static void semaphore_resolve(int i915)
eb.buffer_count = 2;
eb.rsvd1 = inner;
gem_execbuf(i915, &eb);
+ gem_wait(i915, cancel, &poke);
gem_close(i915, cancel);
gem_sync(i915, handle); /* To hang unless cancel runs! */
--
2.20.1
More information about the igt-dev
mailing list