• Daniel Vetter's avatar
    drm: refcounting for crtc framebuffers · b0d12325
    Daniel Vetter authored
    With the prep patch to encapsulate ->set_crtc calls, this is now
    rather easy. Hooray for inconsistent semantics between ->set_crtc and
    ->page_flip, where the driver callback is supposed to update the fb
    pointer, and ->update_plane, where the drm core does the same.
    
    Also, since the drm core functions check crtc->fb before calling into
    driver callbacks, we can't really reduce the critical sections
    protected by the mode_config locks.
    Reviewed-by: default avatarRob Clark <rob@ti.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    b0d12325
drm_crtc.c 102 KB