From: Pekka Paalanen Subject: Re: [PATCH] drm/docs: More links for implicit/explicit fencing. Date: Mon, 3 Jun 2019 17:34:11 +0300 Message-ID: <20190603173411.12159113@eldfell.localdomain> References: <20190603142848.26487-1-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1419447813==" Return-path: Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 057E489244 for ; Mon, 3 Jun 2019 14:34:24 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id 16so2852902ljv.10 for ; Mon, 03 Jun 2019 07:34:23 -0700 (PDT) In-Reply-To: <20190603142848.26487-1-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Daniel Vetter Cc: Maxime Ripard , David Airlie , Sean Paul , DRI Development , Daniel Vetter List-Id: dri-devel@lists.freedesktop.org --===============1419447813== Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/7DTZUI.SQ2NMdeJuY0CeH3f"; protocol="application/pgp-signature" --Sig_/7DTZUI.SQ2NMdeJuY0CeH3f Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 3 Jun 2019 16:28:48 +0200 Daniel Vetter wrote: > drm_atomic_set_fence_for_plane() contains the main discussion from a > driver pov, link to that from more places. >=20 > Cc: Pekka Paalanen > Signed-off-by: Daniel Vetter > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Sean Paul > Cc: David Airlie > Cc: Daniel Vetter > --- > drivers/gpu/drm/drm_gem_framebuffer_helper.c | 6 ++++++ > include/drm/drm_plane.h | 2 +- > 2 files changed, 7 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/drm_gem_framebuffer_helper.c b/drivers/gpu/d= rm/drm_gem_framebuffer_helper.c > index 6fd48efe288c..6791245963c3 100644 > --- a/drivers/gpu/drm/drm_gem_framebuffer_helper.c > +++ b/drivers/gpu/drm/drm_gem_framebuffer_helper.c > @@ -284,6 +284,9 @@ EXPORT_SYMBOL_GPL(drm_gem_fb_create_with_dirty); > * There is no need for &drm_plane_helper_funcs.cleanup_fb hook for simp= le > * gem based framebuffer drivers which have their buffers always pinned = in > * memory. > + * > + * See drm_atomic_set_fence_for_plane() for a discussion of implicit and > + * explicit fencing in atomic modeset updates. > */ > int drm_gem_fb_prepare_fb(struct drm_plane *plane, > struct drm_plane_state *state) > @@ -314,6 +317,9 @@ EXPORT_SYMBOL_GPL(drm_gem_fb_prepare_fb); > * &dma_buf attached, extracts the exclusive fence and attaches it to pl= ane > * state for the atomic helper to wait on. Drivers can use this as their > * &drm_simple_display_pipe_funcs.prepare_fb callback. > + * > + * See drm_atomic_set_fence_for_plane() for a discussion of implicit and > + * explicit fencing in atomic modeset updates. > */ > int drm_gem_fb_simple_display_pipe_prepare_fb(struct drm_simple_display_= pipe *pipe, > struct drm_plane_state *plane_state) > diff --git a/include/drm/drm_plane.h b/include/drm/drm_plane.h > index 6078c700d9ba..cd5903ad33f7 100644 > --- a/include/drm/drm_plane.h > +++ b/include/drm/drm_plane.h > @@ -69,7 +69,7 @@ struct drm_plane_state { > * > * Optional fence to wait for before scanning out @fb. The core atomic > * code will set this when userspace is using explicit fencing. Do not > - * write this directly for a driver's implicit fence, use > + * write this field directly for a driver's implicit fence, use > * drm_atomic_set_fence_for_plane() to ensure that an explicit fence is > * preserved. > * Reviewed-by: Pekka Paalanen FWIW Thanks! pq --Sig_/7DTZUI.SQ2NMdeJuY0CeH3f Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAlz1L+MACgkQI1/ltBGq qqfYkg//eF44idY67Q5BTsFq48H9PFsOmNOvhcMu7uC6GV7ADvWoAZWT9Mn40beJ OlCHtL//G2do3f5UG6b2992zO4BPeufos5LAlviRlvu+RzKMejnjCwixRTglpu1P OSJNTphlYQ/gVRn3LVJvTqmkfgAw/j7pHJmOxrAsYtrTBRxJLloh2GGWCfk7kXjr xsNceV8Wi9xRPzexqpb1ZOWkuhUbc7ggldplfV2CfDvkq0lx7oUVNRyw0lfAN5CR OwG8NCKPPFoKH0FDHXzCwDS/Stds0R4RbEPw/XmyOuBXR8GOaX0SMNjwVvzM8CVk l68tmUPHz5wGrgz6B+AlVRH6fuKbFVQs/hwU86uzMjFO9s311LGEaJz4/ZYFstVa +WGkhY0HTbMitU1e2hofxxL4cWFMyjstxS33YoxZBtLMns//uV83YIkJr2+T8TL1 AVzHc27AwxkESOtOfIqX8nfe9jFTZXHrv/no3agd8h+ey3u9/GkiRT4t3EDgnkUN lA3EVN839s3pDNUFaR+dbptE0Mh3v4CYfsDVNOeOj4skf/XahjM8u1tIrv+g0KjI QmC9Y/ZvsDXE9uy82JkAwiB/gOXc1x8nESE4zbzMeVqOxezcJ2/aay/Z31Fxlk3v /TE6NywJME+7xemqHznCxxohB4EYz8ElyH2f3WiMGDKOwt6/zqI= =47is -----END PGP SIGNATURE----- --Sig_/7DTZUI.SQ2NMdeJuY0CeH3f-- --===============1419447813== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1419447813==--