Message ID | 20200304111306.2438943-1-chris@chris-wilson.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [i-g-t] i915/i915_pm_rpm: Flush pm-idle before waiting for suspend | expand |
diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c index 9118e8953..db035ef86 100644 --- a/tests/i915/i915_pm_rpm.c +++ b/tests/i915/i915_pm_rpm.c @@ -964,6 +964,7 @@ static int read_entry(const char *filepath, close(fd); + igt_drop_caches_set(drm_fd, DROP_IDLE); /* flush pm-idle */ igt_assert_f(wait_for_suspended(), "After closing: %s (%s)\n", filepath + pathinfo->base, filepath);
After we may have deliberately woken the device up for reading the debugfs/sysfs file, we then wait for the system to suspend again before trying the next. Speed up the wait by first flushing the pm-idle. "Slowest file + suspend: /sys/kernel/debug/dri/0/i915_forcewake_user took 3951.33ms!" Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> --- tests/i915/i915_pm_rpm.c | 1 + 1 file changed, 1 insertion(+)