]> 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)
commit176a1e9964ddc2aca4d9675b52c7638a518b9fbd
tree1580990fc2e985c806b9d78305e8db8a5875aea5
parentbd14a9814fefd3beb64aec5c469403f2d730a16d
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