* [PATCH] drm/doc: clarify how to acquire required vblank event reference
@ 2018-08-07 20:11 Stefan Agner
2018-08-08 8:25 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Agner @ 2018-08-07 20:11 UTC (permalink / raw)
To: gustavo, maarten.lankhorst, seanpaul, airlied; +Cc: dri-devel
As a driver write it is not entirely obvious that a reference to
the event e mentioned in the doc can be obtained via
drm_crtc_vblank_get(). Clarify how to obtain the reference.
Signed-off-by: Stefan Agner <stefan@agner.ch>
---
drivers/gpu/drm/drm_vblank.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_vblank.c b/drivers/gpu/drm/drm_vblank.c
index 28cdcf76b6f9..7610ff466ef9 100644
--- a/drivers/gpu/drm/drm_vblank.c
+++ b/drivers/gpu/drm/drm_vblank.c
@@ -873,8 +873,8 @@ static void send_vblank_event(struct drm_device *dev,
* handler by calling drm_crtc_send_vblank_event() and make sure that there's no
* possible race with the hardware committing the atomic update.
*
- * Caller must hold a vblank reference for the event @e, which will be dropped
- * when the next vblank arrives.
+ * Caller must hold a vblank reference for the event @e acquired by a
+ * drm_crtc_vblank_get(), which will be dropped when the next vblank arrives.
*/
void drm_crtc_arm_vblank_event(struct drm_crtc *crtc,
struct drm_pending_vblank_event *e)
--
2.18.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/doc: clarify how to acquire required vblank event reference
2018-08-07 20:11 [PATCH] drm/doc: clarify how to acquire required vblank event reference Stefan Agner
@ 2018-08-08 8:25 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2018-08-08 8:25 UTC (permalink / raw)
To: Stefan Agner; +Cc: airlied, dri-devel
On Tue, Aug 07, 2018 at 10:11:43PM +0200, Stefan Agner wrote:
> As a driver write it is not entirely obvious that a reference to
> the event e mentioned in the doc can be obtained via
> drm_crtc_vblank_get(). Clarify how to obtain the reference.
>
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
> drivers/gpu/drm/drm_vblank.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_vblank.c b/drivers/gpu/drm/drm_vblank.c
> index 28cdcf76b6f9..7610ff466ef9 100644
> --- a/drivers/gpu/drm/drm_vblank.c
> +++ b/drivers/gpu/drm/drm_vblank.c
> @@ -873,8 +873,8 @@ static void send_vblank_event(struct drm_device *dev,
> * handler by calling drm_crtc_send_vblank_event() and make sure that there's no
> * possible race with the hardware committing the atomic update.
> *
> - * Caller must hold a vblank reference for the event @e, which will be dropped
> - * when the next vblank arrives.
> + * Caller must hold a vblank reference for the event @e acquired by a
> + * drm_crtc_vblank_get(), which will be dropped when the next vblank arrives.
Thanks for this clarification, patch applied.
-Daniel
> */
> void drm_crtc_arm_vblank_event(struct drm_crtc *crtc,
> struct drm_pending_vblank_event *e)
> --
> 2.18.0
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-08 8:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-07 20:11 [PATCH] drm/doc: clarify how to acquire required vblank event reference Stefan Agner
2018-08-08 8:25 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox