drm/amdgpu: fix DP mode validation
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 11 May 2016 20:21:03 +0000 (16:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Nov 2016 06:46:40 +0000 (07:46 +0100)
commit227994b52c7355b6380885c86820fb3a2ac0e5c0
tree5a036a83ae9776246e95d2ac5752b48354dec746
parent2e8cfc1fe9850281e0107610d4e1fc10276188f9
drm/amdgpu: fix DP mode validation

commit c47b9e0944e483309d66c807d650ac8b8ceafb57 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/atombios_dp.c