drm/doc: clarify how to acquire required vblank event reference
Subsystems (2)
PATCH 1/1 drm/doc: clarify how to acquire required vblank event reference
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 <[email protected]>
--- drivers/gpu/drm/drm_vblank.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_vblank.c +2 -2
@@ -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)
Signature · 6 lines
2.18.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 14 lines · Stefan Agner
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 <[email protected]>--- drivers/gpu/drm/drm_vblank.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/drm_vblank.c +0
-0
drivers/gpu/drm/drm_vblank.c static void send_vblank_event(struct drm_device *dev, · line 877
Quoted 7 lines
drivers/gpu/drm/drm_vblank.c +2
-2@@ -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
Quoted 10 lines
drivers/gpu/drm/drm_vblank.c +0
-0*/ void drm_crtc_arm_vblank_event (struct drm_crtc *crtc,struct drm_pending_vblank_event *e)Signature · 6 lines
2.18.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel