[igt-dev] [PATCH i-g-t 6/8] tests/fbcon_fbt: Use psr_wait_exit() to test updates in PSR

José Roberto de Souza jose.souza at intel.com
Mon Jan 7 19:10:54 UTC 2019


It will test was is intented and faster as in the first occurence of
PSR exit it will return instead of wait the timeout of
psr_wait_entry().

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
---
 tests/kms_fbcon_fbt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index c0d1752e..3e218dc8 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -198,7 +198,7 @@ static bool psr_wait_until_enabled(int debugfs_fd)
 
 static bool psr_wait_until_update(int debugfs_fd)
 {
-	return !psr_wait_until_enabled(debugfs_fd);
+	return psr_wait_exit(debugfs_fd);
 }
 
 static void disable_features(int debugfs_fd)
-- 
2.20.1



More information about the igt-dev mailing list