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 20:31:19 +0000 (15:31 -0500)
commitf9686ceedc0a04a3309e02195184c1779f602699
tree020f44e5e03080b2daf9b75acbb0e4966c5fa3f8
parentf2efc6e60089c99c342a6b7da47f1037e06c4296
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