drm/amdgpu: fix DP mode validation
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 11 May 2016 20:21:03 +0000 (16:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 12 May 2016 19:03:49 +0000 (15:03 -0400)
commitc47b9e0944e483309d66c807d650ac8b8ceafb57
treebfdc641692207eb0dc77df3334e179123ed55111
parentff0bd441bdfbfa09d05fdba9829a0401a46635c1
drm/amdgpu: fix DP mode validation

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
drivers/gpu/drm/amd/amdgpu/atombios_dp.c