From d074b44ab6a7ac14cc36b1dc98df5bcf73c82f95 Mon Sep 17 00:00:00 2001 From: Rodrigo Vivi Date: Mon, 2 Nov 2015 15:54:06 -0800 Subject: [PATCH] kms_frontbuffer_tracking: Increase the time we wait for PSR. With commit (drm/i915: Delay first PSR activation.) in kernel PSR might take a bit longer to really activate after the modeset. The first PSR activation after modeset is taking 5 times the panel power cycle delay time, which is 600ms for our machines here. So timeout here needs to be a minimum of 3s. However let's use 5s as the safe value in case we find machines with higher power cycle delay. Since we do a lot of assert(psr_disabled), this commit is increasing the time it takes to run the whole set of PSR tests by a few minutes, which had been reduced by commit f4db3b18841 ("kms_frontbuffer_tracking: reduce the PSR wait timeout to 2s"). Reviewed-by: Paulo Zanoni Signed-off-by: Rodrigo Vivi --- tests/kms_frontbuffer_tracking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index fbeeb4bf..8f5bda48 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -851,7 +851,7 @@ static bool fbc_wait_until_enabled(void) static bool psr_wait_until_enabled(void) { - return igt_wait(psr_is_enabled(), 2000, 1); + return igt_wait(psr_is_enabled(), 5000, 1); } #define fbc_enable() igt_set_module_param_int("enable_fbc", 1)