• D
    drm: refcounting for crtc framebuffers · b0d12325
    Daniel Vetter 提交于
    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: NRob Clark <rob@ti.com>
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    b0d12325
drm_crtc.c 102.1 KB