public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] i915/gem_exec_schedule: Semaphore priority fixups
@ 2019-05-04  7:22 Chris Wilson
  2019-05-04  7:52 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
  2019-05-04  9:41 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Wilson @ 2019-05-04  7:22 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

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@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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

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

end of thread, other threads:[~2019-05-04  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-04  7:22 [igt-dev] [PATCH i-g-t] i915/gem_exec_schedule: Semaphore priority fixups Chris Wilson
2019-05-04  7:52 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-05-04  9:41 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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