drm/amd/display: Fix hard hang if DSC is disabled
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Wed, 13 Jul 2022 17:17:41 +0000 (13:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jul 2022 13:31:01 +0000 (09:31 -0400)
commit074293dd9f61f11898f1f6e01f1560fd4c474025
tree63b3bb33f7323fdf4af04fb056ce8a59cd8a3b28
parente6c64182ed946f1cb65799de9ee75f8bcc42b2c6
drm/amd/display: Fix hard hang if DSC is disabled

We want to calculate the DTB clock values when DSC is enabled; however,
this is not the current behavior implemented in DCN32. Right now, DML is
trying to calculate DSC values even if DSC is disabled; as a result, we
can have a hard hang due to wrong clock calculation. This commit fixes
this issue by moving the calculation after the DSC check.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c