From 253f8c09f9bb986938c3e7590438228996bd150b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 3 Jan 2018 18:09:07 +0000 Subject: igt/perf_pmu: Skip GEM checks for repeated spin_batch allocations 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 Reviewed-by: Arkadiusz Hiler --- tests/perf_pmu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/perf_pmu.c') diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c index 85ce1739..45e2f614 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 { -- cgit v1.2.3