[PATCH i-g-t] i915/gem_exec_schedule: Tighten estimate for nreq

Chris Wilson chris at chris-wilson.co.uk
Sun Jan 17 21:35:08 UTC 2021


Each bundle is 3 requests, so trim the workload estimate accordingly.

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

diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c
index 800e27254..9585059d8 100644
--- a/tests/i915/gem_exec_schedule.c
+++ b/tests/i915/gem_exec_schedule.c
@@ -1808,7 +1808,7 @@ static void deep(int fd, unsigned ring)
 		ctx[n] = gem_context_clone_with_engines(fd, 0);
 	}
 
-	nreq = gem_submission_measure(fd, ring) / (4 * XS) * MAX_CONTEXTS;
+	nreq = gem_submission_measure(fd, ring) / (3 * XS) * MAX_CONTEXTS;
 	if (nreq > max_req)
 		nreq = max_req;
 	igt_info("Using %d requests (prio range %d)\n", nreq, max_req);
-- 
2.30.0



More information about the Intel-gfx-trybot mailing list