• Rob Clark's avatar
    drm/vmwgfx: fix lock breakage · 21e88620
    Rob Clark authored
    After:
    
    commit d059f652
    Author:     Daniel Vetter <daniel.vetter@ffwll.ch>
    AuthorDate: Fri Jul 25 18:07:40 2014 +0200
    
        drm: Handle legacy per-crtc locking with full acquire ctx
    
    drm_mode_cursor_common() was switched to use drm_modeset_(un)lock_crtc()
    which uses full aquire ctx.  So dropping/reaquiring the lock via
    drm_modeset_(un)lock() directly isn't the right thing to do, as lockdep
    kindly points out.
    
    The 'FIXME's about sorting out whether vmwgfx *really* needs to lock-all
    for cursor updates still apply.
    Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
    Reviewed-by: default avatarJakob Bornecrantz <jakob@vmware.com>
    Tested-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    21e88620
vmwgfx_kms.c 55.1 KB