Re: [PATCH i-g-t 2/3] tests/perf_pmu: Simplify interrupt testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 19/12/2017 21:45, Chris Wilson wrote:
Quoting Tvrtko Ursulin (2017-12-19 15:45:42)
From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>

Rather than calibrate and emit nop batches, use a manually signalled chain
of spinners to generate the desired interrupts.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
---
-       /* Unplug the calibrated queue and wait for all the fences */
-       igt_spin_batch_free(gem_fd, spin);
-       igt_assert_eq(poll(&pfd, 1, 2 * test_duration_ms), 1);
-       close(pfd.fd);
+               pfd.fd = spin[i]->out_fence;
+               igt_spin_batch_set_timeout(spin[i], timeout_ms * 1e6);
+               igt_assert_eq(poll(&pfd, 1, 2 * timeout_ms), 1);

Oh, still with the synchronous behaviour, bleurgh.

I was attracted by the simplicity of this approach, but I can change to set incremental timeouts and keep the merged fence if you think that's better?

Regards,

Tvrtko


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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux