• V
    drm/i915: Don't grab crtc mutexes in intel_modeset_gem_init() · 7ad228b1
    Ville Syrjälä 提交于
    When the pipe A force quirk is applied the code will attempt to grab
    a crtc mutex during intel_modeset_setup_hw_state(). If we're already
    holding all crtc mutexes this will obviously deadlock every time.
    
    So instead of using drm_modeset_lock_all() just grab the
    mode_config.mutex. This is enough to avoid the unlocked mutex warnings
    from certain lower level functions.
    
    The regression was introduced in:
    
     commit 02747664
     Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
     Date:   Mon Dec 2 11:08:06 2013 +0200
    
        drm/i915: Take modeset locks around intel_modeset_setup_hw_state()
    Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
    Cc: stable@vger.kernel.org
    [danvet: Add cc: stable since the offending commit has that, too.]
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    7ad228b1
intel_display.c 309.7 KB