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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:54:03 +0000 (11:54 +0200)
commit3b8892bea9eb4f7569b64887195ee70b5cfa941c
treeef9dd9e157c8b8d680669db8e4b66234af75a3d8
parente9a8c9805f5860f7aa2119c6a2b172438cc51d5b
drm/nouveau/disp/dp: respect sink limits when selecting failsafe link configuration

[ Upstream commit 13d03e9daf70dab032c03dc172e75bb98ad899c4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c