drm/radeon: fix DP mode validation
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 11 May 2016 20:16:53 +0000 (16:16 -0400)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 17 May 2016 17:43:12 +0000 (13:43 -0400)
commit6bdf63fe8999171e65f6b65bf837d3c5f8571da1
treea4d7270ce98fa5560374bdbf42679804b51ff445
parent3a1b9a74de5c10995d1fd842e3d2344d4e826ae1
drm/radeon: fix DP mode validation

[ Upstream commit ff0bd441bdfbfa09d05fdba9829a0401a46635c1 ]

Switch the order of the loops to walk the rates on the top
so we exhaust all DP 1.1 rate/lane combinations before trying
DP 1.2 rate/lane combos.

This avoids selecting rates that are supported by the monitor,
but not the connector leading to valid modes getting rejected.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=95206

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/radeon/atombios_dp.c