]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: create new function prototype update_dchub for dcn
authorYue Hin Lau <Yuehin.Lau@amd.com>
Tue, 24 Oct 2017 18:13:16 +0000 (14:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:23 +0000 (12:47 -0500)
dcn version of update_dchub now uses hubbub instead of hwseq

Signed-off-by: Yue Hin Lau <Yuehin.Lau@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c

index 762af17485e0b16557d6e1096da7c06d61c7773e..24c840405c8dd92b0e58ebbbb8ba62a03719a0be 100644 (file)
@@ -2493,7 +2493,10 @@ void dcn10_update_pending_status(struct pipe_ctx *pipe_ctx)
        }
 }
 
-
+void dcn10_update_dchub(struct dce_hwseq *hws, struct dchub_init_data *dh_data)
+{
+       hubbub1_update_dchub(hws->ctx->dc->res_pool->hubbub, dh_data);
+}
 
 static const struct hw_sequencer_funcs dcn10_funcs = {
        .program_gamut_remap = program_gamut_remap,
@@ -2503,6 +2506,7 @@ static const struct hw_sequencer_funcs dcn10_funcs = {
        .apply_ctx_for_surface = dcn10_apply_ctx_for_surface,
        .set_plane_config = set_plane_config,
        .update_plane_addr = dcn10_update_plane_addr,
+       .update_dchub = dcn10_update_dchub,
        .update_pending_status = dcn10_update_pending_status,
        .set_input_transfer_func = dcn10_set_input_transfer_func,
        .set_output_transfer_func = dcn10_set_output_transfer_func,
index dd834fdf7ce715f92c6abe33867ffdd37bb189d6..340ff1158c10f1229a3804d5836ecfaa8cdb1348 100644 (file)
@@ -1461,7 +1461,7 @@ static bool construct(
        pool->base.hubbub = dcn10_hubbub_create(ctx);
        if (pool->base.hubbub == NULL) {
                BREAK_TO_DEBUGGER();
-               dm_error("DC: failed to create mpc!\n");
+               dm_error("DC: failed to create hubbub!\n");
                goto fail;
        }