• Lyude Paul's avatar
    drm/nouveau/drm/nouveau: Grab runtime PM ref in nv50_mstc_detect() · e46368cf
    Lyude Paul authored
    While we currently grab a runtime PM ref in nouveau's normal connector
    detection code, we apparently don't do this for MST. This means if we're
    in a scenario where the GPU is suspended and userspace attempts to do a
    connector probe on an MSTC connector, the probe will fail entirely due
    to the DP aux channel and GPU not being woken up:
    
    [  316.633489] nouveau 0000:01:00.0: i2c: aux 000a: begin idle timeout ffffffff
    [  316.635713] nouveau 0000:01:00.0: i2c: aux 000a: begin idle timeout ffffffff
    [  316.637785] nouveau 0000:01:00.0: i2c: aux 000a: begin idle timeout ffffffff
    ...
    
    So, grab a runtime PM ref here.
    Signed-off-by: default avatarLyude Paul <lyude@redhat.com>
    Cc: stable@vger.kernel.org
    Reviewed-by: default avatarKarol Herbst <kherbst@redhat.com>
    Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
    e46368cf
disp.c 60.3 KB