drm/amd/display: Add missing program DET segment call to pipe init
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Thu, 25 Jul 2024 22:41:38 +0000 (16:41 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2024 15:11:01 +0000 (11:11 -0400)
Add a callback that program the DET segment when initializing pipes.

Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c

index e31249d1dd22e8d33af0fabe3acb3ecdcc3034c7..3cd584419b88e7af2d1d3ef4b517361aa8fc8daf 100644 (file)
@@ -1403,6 +1403,8 @@ void dcn10_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);
                }
        }