[PATCH i-g-t] i915/i915_pm_rpm: Flush pm-idle before waiting for suspend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
---
 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

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



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux