From cab89ce2c5da684d01deff402d4e8e11441beadb Mon Sep 17 00:00:00 2001 From: Dhinakaran Pandiyan Date: Thu, 27 Sep 2018 21:19:26 -0700 Subject: tests/psr: Check for PSR entry less frequently MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We currently read debugfs every 1 ms, given that it takes about 140 ms for PSR entry on the CI machines and entry can occur at frame time intervals, bump the debugfs read interval to 20 ms. Signed-off-by: Dhinakaran Pandiyan Reviewed-by: José Roberto de Souza --- lib/igt_psr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/igt_psr.c b/lib/igt_psr.c index 355fe627..0ddfb64f 100644 --- a/lib/igt_psr.c +++ b/lib/igt_psr.c @@ -39,7 +39,7 @@ static bool psr_active(int debugfs_fd, bool check_active) bool psr_wait_entry(int debugfs_fd) { - return igt_wait(psr_active(debugfs_fd, true), 500, 1); + return igt_wait(psr_active(debugfs_fd, true), 500, 20); } bool psr_wait_exit(int debugfs_fd) -- cgit v1.2.3