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>
Tue, 6 Aug 2024 14:37:44 +0000 (10:37 -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>
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c

index a9dc7cf..899e239 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);
                }
        }