From 3c1362f0a6a930f874b7533cb0a03ba9177278b4 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 5 Jan 2016 15:19:13 +0100 Subject: [PATCH] tests: Bump pageflip wait timeout to 50 ms. The default is too low for panels that are 30 fps or lower. Bump the timeout to 50 ms to prevent spurious errors on those displays. Signed-off-by: Maarten Lankhorst --- tests/kms_flip_tiling.c | 2 +- tests/kms_rotation_crc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/kms_flip_tiling.c b/tests/kms_flip_tiling.c index 653a9706..3ff99489 100644 --- a/tests/kms_flip_tiling.c +++ b/tests/kms_flip_tiling.c @@ -75,7 +75,7 @@ static void pipe_crc_free(void) static void wait_for_pageflip(int fd) { drmEventContext evctx = { .version = DRM_EVENT_CONTEXT_VERSION }; - struct timeval timeout = { .tv_sec = 0, .tv_usec = 32000 }; + struct timeval timeout = { .tv_sec = 0, .tv_usec = 50000 }; fd_set fds; int ret; diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index c3241cfa..f94f8f12 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -220,7 +220,7 @@ static void cleanup_crtc(data_t *data, igt_output_t *output, igt_plane_t *plane) static void wait_for_pageflip(int fd) { drmEventContext evctx = { .version = DRM_EVENT_CONTEXT_VERSION }; - struct timeval timeout = { .tv_sec = 0, .tv_usec = 32000 }; + struct timeval timeout = { .tv_sec = 0, .tv_usec = 50000 }; fd_set fds; int ret;