diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-07-04 17:14:11 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-02-14 21:51:24 +0000 |
commit | 5a3da5ce76718b62e797e1c9fab72734a68f4d3d (patch) | |
tree | 622315b8e0364671b05933c7152a7862222d8338 /tests/perf_pmu.c | |
parent | 0cea530214706555dc1500d2b5fc3f3683e4b5b7 (diff) |
perf_pmu: Refine requirement testing for engine-busy-stats
Now that we report whether the accurate per-engine utilisation
statistics are available (albeit via the scheduler caps) put it to to
use to selectively enable the high accuracy tests where we expect it to
work.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests/perf_pmu.c')
-rw-r--r-- | tests/perf_pmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c index c94aaf9a..fe383867 100644 --- a/tests/perf_pmu.c +++ b/tests/perf_pmu.c @@ -1624,7 +1624,7 @@ test_enable_race(int gem_fd, const struct intel_execution_engine2 *e) struct drm_i915_gem_execbuffer2 eb = { }; int fd; - igt_require(gem_has_execlists(gem_fd)); + igt_require(gem_scheduler_has_engine_busy_stats(gem_fd)); igt_require(gem_context_has_engine(gem_fd, 0, e->flags)); obj.handle = gem_create(gem_fd, 4096); @@ -1694,7 +1694,7 @@ accuracy(int gem_fd, const struct intel_execution_engine2 *e, int fd; /* Sampling platforms cannot reach the high accuracy criteria. */ - igt_require(gem_has_execlists(gem_fd)); + igt_require(gem_scheduler_has_engine_busy_stats(gem_fd)); /* Aim for approximately 100 iterations for calibration */ cycle_us = min_test_us / target_iters; |