From: Pekka Paalanen <ppaalanen@gmail.com>
To: "Michel Dänzer" <michel@daenzer.net>
Cc: Frederic Plourde <frederic.plourde@collabora.co.uk>,
dri-devel@lists.freedesktop.org,
wayland-devel@lists.freedesktop.org
Subject: Re: [PATCH weston 1/1] compositor: Abort on bad page flip timestamps
Date: Thu, 6 Nov 2014 18:42:42 +0200 [thread overview]
Message-ID: <20141106184242.4e281eb9@farn.lan> (raw)
In-Reply-To: <545B1E88.5070702@daenzer.net>
On Thu, 06 Nov 2014 16:08:56 +0900
Michel Dänzer <michel@daenzer.net> wrote:
> On 06.11.2014 03:06, Frederic Plourde wrote:
> > Many features, like animations, hardly depend on page flip timestamps
> > to work properly, but some DRM drivers do not correctly support page flip
> > timestamps (or not at all) and in that case, things start to go wrong.
> >
> > This patch adds sanity check to weston_output_finish_frame. By solely
> > verifying that page flip timestamps are monotonically increasing, we
> > make sure that :
> >
> > 1) Underlying driver is not throwing zeroed-out timestamp series at us.
> > 2) We have not mistakenly jumped backwards because of integer overflow.
> >
> > If a pathological case is detected, we gracefully exit Weston
> > with an appropriate exit code to help developers debug their drivers.
>
> That seems a bit harsh. IIRC, zero can be returned for the timestamp
> intermittently if no accurate timestamp value can be determined, e.g.
> because the CRTC is disabled. At the very least, I'd recommend
> double-checking this with Mario Kleiner (Cc'd) and the dri-devel mailing
> list.
Can that really happen if we are not doing stupid things like
attempting to flip on a disabled crtc or output?
Or can it happen, if we schedule a flip, then disable the crtc
before the flip completes? Or maybe when an output is hot-unplugged?
Is zero a special timestamp that simply cannot be produced during
normal operations, like due to clock wrap-around?
Thanks,
pq
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next parent reply other threads:[~2014-11-06 16:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1415210783-16839-1-git-send-email-frederic.plourde@collabora.co.uk>
[not found] ` <545B1E88.5070702@daenzer.net>
2014-11-06 16:42 ` Pekka Paalanen [this message]
[not found] ` <20141106184242.4e281eb9-DA5HUFbJnAM@public.gmane.org>
2014-11-07 6:04 ` [PATCH weston 1/1] compositor: Abort on bad page flip timestamps Mario Kleiner
[not found] ` <545C60E0.8090405-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-11-07 9:36 ` Pekka Paalanen
2014-11-07 9:56 ` Michel Dänzer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141106184242.4e281eb9@farn.lan \
--to=ppaalanen@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=frederic.plourde@collabora.co.uk \
--cc=michel@daenzer.net \
--cc=wayland-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox