]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/amd/display: Add missing DET segments programming
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Mon, 22 Jul 2024 22:53:42 +0000 (16:53 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Aug 2024 22:13:44 +0000 (18:13 -0400)
The commit 5034b935f62a ("drm/amd/display: Modify DHCUB waterwark
structures and functions") introduced a code refactor for DCHUB, but
during the merge process into amd-staging-drm-next, the program det
segments were removed. This commit adds the DET segment programming for
DCN35.

Fixes: 5034b935f62a ("drm/amd/display: Modify DHCUB waterwark structures and functions")
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
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>
(cherry picked from commit 675d9ac9d0de765531e94f9fdc536989a997a324)

drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c

index e4f7078c10269ff9c6ed452dc1f3fdcd969ca775..f115c7a285e7766c36cf2efb56d242fa0b0d8013 100644 (file)
@@ -771,6 +771,8 @@ void dcn35_init_pipes(struct dc *dc, struct dc_state *context)
                if (hubbub && hubp) {
                        if (hubbub->funcs->program_det_size)
                                hubbub->funcs->program_det_size(hubbub, hubp->inst, 0);
+                       if (hubbub->funcs->program_det_segments)
+                               hubbub->funcs->program_det_segments(hubbub, hubp->inst, 0);
                }
        }