[igt-dev] [PATCH i-g-t 7/9] i915/perf_pmu: Flush idle work before waiting for suspend

Chris Wilson chris at chris-wilson.co.uk
Tue Aug 13 06:20:14 UTC 2019


Runtime suspend kicks in quicker if we flush any idle work that may been
accrued.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/perf_pmu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index d392a67d4..351090710 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -1417,6 +1417,7 @@ test_rc6(int gem_fd, unsigned int flags)
 		drmModeFreeResources(res);
 
 		igt_require(igt_setup_runtime_pm());
+		igt_drop_caches_set(gem_fd, DROP_IDLE);
 		igt_require(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED));
 
 		/*
-- 
2.23.0.rc1



More information about the igt-dev mailing list