• Lyude Paul's avatar
    drm/nouveau: Don't grab runtime PM refs for HPD IRQs · 09e53065
    Lyude Paul authored
    In order for suspend/resume reprobing to work, we need to be able to
    perform sideband communications during suspend/resume, along with
    runtime PM suspend/resume. In order to do so, we also need to make sure
    that nouveau doesn't bother grabbing a runtime PM reference to do so,
    since otherwise we'll start deadlocking runtime PM again.
    
    Note that we weren't able to do this before, because of the DP MST
    helpers processing UP requests from topologies in the same context as
    drm_dp_mst_hpd_irq() which would have caused us to open ourselves up to
    receiving hotplug events and deadlocking with runtime suspend/resume.
    Now that those requests are handled asynchronously, this change should
    be completely safe.
    
    Cc: Juston Li <juston.li@intel.com>
    Cc: Imre Deak <imre.deak@intel.com>
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Harry Wentland <hwentlan@amd.com>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Reviewed-by: default avatarBen Skeggs <bskeggs@redhat.com>
    Reviewed-by: default avatarSean Paul <sean@poorly.run>
    Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20191022023641.8026-10-lyude@redhat.com
    09e53065
nouveau_connector.c 42 KB