]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c0635def17f528d5f504fa5656f41cc79beb3ae
tree1580990fc2e985c806b9d78305e8db8a5875aea5
parent820a69c861c210d7d4bddbf99d5ca6f0217de948
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