All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt] igt/gem_exec_await: Flush the WCB before attempting to queue more work
@ 2017-12-21 15:48 Chris Wilson
  2017-12-21 16:05 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Wilson @ 2017-12-21 15:48 UTC (permalink / raw)
  To: intel-gfx

Ensure that the terminating write into WC-memory is flushed before we
might trigger a wait for ring space.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/gem_exec_await.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/gem_exec_await.c b/tests/gem_exec_await.c
index 9c4467922..28b280ff6 100644
--- a/tests/gem_exec_await.c
+++ b/tests/gem_exec_await.c
@@ -222,6 +222,7 @@ static void wide(int fd, int ring_size, int timeout, unsigned int flags)
 
 		for (unsigned e = 0; e < nengine; e++)
 			exec[e].cmd[0] = MI_BATCH_BUFFER_END;
+		__sync_synchronize();
 	}
 
 	igt_assert_eq(intel_detect_and_clear_missed_interrupts(fd), 0);
-- 
2.15.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2017-12-22 17:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-21 15:48 [PATCH igt] igt/gem_exec_await: Flush the WCB before attempting to queue more work Chris Wilson
2017-12-21 16:05 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-12-21 16:56 ` ✗ Fi.CI.IGT: warning " Patchwork
2017-12-22 17:03 ` [PATCH igt] " Tvrtko Ursulin

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.