Commit e2d80575 authored by Chris Wilson's avatar Chris Wilson 🤔

igt/perf_pmu: Test for supported perf before starting test_interrupts

Check for the perf event prior to calibrating the nop batch, so that we
don't spend 4.5s before skipping.
Signed-off-by: Chris Wilson's avatarChris Wilson <>
Cc: Tvrtko Ursulin <>
Reviewed-by: Tvrtko Ursulin's avatarTvrtko Ursulin <>
parent db31e3c1
......@@ -880,11 +880,11 @@ test_interrupts(int gem_fd)
unsigned int i;
int fd;
fd = open_pmu(I915_PMU_INTERRUPTS);
cal = calibrate_nop(gem_fd, calibration_us);
sz = batch_len_us * cal / calibration_us;
fd = open_pmu(I915_PMU_INTERRUPTS);
/* Wait for idle state. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment