]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add ENGINE_ID_DIGD condition check for Navi14
authorZhan Liu <zhan.liu@amd.com>
Sat, 2 Nov 2019 01:10:17 +0000 (21:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Nov 2019 21:27:47 +0000 (16:27 -0500)
commitb66a128fb1ee7de0c535cb3fccf9855cee9b22bc
treea043dc920459e9e5ae6f555915a0a9988cbb44ff
parentadd02a7980133e03e2324e988496b6ca2769e6ff
drm/amd/display: Add ENGINE_ID_DIGD condition check for Navi14

[Why]
Navi10 has 6 PHY, but Navi14 only has 5 PHY, that is
because there is no ENGINE_ID_DIGD in Navi14. Without
this patch, many HDMI related issues (e.g. HDMI S3
resume failure, HDMI pink screen on boot) will be
observed.

[How]
If "eng_id" is larger than ENGINE_ID_DIGD, then
add "eng_id" by 1.

Signed-off-by: Zhan Liu <zhan.liu@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c