]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: HDMI remote sink need mode validation for Linux
authorFangzhi Zuo <Jerry.Zuo@amd.com>
Mon, 21 Sep 2020 21:52:43 +0000 (17:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Oct 2020 19:13:55 +0000 (15:13 -0400)
commit11a6ce810d72206c210f2e857f4f21ae0519c380
treedbcc70925e2bba8939b979fff6e360332dca10e7
parent99d8fb6c46979583d04181b9bb58e0533cd59a4a
drm/amd/display: HDMI remote sink need mode validation for Linux

[Why]
Currently mode validation is bypassed if remote sink exists. That
leads to mode set issue when a BW bottle neck exists in the link path,
e.g., a DP-to-HDMI converter that only supports HDMI 1.4.

Any invalid mode passed to Linux user space will cause the modeset
failure due to limitation of Linux user space implementation.

[How]
Mode validation is skipped only if in edid override. For real remote
sink, clock limit check should be done for HDMI remote sink.

Have HDMI related remote sink going through mode validation to
elimiate modes which pixel clock exceeds BW limitation.

Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c