All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] igt/kms_flip: Allow reported vblank times to be in the future
@ 2018-05-10 16:04 Chris Wilson
  2018-05-10 16:26 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Chris Wilson @ 2018-05-10 16:04 UTC (permalink / raw)
  To: igt-dev

The vblank timestamp is given for the end of the vblank, but the
hardware may report the vblank before that point (so the kernel computes
a timestamp in the future), and userspace may then see the vblank event
that says the actual start-of-scanout has yet to happen. All this is
perfectly legal and can be observed in practice.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106087
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/kms_flip.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 3d6fe948d..5b0d07cc2 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -480,13 +480,6 @@ static void check_state(const struct test_output *o, const struct event_state *e
 	if (es->count == 0)
 		return;
 
-	timersub(&es->current_ts, &es->last_received_ts, &diff);
-	igt_assert_f(timercmp(&es->last_received_ts, &es->current_ts, <),
-		     "%s ts before the %s was issued!\n"
-		     "timerdiff %ld.%06ld\n",
-		     es->name, es->name,
-		     diff.tv_sec, diff.tv_usec);
-
 	/* check only valid if no modeset happens in between, that increments by
 	 * (1 << 23) on each step. This bounding matches the one in
 	 * DRM_IOCTL_WAIT_VBLANK. */
-- 
2.17.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-05-12  9:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 16:04 [igt-dev] [PATCH i-g-t] igt/kms_flip: Allow reported vblank times to be in the future Chris Wilson
2018-05-10 16:26 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-05-10 17:17 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-05-11 13:37 ` [igt-dev] [PATCH i-g-t] " Ville Syrjälä
2018-05-11 13:50   ` Chris Wilson
2018-05-11 14:36     ` Ville Syrjälä
2018-05-12  9:10       ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.