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 <ch...@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

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

Reply via email to