[PATCH v4.1 14/22] drm: omapdrm: Keep vblank interrupt enabled while CRTC is active

Tomi Valkeinen tomi.valkeinen at ti.com
Mon Dec 19 09:06:07 UTC 2016


On 18/12/16 04:12, Laurent Pinchart wrote:
> Instead of going through a complicated private IRQ registration
> mechanism, handle the vblank interrupt activation with the standard
> drm_crtc_vblank_get() and drm_crtc_vblank_put() mechanism. This will let
> the DRM core keep the vblank interrupt enabled as long as needed to
> update the frame counter.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
> Changes since v4:
> 
> - Fix race condition between .atomic_flush() and vblank IRQ
> - Make sure WARN_ON() don't have side effects
> ---
>  drivers/gpu/drm/omapdrm/omap_crtc.c | 79 ++++++++++++++++---------------------
>  drivers/gpu/drm/omapdrm/omap_drv.h  |  1 +
>  drivers/gpu/drm/omapdrm/omap_irq.c  |  4 +-
>  3 files changed, 37 insertions(+), 47 deletions(-)

Reviewed-by: Tomi Valkeinen <tomi.valkeinen at ti.com>

 Tomi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161219/64911a0f/attachment.sig>


More information about the dri-devel mailing list