[Intel-gfx] [PATCH i-g-t] i915/i915_pm_rpm: Flush pm-idle before waiting for suspend
Chris Wilson
chris at chris-wilson.co.uk
Wed Mar 4 11:13:06 UTC 2020
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 at chris-wilson.co.uk>
---
tests/i915/i915_pm_rpm.c | 1 +
1 file changed, 1 insertion(+)
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);
--
2.25.1
More information about the Intel-gfx
mailing list