From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Daniel Vetter <daniel.vetter@intel.com>,
DRI Development <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH] drm/doc: document fallback behaviour for atomic events
Date: Tue, 07 Mar 2017 08:02:25 +0200 [thread overview]
Message-ID: <5729160.pkoDVqq6tD@avalon> (raw)
In-Reply-To: <20170307003653.11645-1-daniel.vetter@ffwll.ch>
Hi Daniel,
Thank you for the patch.
On Tuesday 07 Mar 2017 01:36:53 Daniel Vetter wrote:
> Worst case if the hw can't support completion signalling in a
> race-free way we want the event to be too late, not too early.
>
> Text adapted from a proposal from Laurent - the other side of how to
> make hw work correctly where it's possible is imo already sufficiently
> documented.
>
> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> ---
> include/drm/drm_crtc.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
> index bda9347554a1..444200017f8c 100644
> --- a/include/drm/drm_crtc.h
> +++ b/include/drm/drm_crtc.h
> @@ -204,6 +204,13 @@ struct drm_crtc_state {
> * drm_crtc_arm_vblank_event(). See the documentation of that function
> * for a detailed discussion of the constraints it needs to be used
> * safely.
> + *
> + * If the device can't notify of flip completion in a race-free way in
s/ in$//
> + * at all, then the event should be armed just after the page flip is
> + * committed. In the worst case the driver will send the event to
> + * userspace one frame too late. This doesn't allow for a real atomic
> + * update, but it should avoid tearing. The R-Car Gen2 hardware falls
> + * in this category.
I'm not sure would special-case R-Car Gen2 here :-)
> */
> struct drm_pending_vblank_event *event;
--
Regards,
Laurent Pinchart
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2017-03-07 6:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-07 0:36 [PATCH] drm/doc: document fallback behaviour for atomic events Daniel Vetter
2017-03-07 6:02 ` Laurent Pinchart [this message]
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=5729160.pkoDVqq6tD@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=daniel.vetter@ffwll.ch \
--cc=daniel.vetter@intel.com \
--cc=dri-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