[Intel-gfx] [PATCH i-g-t] i915/perf_pmu: Flush idle work before waiting for suspend
Chris Wilson
chris at chris-wilson.co.uk
Fri Aug 9 06:16:37 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 Intel-gfx
mailing list