All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt 1/7] igt/gem_sync: Sync before starting the clock
@ 2017-09-29 15:26 Chris Wilson
  2017-09-29 15:26 ` [PATCH igt 2/7] igt/gem_workarounds: Read the workaround registers from the active context Chris Wilson
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Chris Wilson @ 2017-09-29 15:26 UTC (permalink / raw)
  To: intel-gfx

Hide the initial setup cost of a new batch by performing it before we
start the clock for measuring the execute-wait latency.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
---
 tests/gem_sync.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/gem_sync.c b/tests/gem_sync.c
index 8ed9760d..c9e2f014 100644
--- a/tests/gem_sync.c
+++ b/tests/gem_sync.c
@@ -138,6 +138,7 @@ sync_ring(int fd, unsigned ring, int num_children, int timeout)
 		execbuf.buffer_count = 1;
 		execbuf.flags = engines[child % num_engines];
 		gem_execbuf(fd, &execbuf);
+		gem_sync(fd, object.handle);
 
 		start = gettime();
 		cycles = 0;
@@ -553,6 +554,7 @@ sync_all(int fd, int num_children, int timeout)
 		execbuf.buffers_ptr = to_user_pointer(&object);
 		execbuf.buffer_count = 1;
 		gem_execbuf(fd, &execbuf);
+		gem_sync(fd, object.handle);
 
 		start = gettime();
 		cycles = 0;
@@ -773,6 +775,7 @@ preempt(int fd, unsigned ring, int num_children, int timeout)
 		execbuf.flags = engines[child % num_engines];
 		execbuf.rsvd1 = ctx[1];
 		gem_execbuf(fd, &execbuf);
+		gem_sync(fd, object.handle);
 
 		start = gettime();
 		cycles = 0;
-- 
2.14.2

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

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

end of thread, other threads:[~2017-10-03 13:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-29 15:26 [PATCH igt 1/7] igt/gem_sync: Sync before starting the clock Chris Wilson
2017-09-29 15:26 ` [PATCH igt 2/7] igt/gem_workarounds: Read the workaround registers from the active context Chris Wilson
2017-10-03 12:53   ` Chris Wilson
2017-10-03 13:05   ` [PATCH igt v2] " Chris Wilson
2017-09-29 15:26 ` [PATCH igt 3/7] igt/gem_workarounds: Also exercise fresh contexts not the persistent default Chris Wilson
2017-09-29 15:26 ` [PATCH igt 4/7] igt/gem_workarounds: Also test new fd (implicit default context) Chris Wilson
2017-09-29 15:26 ` [PATCH igt 5/7] igt/gem_workarounds: Reduce manual list to combinatorial loops Chris Wilson
2017-09-29 15:26 ` [PATCH igt 6/7] igt/gem_workarounds: Add hibernation coverage Chris Wilson
2017-09-29 15:26 ` [PATCH igt 7/7] lib: Ask the kernel to quiescent the GPU Chris Wilson
2017-10-03 12:49   ` Joonas Lahtinen
2017-09-29 15:52 ` ✗ Fi.CI.BAT: failure for series starting with [1/7] igt/gem_sync: Sync before starting the clock Patchwork
2017-10-03 11:55   ` Arkadiusz Hiler
2017-10-03 12:13     ` Chris Wilson
2017-10-03 13:34 ` ✗ Fi.CI.BAT: failure for series starting with [1/7] igt/gem_sync: Sync before starting the clock (rev2) Patchwork
2017-10-03 13:37   ` Chris Wilson

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.