• Laurent Pinchart's avatar
    drm: rcar-du: Turn vblank on/off when enabling/disabling CRTC · 0cd90a54
    Laurent Pinchart authored
    The DRM core vblank handling mechanism requires drivers to forcefully
    turn vblank reporting off when disabling the CRTC, and to restore the
    vblank reporting status when enabling the CRTC.
    
    Implement this using the drm_crtc_vblank_on/off helpers. When disabling
    vblank we must first wait for page flips to complete, so implement page
    flip completion wait as well.
    
    Finally, drm_crtc_vblank_off() must be called at startup to synchronize
    the state of the vblank core code with the hardware, which is initially
    disabled. This is performed at CRTC creation time, requiring vertical
    blanking to be initialized before creating CRTCs.
    Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
    0cd90a54
rcar_du_crtc.c 19 KB