drm/radeon: hdmi deep color modes must obey clock limit of sink.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Thu, 5 Jun 2014 13:58:24 +0000 (09:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jun 2014 02:06:50 +0000 (22:06 -0400)
commitea29286146db6c72683af76bc8297cebeeec6d13
treec4dd125dd02988879b4c131ab22198c994f205d8
parent5d02626d3167cd4214bf611362e08dfd1e98c62e
drm/radeon: hdmi deep color modes must obey clock limit of sink.

Make sure that a hdmi deep color mode can't exceed the max tmds
clock limit of a hdmi sink if such a limit is defined by edid.

If requested deep color bpc would exceed the limit given the mode
to be set, try to degrade gracefully to lower supported deep color
bpc or to standard 8 bpc if needed.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_crtc.c
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_mode.h