[Intel-gfx] [PATCH igt 2/4] igt/perf_pmu: Skip GEM checks for repeated spin_batch allocations

Chris Wilson chris at chris-wilson.co.uk
Wed Jan 3 18:09:07 UTC 2018


Each call to igt_spin_batch_new_fence will do a stalling check to verify
that GEM is functional before submitting the spinning batch. In a loop,
this means that we may end up waiting for our earlier spinning
batches...

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/perf_pmu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index 85ce17394..45e2f6148 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -833,7 +833,8 @@ test_interrupts(int gem_fd)
 
 	/* Queue spinning batches. */
 	for (int i = 0; i < target; i++) {
-		spin[i] = igt_spin_batch_new_fence(gem_fd, 0, I915_EXEC_RENDER);
+		spin[i] = __igt_spin_batch_new_fence(gem_fd,
+						     0, I915_EXEC_RENDER);
 		if (i == 0) {
 			fence_fd = spin[i]->out_fence;
 		} else {
-- 
2.15.1



More information about the Intel-gfx mailing list