diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-26 15:14:46 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-26 17:18:07 +0100 |
commit | 92bfb188fac1a45dca8254d64ddf5b6d5eaec9e2 (patch) | |
tree | 496a5cefa1f75e1c4e933f3d383cfef3641f3a8f | |
parent | 93639b4e52140826c24da21865e912a280f9aefb (diff) |
i915/perf_pmu: Update inter-engine semaphore detection
The kernel no longer uses semaphores between engines, unless it can do
so by preempting them with timeslices. Update the semaphore-busy to only
run when we expect semaphore usage, i.e. not on bdw/bsw.
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1939
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
-rw-r--r-- | tests/perf_pmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c index e54a0d47e..e80f730cf 100644 --- a/tests/perf_pmu.c +++ b/tests/perf_pmu.c @@ -822,6 +822,7 @@ sema_busy(int gem_fd, int fd; igt_require(gem_scheduler_has_semaphores(gem_fd)); + igt_require(gem_scheduler_has_preemption(gem_fd)); fd = open_group(gem_fd, I915_PMU_ENGINE_SEMA(e->class, e->instance), -1); |