From b91b915cf75311ddec2c41e4592ab7bf1badb272 Mon Sep 17 00:00:00 2001 From: Dhinakaran Pandiyan Date: Thu, 27 Sep 2018 21:19:25 -0700 Subject: tests/psr: Wait for PSR exit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PSR appears to not exit immediately after the test commits a page flip, give some leeway for PSR to idle. Let's set the timeout at 40 ms with a 5 ms interval between each status read. Signed-off-by: Dhinakaran Pandiyan Reviewed-by: José Roberto de Souza --- lib/igt_psr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/igt_psr.h') diff --git a/lib/igt_psr.h b/lib/igt_psr.h index 7c846afb..b9693822 100644 --- a/lib/igt_psr.h +++ b/lib/igt_psr.h @@ -29,7 +29,7 @@ #include "igt_aux.h" bool psr_wait_entry(int debugfs_fd); -bool psr_active(int debugfs_fd, bool check_active); +bool psr_wait_exit(int debugfs_fd); bool psr_enable(int debugfs_fd); bool psr_disable(int debugfs_fd); -- cgit v1.2.3