drm/amd/display: Add timing validation against dongle cap
authorEric Yang <Eric.Yang2@amd.com>
Thu, 19 Oct 2017 00:22:40 +0000 (20:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Nov 2017 22:54:16 +0000 (17:54 -0500)
commit6bffebc90c23e2341a1f8371e7b496ec94136e47
tree1580990fc2e985c806b9d78305e8db8a5875aea5
parent827f11e97dbc591f0c9619151b9a89f082e8ecb8
drm/amd/display: Add timing validation against dongle cap

For DP active dongles, the dpcd dongle caps are read but not
used to validate mode timing. This addresses this.

In particular, this change fixes light up on the HDMI 4k TV
connected through DP active dongle. Since the 4k TV defaults
to YCbCr420, which the dongle don't support.

This change does not address MST cases, a more generalized
approach must be taken for that.

Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/inc/core_status.h