[Intel-gfx] [PATCH i-g-t] i915/gem_exec_balancer: Wait for both engines to complete before resubmitting

Chris Wilson chris at chris-wilson.co.uk
Mon Nov 4 20:17:10 UTC 2019


As the scratch buf is shared between the two requests on both engines,
we need to wait for both to finish using the buffer before we reset it.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala at linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
 tests/i915/gem_exec_balancer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_exec_balancer.c b/tests/i915/gem_exec_balancer.c
index e52f5df95..70c4529b4 100644
--- a/tests/i915/gem_exec_balancer.c
+++ b/tests/i915/gem_exec_balancer.c
@@ -840,7 +840,7 @@ static void bonded_slice(int i915)
 			gem_execbuf(i915, &eb);
 			close(eb.rsvd2);
 
-			gem_sync(i915, obj[2].handle);
+			gem_sync(i915, obj[0].handle);
 		}
 
 		*stop = 1;
-- 
2.24.0



More information about the Intel-gfx mailing list