• K
    drm/i915: Hold mode_config->mutex during hotplug processing · a65e34c7
    Keith Packard 提交于
    Hotplug detection is a mode setting operation and must hold the
    struct_mutex or risk colliding with other mode setting operations.
    
    In particular, the display port hotplug function attempts to re-train
    the link if the monitor is supposed to be running when plugged back
    in. If that happens while mode setting is underway, the link will get
    scrambled, leaving it in an inconsistent state.
    
    This is a special case -- usually the driver mode setting entry points
    are covered by the upper level DRM code, but in this case the function
    is invoked as a work function not under the control of DRM.
    Signed-off-by: NKeith Packard <keithp@keithp.com>
    Cc: stable@kernel.org
    Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
    a65e34c7
i915_irq.c 57.2 KB