From f4db3b18841263f8f617a9f7f0aaf14fab7196d1 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Fri, 14 Aug 2015 15:56:34 -0300 Subject: kms_frontbuffer_tracking: reduce the PSR wait timeout to 2s PSR only takes up to 100ms to be enabled, but we were using 5000ms timeouts. The problem with PSR is that the MMAP_GTT tests have to assert that PSR is disabled and stays disabled during the whole timeout, so that 5s cost is a little to high when we consider that we do the full 5s wait 74 times when running kms_frontbuffer_tracking --psr-only. By reducing to 2s we still make sure we're safe, since we're waiting 20x the time PSR needs to get reenabled, and we reduce the runtime of running kms_frontbuffer_tracking --psr-only from 14m10s to 10m29s. Signed-off-by: Paulo Zanoni --- 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 5109793a..d4dadcef 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -839,7 +839,7 @@ static bool fbc_wait_until_enabled(void) static bool psr_wait_until_enabled(void) { - return igt_wait(psr_is_enabled(), 5000, 1); + return igt_wait(psr_is_enabled(), 2000, 1); } #define fbc_enable() igt_set_module_param_int("enable_fbc", 1) -- cgit v1.2.3