drm/nouveau/drm/nouveau: Grab runtime PM ref in nv50_mstc_detect()
authorLyude Paul <lyude@redhat.com>
Fri, 14 Sep 2018 20:44:03 +0000 (16:44 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 5 Oct 2018 06:43:15 +0000 (16:43 +1000)
commite46368cf77f2cb6304c51d9ff5f147cfb7dc0074
treed6780c58593e2973fb528ce8af5a33b41eeb2549
parent3483f08106fcd0e8edad2b9f2fc4726d25177799
drm/nouveau/drm/nouveau: Grab runtime PM ref in nv50_mstc_detect()

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: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/disp.c