diff options
author | Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> | 2018-09-27 21:19:25 -0700 |
---|---|---|
committer | Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> | 2018-09-28 13:21:01 -0700 |
commit | b91b915cf75311ddec2c41e4592ab7bf1badb272 (patch) | |
tree | 6eec9161e739f753aeabbbfd1e5ce17ecf299e4e /tests/kms_psr.c | |
parent | bdc8989328f57ec2e63a88c89a45440567c69eeb (diff) |
tests/psr: Wait for PSR exit
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 <dhinakaran.pandiyan@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'tests/kms_psr.c')
-rw-r--r-- | tests/kms_psr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_psr.c b/tests/kms_psr.c index fcc04770..ebd64d46 100644 --- a/tests/kms_psr.c +++ b/tests/kms_psr.c @@ -294,7 +294,7 @@ static void run_test(data_t *data) expected = "screen GREEN"; break; } - igt_assert(psr_active(data->debugfs_fd, false)); + igt_assert(psr_wait_exit(data->debugfs_fd)); manual(expected); } |