Skip to contentSkip to conversation

igt/gem_sync: Sync before starting the clock

PATCH In review Chris Wilson 3 participants 3 messages Sep 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igt/gem_sync: Sync before starting the clock

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

---
 tests/gem_sync.c | 3 +++
 1 file changed, 3 insertions(+)
tests/gem_sync.c +3 -0
index 8ed9760d..c9e2f014 100644
@@ -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;
Signature · 6 lines
2.14.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

✗ Fi.CI.BAT: failure for igt/gem_sync: Sync before starting the clock

== Series Details ==

== Series Details ==

Series: igt/gem_sync: Sync before starting the clock
URL : https://patchwork.freedesktop.org/series/31141/
State : failure

== Summary ==

Series 31141 revision 1 was fully merged or fully failed: no git log

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reviewed-by on v1 1/1
#2 lore raw
In reply to Chris Wilson
Quoted 4 lines · Chris Wilson

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

Regards, Joonas

Signature · 7 lines
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx