[i-g-t,03/13] i915/perf_pmu: Query for enhanced busyness tracking

Submitted by Chris Wilson on Feb. 4, 2019, 8:36 a.m.

Details

Message ID 20190204083614.2385-3-chris@chris-wilson.co.uk
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in IGT

Not browsing as part of any series.

Commit Message

Chris Wilson Feb. 4, 2019, 8:36 a.m.
Use the scheduler query to determine if the platform supports the
enhanced busyness tracking required for high accuracy tests.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 tests/perf_pmu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index c9881e59f..45ff5a2a2 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -1457,7 +1457,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_pmu_support(gem_fd));
 	igt_require(gem_has_engine(gem_fd, e->class, e->instance));
 
 	obj.handle = gem_create(gem_fd, 4096);
@@ -1535,7 +1535,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_pmu_support(gem_fd));
 
 	/* Aim for approximately 100 iterations for calibration */
 	cycle_us = min_test_us / target_iters;