drm/radeon: properly filter DP1.2 4k modes on non-DP1.2 hw
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Dec 2014 14:42:10 +0000 (09:42 -0500)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:05:56 +0000 (13:05 +0000)
commit7a9e95f96d7a88374519389da34b414fd9ec4166
tree4eff691acfdf1233a082731e4929e6c8e181fb38
parent77beae171000647c787ad0ba0daa104e592f25be
drm/radeon: properly filter DP1.2 4k modes on non-DP1.2 hw

commit 410cce2a6b82299b46ff316c6384e789ce275ecb upstream.

The check was already in place in the dp mode_valid check, but
radeon_dp_get_dp_link_clock() never returned the high clock
mode_valid was checking for because that function clipped the
clock based on the hw capabilities.  Add an explicit check
in the mode_valid function.

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

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/atombios_dp.c