]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite25eab19d5fa9968065c97d0c4cc18a4e06bb214
tree63b3bb33f7323fdf4af04fb056ce8a59cd8a3b28
parent97b9a4865236622f0435ea8465e8e674113017a8
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