Before trying to measure the busyness reporting for the idle state, make
sure the gpu is actually idle and not still running any backgound system
task.

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

diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index 1a08f564b..ef61c4d40 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -264,6 +264,7 @@ single(int gem_fd, const struct intel_execution_engine2 *e, 
unsigned int flags)
        uint64_t val;
        int fd;
 
+       gem_quiescent_gpu(gem_fd);
        fd = open_pmu(I915_PMU_ENGINE_BUSY(e->class, e->instance));
 
        if (flags & TEST_BUSY)
-- 
2.20.1

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

Reply via email to