drm/nouveau/disp/dp: respect sink limits when selecting failsafe link configuration
authorBen Skeggs <bskeggs@redhat.com>
Fri, 10 May 2019 01:57:04 +0000 (11:57 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 14 May 2019 06:58:06 +0000 (16:58 +1000)
commit13d03e9daf70dab032c03dc172e75bb98ad899c4
treeea35f753043200870bd8a1b5065d737e7020bb41
parente15b682aad77f158e4af51d258ed7398036fdf8d
drm/nouveau/disp/dp: respect sink limits when selecting failsafe link configuration

Where possible, we want the failsafe link configuration (one which won't
hang the OR during modeset because of not enough bandwidth for the mode)
to also be supported by the sink.

This prevents "link rate unsupported by sink" messages when link training
fails.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c