summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-08-14 15:56:34 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2015-08-14 19:14:26 -0300
commitf4db3b18841263f8f617a9f7f0aaf14fab7196d1 (patch)
tree9414fae301db1ce27626ada41c78072c2dc6d052
parent77b8af218cd2648f4d3ff671126c9d2500cade6e (diff)
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 <paulo.r.zanoni@intel.com>
-rw-r--r--tests/kms_frontbuffer_tracking.c2
1 files changed, 1 insertions, 1 deletions
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)