[PATCH i-g-t] lib/igt_kms: Increase the timeout for pageflip
Nidhi Gupta
nidhi1.gupta at intel.com
Tue May 23 21:56:35 UTC 2023
Pageflip timeout is increased from 50ms to 2s.
Signed-off-by: Nidhi Gupta <nidhi1.gupta at intel.com>
---
lib/igt_kms.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index c5484148..3775f87e 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -2116,7 +2116,7 @@ unsigned int kmstest_get_vblank(int fd, int pipe, unsigned int flags)
void kmstest_wait_for_pageflip(int fd)
{
drmEventContext evctx = { .version = 2 };
- struct timeval timeout = { .tv_sec = 0, .tv_usec = 50000 };
+ struct timeval timeout = { .tv_sec = 2, .tv_usec = 0 };
fd_set fds;
int ret;
@@ -2129,7 +2129,7 @@ void kmstest_wait_for_pageflip(int fd)
} while (ret < 0 && errno == EINTR);
igt_fail_on_f(ret == 0,
- "Exceeded timeout (50ms) while waiting for a pageflip\n");
+ "Exceeded timeout (2s) while waiting for a pageflip\n");
igt_assert_f(ret == 1,
"Waiting for pageflip failed with %d from select(drmfd)\n",
--
2.39.0
More information about the Intel-gfx-trybot
mailing list