DC Patches June 2, 2023
Subsystems (5)
cover DC Patches June 2, 2023
This DC patchset brings improvements in multiple areas. In summary, we have:
* Clock optimiation for DCN 3.1.4
* Performance improvements
* Improvements on power saving
* Fix screen flash in high resolution displays
* Enable Freesync video mode by default
* Bug fixed on hang or crashes in various cases
* Improved code robustness in corner cases
Alvin Lee (2):
drm/amd/display: Refactor fast update to use new HWSS build sequence drm/amd/display: Reduce sdp bw after urgent to 90%
Aurabindo Pillai (1):
drm/amd/display: Enable Freesync Video Mode by default
Austin Zheng (1):
drm/amd/display: Filter out AC mode frequencies on DC mode systems
Charlene Liu (1):
drm/amd/display: add NULL pointer check
Daniel Miess (1):
drm/amd/display: Enable dcn314 DPP RCO
Dmytro Laktyushkin (2):
drm/amd/display: fix seamless odm transitions drm/amd/display: fix dcn315 single stream crb allocation
Leo Ma (1):
Revert "drm/amd/display: cache trace buffer size"
Max Tseng (1):
drm/amd/display: Add control flag to dc_stream_state to skip eDP BL
off/link off
Nicholas Kazlauskas (1):
drm/amd/display: Skip DPP DTO update if root clock is gated
Saaem Rizvi (1):
drm/amd/display: Wrong index type for pipe iterator
Samson Tam (1):
drm/amd/display: add ODM case when looking for first split pipe
Sridevi (1):
drm/amd/display: DSC Programming Deltas
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 +- .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 13 +- drivers/gpu/drm/amd/display/dc/core/dc.c | 307 ++++++++++++++++-- .../drm/amd/display/dc/core/dc_hw_sequencer.c | 255 +++++++++++++++ .../gpu/drm/amd/display/dc/core/dc_resource.c | 20 ++ .../gpu/drm/amd/display/dc/core/dc_stream.c | 4 +- drivers/gpu/drm/amd/display/dc/dc.h | 2 + drivers/gpu/drm/amd/display/dc/dc_stream.h | 1 + .../amd/display/dc/dce100/dce100_resource.c | 5 + .../display/dc/dce110/dce110_hw_sequencer.c | 3 +- .../amd/display/dc/dce110/dce110_resource.c | 5 + .../amd/display/dc/dce112/dce112_resource.c | 5 + .../amd/display/dc/dce120/dce120_resource.c | 1 + .../drm/amd/display/dc/dce80/dce80_resource.c | 6 + .../drm/amd/display/dc/dcn10/dcn10_resource.c | 1 + .../gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c | 29 +- .../gpu/drm/amd/display/dc/dcn20/dcn20_dsc.h | 28 ++ .../drm/amd/display/dc/dcn20/dcn20_hwseq.c | 11 + .../drm/amd/display/dc/dcn20/dcn20_resource.c | 1 + .../amd/display/dc/dcn201/dcn201_resource.c | 1 + .../drm/amd/display/dc/dcn21/dcn21_resource.c | 1 + .../gpu/drm/amd/display/dc/dcn31/dcn31_dccg.c | 8 + .../drm/amd/display/dc/dcn31/dcn31_resource.c | 1 + .../drm/amd/display/dc/dcn314/dcn314_dccg.c | 5 + .../drm/amd/display/dc/dcn314/dcn314_hwseq.c | 2 +- .../amd/display/dc/dcn314/dcn314_resource.c | 16 + .../amd/display/dc/dcn315/dcn315_resource.c | 16 +- .../amd/display/dc/dcn316/dcn316_resource.c | 1 + .../drm/amd/display/dc/dcn32/dcn32_hwseq.c | 26 +- .../drm/amd/display/dc/dcn32/dcn32_hwseq.h | 2 + .../gpu/drm/amd/display/dc/dcn32/dcn32_init.c | 1 + .../gpu/drm/amd/display/dc/dcn32/dcn32_optc.c | 2 +- .../gpu/drm/amd/display/dc/dcn32/dcn32_optc.h | 1 + .../drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 142 +++++--- .../amd/display/dc/dml/dcn321/dcn321_fpu.c | 144 +++++--- .../gpu/drm/amd/display/dc/inc/core_types.h | 11 + .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 1 + drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h | 1 + .../gpu/drm/amd/display/dc/inc/hw_sequencer.h | 126 +++++++ .../gpu/drm/amd/display/dc/link/link_dpms.c | 7 +- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 1 - .../gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 - 42 files changed, 1071 insertions(+), 156 deletions(-)
Signature · 1 line
2.40.1
PATCH 1/14 drm/amd/display: add ODM case when looking for first split pipe
From: Samson Tam <[email protected]>
[Why]
When going from ODM 2:1 single display case to max displays, second odm pipe needs to be repurposed for one of the new single displays. However, acquire_first_split_pipe() only handles MPC case and not ODM case
[How]
Add ODM conditions in acquire_first_split_pipe()
Add commit_minimal_transition_state() in commit_streams() to handle odm 2:1 exit first, and then process new streams
Handle ODM condition in commit_minimal_transition_state()
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 36 ++++++++++++++++++- .../gpu/drm/amd/display/dc/core/dc_resource.c | 20 +++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +35 -1
@@ -2008,6 +2008,9 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *creturn result; } +static bool commit_minimal_transition_state (struct dc *dc, +struct dc_state *transition_base_context); +/** * dc_commit_streams - Commit current stream state *
@@ -2029,6 +2032,8 @@ enum dc_status dc_commit_streams(struct dc *dc,struct dc_state *context;enum dc_status res =DC_OK ;struct dc_validation_set set[MAX_STREAMS ] = {0 }; +struct pipe_ctx *pipe; +bool handle_exit_odm2to1 = false;if (dc->ctx->dce_environment ==DCE_ENV_VIRTUAL_HW )return res;
@@ -2053,6 +2058,22 @@ enum dc_status dc_commit_streams(struct dc *dc, } } +/* Check for case where we are going from odm 2:1 to max +* pipe scenario. For these cases, we will call +* commit_minimal_transition_state() to exit out of odm 2:1 +* first before processing new streams +*/ +if (stream_count == dc->res_pool->pipe_count) { +for (i =0 ; i < dc->res_pool->pipe_count; i++) { + pipe = &dc->current_state->res_ctx.pipe_ctx[i]; +if (pipe->next_odm_pipe) + handle_exit_odm2to1 = true; + } + } + +if (handle_exit_odm2to1) + res =commit_minimal_transition_state (dc, dc->current_state); + context =dc_create_state (dc);if (!context) goto context_alloc_fail;
@@ -3912,6 +3933,7 @@ static bool commit_minimal_transition_state(struct dc *dc,unsigned int i, j;unsigned int pipe_in_use =0 ;bool subvp_in_use = false; +bool odm_in_use = false;if (!transition_context)return false;
@@ -3940,6 +3962,18 @@ static bool commit_minimal_transition_state(struct dc *dc, } } +/* If ODM is enabled and we are adding or removing planes from any ODM +* pipe, we must use the minimal transition. +*/ +for (i =0 ; i < dc->res_pool->pipe_count; i++) { +struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; + +if (pipe->stream && pipe->next_odm_pipe) { + odm_in_use = true; +break ; + } + } +/* When the OS add a new surface if we have been used all of pipes with odm combine * and mpc split feature, it need use commit_minimal_transition_state to transition safely. * After OS exit MPO, it will back to use odm and mpc split with all of pipes, we need
@@ -3948,7 +3982,7 @@ static bool commit_minimal_transition_state(struct dc *dc,* Reduce the scenarios to use dc_commit_state_no_check in the stage of flip. Especially * enter/exit MPO when DCN still have enough resources. */ -if (pipe_in_use != dc->res_pool->pipe_count && !subvp_in_use) { +if (pipe_in_use != dc->res_pool->pipe_count && !subvp_in_use && !odm_in_use) {dc_release_state (transition_context);return true; }
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +20 -0
@@ -1445,6 +1445,26 @@ static int acquire_first_split_pipe( split_pipe->plane_res.mpcc_inst = pool->dpps[i]->inst; split_pipe->pipe_idx = i; + split_pipe->stream = stream; +return i; + }else if (split_pipe->prev_odm_pipe && + split_pipe->prev_odm_pipe->plane_state == split_pipe->plane_state) { + split_pipe->prev_odm_pipe->next_odm_pipe = split_pipe->next_odm_pipe; +if (split_pipe->next_odm_pipe) + split_pipe->next_odm_pipe->prev_odm_pipe = split_pipe->prev_odm_pipe; + +if (split_pipe->prev_odm_pipe->plane_state) +resource_build_scaling_params (split_pipe->prev_odm_pipe); + +memset (split_pipe,0 ,sizeof (*split_pipe)); + split_pipe->stream_res.tg = pool->timing_generators[i]; + split_pipe->plane_res.hubp = pool->hubps[i]; + split_pipe->plane_res.ipp = pool->ipps[i]; + split_pipe->plane_res.dpp = pool->dpps[i]; + split_pipe->stream_res.opp = pool->opps[i]; + split_pipe->plane_res.mpcc_inst = pool->dpps[i]->inst; + split_pipe->pipe_idx = i; + split_pipe->stream = stream;return i; }
Signature · 1 line
2.40.1
PATCH 2/14 drm/amd/display: fix seamless odm transitions
In reply to Stylon WangFrom: Dmytro Laktyushkin <[email protected]>
Add missing programming and function pointers
--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 11 +++++++++++ drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.h | 1 + 3 files changed, 13 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +11 -0
@@ -1741,6 +1741,17 @@ static void dcn20_program_pipe(if (hws->funcs.setup_vupdate_interrupt) hws->funcs.setup_vupdate_interrupt (dc, pipe_ctx); + +if (hws->funcs.calculate_dccg_k1_k2_values && dc->res_pool->dccg->funcs->set_pixel_rate_div) { +unsigned int k1_div, k2_div; + + hws->funcs.calculate_dccg_k1_k2_values (pipe_ctx, &k1_div, &k2_div); + + dc->res_pool->dccg->funcs->set_pixel_rate_div ( + dc->res_pool->dccg, + pipe_ctx->stream_res.tg->inst, + k1_div, k2_div); + } }if (pipe_ctx->update_flags.bits.odm)
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c +1 -1
@@ -98,7 +98,7 @@ static void optc32_set_odm_combine(struct timing_generator *optc, int *opp_id, i optc1->opp_count = opp_cnt; } -static void optc32_set_h_timing_div_manual_mode (struct timing_generator *optc,bool manual_mode) +void optc32_set_h_timing_div_manual_mode (struct timing_generator *optc,bool manual_mode) {struct optc *optc1 =DCN10TG_FROM_TG (optc);
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.h +1 -0
@@ -179,5 +179,6 @@ SF(OTG0_OTG_DRR_CONTROL, OTG_V_TOTAL_LAST_USED_BY_DRR, mask_sh)void dcn32_timing_generator_init (struct optc *optc1); +void optc32_set_h_timing_div_manual_mode (struct timing_generator *optc,bool manual_mode);#endif /* __DC_OPTC_DCN32_H__ */
Signature · 1 line
2.40.1
PATCH 3/14 drm/amd/display: fix dcn315 single stream crb allocation
In reply to Stylon WangFrom: Dmytro Laktyushkin <[email protected]>
Change to improve avoiding asymetric crb calculations for single stream scenarios.
--- .../drm/amd/display/dc/dcn315/dcn315_resource.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c +12 -3
@@ -1628,6 +1628,10 @@ static bool allow_pixel_rate_crb(struct dc *dc, struct dc_state *context)int i;struct resource_context *res_ctx = &context->res_ctx; +/*Don't apply for single stream*/ +if (context->stream_count <2 ) +return false; +for (i =0 ; i < dc->res_pool->pipe_count; i++) {if (!res_ctx->pipe_ctx[i].stream)continue ;
@@ -1727,19 +1731,23 @@ static int dcn315_populate_dml_pipes_from_context( pipe_cnt++; } -/* Spread remaining unreserved crb evenly among all pipes, use default policy if not enough det or single pipe */ +/* Spread remaining unreserved crb evenly among all pipes*/ if (pixel_rate_crb) {for (i =0 , pipe_cnt =0 , crb_idx =0 ; i < dc->res_pool->pipe_count; i++) { pipe = &res_ctx->pipe_ctx[i];if (!pipe->stream)continue ; +/* Do not use asymetric crb if not enough for pstate support */ +if (remaining_det_segs <0 ) { + pipes[pipe_cnt].pipe.src.det_size_override =0 ; +continue ; + } +if (!pipe->top_pipe && !pipe->prev_odm_pipe) {bool split_required = pipe->stream->timing.pix_clk_100hz >=dcn_get_max_non_odm_pix_rate_100hz (&dc->dml.soc) || (pipe->plane_state && pipe->plane_state->src_rect.width >5120 ); -if (remaining_det_segs <0 || crb_pipes ==1 ) - pipes[pipe_cnt].pipe.src.det_size_override =0 ;if (remaining_det_segs >MIN_RESERVED_DET_SEGS ) pipes[pipe_cnt].pipe.src.det_size_override += (remaining_det_segs -MIN_RESERVED_DET_SEGS ) / crb_pipes + (crb_idx < (remaining_det_segs -MIN_RESERVED_DET_SEGS ) % crb_pipes ?1 :0 );
@@ -1755,6 +1763,7 @@ static int dcn315_populate_dml_pipes_from_context( }/* Convert segments into size for DML use */ pipes[pipe_cnt].pipe.src.det_size_override *=DCN3_15_CRB_SEGMENT_SIZE_KB ; + crb_idx++; } pipe_cnt++;
Signature · 1 line
2.40.1
PATCH 4/14 drm/amd/display: Refactor fast update to use new HWSS build sequence
In reply to Stylon WangFrom: Alvin Lee <[email protected]>
[Description]
- Refactor HW sequencer to use a build / execute sequence
- Also move gamma updates to become fast
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 271 ++++++++++++++++-- .../drm/amd/display/dc/core/dc_hw_sequencer.c | 255 ++++++++++++++++ drivers/gpu/drm/amd/display/dc/dc.h | 1 + .../amd/display/dc/dce100/dce100_resource.c | 5 + .../amd/display/dc/dce110/dce110_resource.c | 5 + .../amd/display/dc/dce112/dce112_resource.c | 5 + .../amd/display/dc/dce120/dce120_resource.c | 1 + .../drm/amd/display/dc/dce80/dce80_resource.c | 6 + .../drm/amd/display/dc/dcn10/dcn10_resource.c | 1 + .../drm/amd/display/dc/dcn20/dcn20_resource.c | 1 + .../amd/display/dc/dcn201/dcn201_resource.c | 1 + .../drm/amd/display/dc/dcn21/dcn21_resource.c | 1 + .../drm/amd/display/dc/dcn31/dcn31_resource.c | 1 + .../amd/display/dc/dcn315/dcn315_resource.c | 1 + .../amd/display/dc/dcn316/dcn316_resource.c | 1 + .../drm/amd/display/dc/dcn32/dcn32_hwseq.c | 24 ++ .../drm/amd/display/dc/dcn32/dcn32_hwseq.h | 2 + .../gpu/drm/amd/display/dc/dcn32/dcn32_init.c | 1 + .../gpu/drm/amd/display/dc/inc/core_types.h | 11 + .../gpu/drm/amd/display/dc/inc/hw_sequencer.h | 126 ++++++++ 20 files changed, 690 insertions(+), 30 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +241 -30
@@ -2589,15 +2589,19 @@ static enum surface_update_type det_surface_update(const struct dc *dc,elevate_update_type (&overall_type, type); } -if (update_flags->bits.input_csc_change - || update_flags->bits.coeff_reduction_change - || update_flags->bits.lut_3d - || update_flags->bits.gamma_change - || update_flags->bits.gamut_remap_change) { +if (update_flags->bits.lut_3d) { type =UPDATE_TYPE_FULL ;elevate_update_type (&overall_type, type); } +if (dc->debug.enable_legacy_fast_update && + (update_flags->bits.gamma_change || + update_flags->bits.gamut_remap_change || + update_flags->bits.input_csc_change || + update_flags->bits.coeff_reduction_change)) { + type =UPDATE_TYPE_FULL ; +elevate_update_type (&overall_type, type); + }return overall_type; }
@@ -2630,7 +2634,7 @@ static enum surface_update_type check_update_surfaces_for_stream( stream_update->integer_scaling_update) su_flags->bits.scaling =1 ; -if (stream_update->out_transfer_func) +if (dc->debug.enable_legacy_fast_update && stream_update->out_transfer_func) su_flags->bits.out_tf =1 ;if (stream_update->abm_level)
@@ -2661,6 +2665,12 @@ static enum surface_update_type check_update_surfaces_for_stream(if (stream_update->output_csc_transform || stream_update->output_color_space) su_flags->bits.out_csc =1 ; + +/* Output transfer function changes do not require bandwidth recalculation, +* so don't trigger a full update +*/ +if (!dc->debug.enable_legacy_fast_update && stream_update->out_transfer_func) + su_flags->bits.out_tf =1 ; }for (i =0 ; i < surface_count; i++) {
@@ -3412,6 +3422,163 @@ void dc_dmub_update_dirty_rect(struct dc *dc, } } +static void build_dmub_update_dirty_rect ( +struct dc *dc, +int surface_count, +struct dc_stream_state *stream, +struct dc_surface_update *srf_updates, +struct dc_state *context, +struct dc_dmub_cmd dc_dmub_cmd[], +unsigned int *dmub_cmd_count) +{ +union dmub_rb_cmd cmd; +struct dmub_cmd_update_dirty_rect_data *update_dirty_rect; +unsigned int i, j; +unsigned int panel_inst =0 ; + +if (!dc_dmub_should_send_dirty_rect_cmd (dc, stream)) +return ; + +if (!dc_get_edp_link_panel_inst (dc, stream->link, &panel_inst)) +return ; + +memset (&cmd,0x0 ,sizeof (cmd)); + cmd.update_dirty_rect.header.type =DMUB_CMD__UPDATE_DIRTY_RECT ; + cmd.update_dirty_rect.header.sub_type =0 ; + cmd.update_dirty_rect.header.payload_bytes = +sizeof (cmd.update_dirty_rect) - +sizeof (cmd.update_dirty_rect.header); + update_dirty_rect = &cmd.update_dirty_rect.update_dirty_rect_data; +for (i =0 ; i < surface_count; i++) { +struct dc_plane_state *plane_state = srf_updates[i].surface; +const struct dc_flip_addrs *flip_addr = srf_updates[i].flip_addr; + +if (!srf_updates[i].surface || !flip_addr) +continue ; +/* Do not send in immediate flip mode */ +if (srf_updates[i].surface->flip_immediate) +continue ; + update_dirty_rect->cmd_version =DMUB_CMD_PSR_CONTROL_VERSION_1 ; + update_dirty_rect->dirty_rect_count = flip_addr->dirty_rect_count; +memcpy (update_dirty_rect->src_dirty_rects, flip_addr->dirty_rects, +sizeof (flip_addr->dirty_rects)); +for (j =0 ; j < dc->res_pool->pipe_count; j++) { +struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; + +if (pipe_ctx->stream != stream) +continue ; +if (pipe_ctx->plane_state != plane_state) +continue ; + update_dirty_rect->panel_inst = panel_inst; + update_dirty_rect->pipe_idx = j; + dc_dmub_cmd[*dmub_cmd_count].dmub_cmd = cmd; + dc_dmub_cmd[*dmub_cmd_count].wait_type =DM_DMUB_WAIT_TYPE_NO_WAIT ; + (*dmub_cmd_count)++; + } + } +} + + +/** +* ************************************************************************************************ +* build_dmub_cmd_list: Build an array of DMCUB commands to be sent to DMCUB +* +* @param [in]: dc: Current DC state +* @param [in]: srf_updates: Array of surface updates +* @param [in]: surface_count: Number of surfaces that have an updated +* @param [in]: stream: Correponding stream to be updated in the current flip +* @param [in]: context: New DC state to be programmed +* +* @param [out]: dc_dmub_cmd: Array of DMCUB commands to be sent to DMCUB +* @param [out]: dmub_cmd_count: Count indicating the number of DMCUB commands in dc_dmub_cmd array +* +* This function builds an array of DMCUB commands to be sent to DMCUB. This function is required +* to build an array of commands and have them sent while the OTG lock is acquired. +* +* @return: void +* ************************************************************************************************ +*/ +static void build_dmub_cmd_list (struct dc *dc, +struct dc_surface_update *srf_updates, +int surface_count, +struct dc_stream_state *stream, +struct dc_state *context, +struct dc_dmub_cmd dc_dmub_cmd[], +unsigned int *dmub_cmd_count) +{ +// Initialize cmd count to 0 + *dmub_cmd_count =0 ; +build_dmub_update_dirty_rect (dc, surface_count, stream, srf_updates, context, dc_dmub_cmd, dmub_cmd_count); +} + +static void commit_planes_for_stream_fast (struct dc *dc, +struct dc_surface_update *srf_updates, +int surface_count, +struct dc_stream_state *stream, +struct dc_stream_update *stream_update, +enum surface_update_type update_type, +struct dc_state *context) +{ +int i, j; +struct pipe_ctx *top_pipe_to_program =NULL ; +bool should_lock_all_pipes = (update_type !=UPDATE_TYPE_FAST ); +dc_z10_restore (dc); + +for (j =0 ; j < dc->res_pool->pipe_count; j++) { +struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; + +if (!pipe_ctx->top_pipe && + !pipe_ctx->prev_odm_pipe && + pipe_ctx->stream && + pipe_ctx->stream == stream) { + top_pipe_to_program = pipe_ctx; + } + } + +if (dc->debug.visual_confirm) +for (i =0 ; i < dc->res_pool->pipe_count; i++) { +struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; + +if (pipe->stream && pipe->plane_state) +dc_update_viusal_confirm_color (dc, context, pipe); + } + +for (i =0 ; i < surface_count; i++) { +struct dc_plane_state *plane_state = srf_updates[i].surface; +/*set logical flag for lock/unlock use*/ +for (j =0 ; j < dc->res_pool->pipe_count; j++) { +struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[j]; +if (!pipe_ctx->plane_state) +continue ; +if (should_update_pipe_for_plane (context, pipe_ctx, plane_state)) +continue ; + pipe_ctx->plane_state->triplebuffer_flips = false; +if (update_type ==UPDATE_TYPE_FAST && + dc->hwss.program_triplebuffer !=NULL && + !pipe_ctx->plane_state->flip_immediate && dc->debug.enable_tri_buf) { +/*triple buffer for VUpdate only*/ + pipe_ctx->plane_state->triplebuffer_flips = true; + } + } + } +build_dmub_cmd_list (dc, + srf_updates, + surface_count, + stream, + context, + context->dc_dmub_cmd, + &(context->dmub_cmd_count)); +hwss_build_fast_sequence (dc, + context->dc_dmub_cmd, + context->dmub_cmd_count, + context->block_sequence, + &(context->block_sequence_steps), + top_pipe_to_program); +hwss_execute_sequence (dc, + context->block_sequence, + context->block_sequence_steps); +} + static void commit_planes_for_stream(struct dc *dc, struct dc_surface_update *srf_updates, int surface_count,
@@ -3449,21 +3616,6 @@ static void commit_planes_for_stream(struct dc *dc, } } -if (get_seamless_boot_stream_count (context) >0 && surface_count >0 ) { -/* Optimize seamless boot flag keeps clocks and watermarks high until -* first flip. After first flip, optimization is required to lower -* bandwidth. Important to note that it is expected UEFI will -* only light up a single display on POST, therefore we only expect -* one stream with seamless boot flag set. -*/ -if (stream->apply_seamless_boot_optimization) { - stream->apply_seamless_boot_optimization = false; - -if (get_seamless_boot_stream_count (context) ==0 ) - dc->optimized_required = true; - } - } -if (update_type ==UPDATE_TYPE_FULL ) {dc_allow_idle_optimizations (dc, false);
@@ -4067,6 +4219,43 @@ static bool commit_minimal_transition_state(struct dc *dc,return true; } +/** +* ******************************************************************************* +* update_seamless_boot_flags: Helper function for updating seamless boot flags +* +* @param [in]: dc: Current DC state +* @param [in]: context: New DC state to be programmed +* @param [in]: surface_count: Number of surfaces that have an updated +* @param [in]: stream: Correponding stream to be updated in the current flip +* +* Updating seamless boot flags do not need to be part of the commit sequence. This +* helper function will update the seamless boot flags on each flip (if required) +* outside of the HW commit sequence (fast or slow). +* +* @return: void +* ******************************************************************************* +*/ +static void update_seamless_boot_flags (struct dc *dc, +struct dc_state *context, +int surface_count, +struct dc_stream_state *stream) +{ +if (get_seamless_boot_stream_count (context) >0 && surface_count >0 ) { +/* Optimize seamless boot flag keeps clocks and watermarks high until +* first flip. After first flip, optimization is required to lower +* bandwidth. Important to note that it is expected UEFI will +* only light up a single display on POST, therefore we only expect +* one stream with seamless boot flag set. +*/ +if (stream->apply_seamless_boot_optimization) { + stream->apply_seamless_boot_optimization = false; + +if (get_seamless_boot_stream_count (context) ==0 ) + dc->optimized_required = true; + } + } +} + bool dc_update_planes_and_stream(struct dc *dc, struct dc_surface_update *srf_updates, int surface_count, struct dc_stream_state *stream,
@@ -4133,14 +4322,25 @@ bool dc_update_planes_and_stream(struct dc *dc, update_type =UPDATE_TYPE_FULL ; } -commit_planes_for_stream ( - dc, - srf_updates, - surface_count, - stream, - stream_update, - update_type, - context); +update_seamless_boot_flags (dc, context, surface_count, stream); +if (!dc->debug.enable_legacy_fast_update && update_type ==UPDATE_TYPE_FAST ) { +commit_planes_for_stream_fast (dc, + srf_updates, + surface_count, + stream, + stream_update, + update_type, + context); + }else { +commit_planes_for_stream ( + dc, + srf_updates, + surface_count, + stream, + stream_update, + update_type, + context); + }if (dc->current_state != context) {
@@ -4265,7 +4465,17 @@ void dc_commit_updates_for_stream(struct dc *dc,TRACE_DC_PIPE_STATE (pipe_ctx, i,MAX_PIPES ); - commit_planes_for_stream( +update_seamless_boot_flags (dc, context, surface_count, stream); +if (!dc->debug.enable_legacy_fast_update && update_type ==UPDATE_TYPE_FAST ) { +commit_planes_for_stream_fast (dc, + srf_updates, + surface_count, + stream, + stream_update, + update_type, + context); + }else { + commit_planes_for_stream( dc, srf_updates, surface_count,
@@ -4273,6 +4483,7 @@ void dc_commit_updates_for_stream(struct dc *dc, stream_update, update_type, context); + }/*update current_State*/ if (dc->current_state != context) {
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c +255 -0
267 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -896,6 +896,7 @@ struct dc_debug_options {bool disable_dp_plus_plus_wa;uint32_t fpo_vactive_min_active_margin_us;uint32_t fpo_vactive_max_blank_us; +bool enable_legacy_fast_update; };struct gpu_info_soc_bounding_box_v1_0 ;
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c +5 -0
@@ -401,6 +401,10 @@ static const struct dc_plane_cap plane_cap = { } }; +static const struct dc_debug_options debug_defaults = { + .enable_legacy_fast_update = true, +}; +#define CTX ctx#define REG (reg) mm ## reg
@@ -1071,6 +1075,7 @@ static bool dce100_resource_construct( dc->caps.dual_link_dvi = true; dc->caps.disable_dp_clk_share = true; dc->caps.extended_aux_timeout_support = false; + dc->debug = debug_defaults;for (i =0 ; i < pool->base.pipe_count; i++) { pool->base.timing_generators[i] =
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +5 -0
@@ -424,6 +424,10 @@ static const struct dc_plane_cap plane_cap = {64 }; +static const struct dc_debug_options debug_defaults = { + .enable_legacy_fast_update = true, +}; +static const struct dc_plane_cap underlay_plane_cap = { .type =DC_PLANE_TYPE_DCE_UNDERLAY , .per_pixel_alpha =1 ,
@@ -1368,6 +1372,7 @@ static bool dce110_resource_construct( dc->caps.min_horizontal_blanking_period =80 ; dc->caps.is_apu = true; dc->caps.extended_aux_timeout_support = false; + dc->debug = debug_defaults;/************************************************* * Create resources *
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +5 -0
@@ -429,6 +429,10 @@ static const struct dc_plane_cap plane_cap = { 64 }; +static const struct dc_debug_options debug_defaults = { + .enable_legacy_fast_update = true, +}; +#define CTX ctx#define REG (reg) mm ## reg
@@ -1239,6 +1243,7 @@ static bool dce112_resource_construct( dc->caps.min_horizontal_blanking_period =80 ; dc->caps.dual_link_dvi = true; dc->caps.extended_aux_timeout_support = false; + dc->debug = debug_defaults;/************************************************* * Create resources *
drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c +1 -0
@@ -526,6 +526,7 @@ static const struct dc_plane_cap plane_cap = {static const struct dc_debug_options debug_defaults = { .disable_clock_gate = true, + .enable_legacy_fast_update = true, }; static struct clock_source *dce120_clock_source_create(
drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c +6 -0
@@ -418,6 +418,10 @@ static const struct dc_plane_cap plane_cap = { } }; +static const struct dc_debug_options debug_defaults = { + .enable_legacy_fast_update = true, +}; +static const struct dce_dmcu_registers dmcu_regs = {DMCU_DCE80_REG_LIST () };
@@ -969,6 +973,7 @@ static bool dce80_construct( dc->caps.min_horizontal_blanking_period =80 ; dc->caps.dual_link_dvi = true; dc->caps.extended_aux_timeout_support = false; + dc->debug = debug_defaults;/************************************************* * Create resources *
@@ -1369,6 +1374,7 @@ static bool dce83_construct( dc->caps.max_cursor_size =128 ; dc->caps.min_horizontal_blanking_period =80 ; dc->caps.is_apu = true; + dc->debug = debug_defaults;/************************************************* * Create resources *
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +1 -0
@@ -553,6 +553,7 @@ static const struct dc_debug_options debug_defaults_drv = { .recovery_enabled = false, /*enable this by default after testing.*/ .max_downscale_src_width = 3840, .underflow_assert_delay_us = 0xFFFFFFFF, + .enable_legacy_fast_update = true, };static const struct dc_debug_options debug_defaults_diags = {
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +1 -0
@@ -722,6 +722,7 @@ static const struct dc_debug_options debug_defaults_drv = { .scl_reset_length10 = true, .sanity_checks = false, .underflow_assert_delay_us = 0xFFFFFFFF, + .enable_legacy_fast_update = true, };void dcn20_dpp_destroy (struct dpp **dpp)
drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c +1 -0
@@ -613,6 +613,7 @@ static const struct dc_debug_options debug_defaults_drv = { .sanity_checks = false, .underflow_assert_delay_us = 0xFFFFFFFF, .enable_tri_buf = false, + .enable_legacy_fast_update = true, };static void dcn201_dpp_destroy (struct dpp **dpp)
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c +1 -0
@@ -653,6 +653,7 @@ static const struct dc_debug_options debug_defaults_drv = { .usbc_combo_phy_reset_wa = true, .dmub_command_table = true, .use_max_lb = true, + .enable_legacy_fast_update = true, };static const struct dc_panel_config panel_config_defaults = {
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c +1 -0
@@ -887,6 +887,7 @@ static const struct dc_debug_options debug_defaults_drv = { } }, .disable_z10 = true, + .enable_legacy_fast_update = true, .enable_z9_disable_interface = true, /* Allow support for the PMFW interface for disable Z9*/ .dml_hostvm_override = DML_HOSTVM_OVERRIDE_FALSE, };
drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c +1 -0
@@ -887,6 +887,7 @@ static const struct dc_debug_options debug_defaults_drv = { .afmt = true, } }, + .enable_legacy_fast_update = true, .psr_power_use_phy_fsm = 0, };
drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.c +1 -0
@@ -884,6 +884,7 @@ static const struct dc_debug_options debug_defaults_drv = { .afmt = true, } }, + .enable_legacy_fast_update = true, };static const struct dc_panel_config panel_config_defaults = {
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c +24 -0
@@ -409,6 +409,30 @@ void dcn32_subvp_pipe_control_lock(struct dc *dc, } } +void dcn32_subvp_pipe_control_lock_fast (union block_sequence_params *params) +{ +struct dc *dc = params->subvp_pipe_control_lock_fast_params.dc; +bool lock = params->subvp_pipe_control_lock_fast_params.lock; +struct pipe_ctx *pipe_ctx = params->subvp_pipe_control_lock_fast_params.pipe_ctx; +bool subvp_immediate_flip = false; + +if (pipe_ctx && pipe_ctx->stream && pipe_ctx->plane_state) { +if (pipe_ctx->stream->mall_stream_config.type ==SUBVP_MAIN && + pipe_ctx->plane_state->flip_immediate) + subvp_immediate_flip = true; + } + +// Don't need to lock for DRR VSYNC flips -- FW will wait for DRR pending update cleared. +if (subvp_immediate_flip) { +union dmub_inbox0_cmd_lock_hw hw_lock_cmd = {0 }; + + hw_lock_cmd.bits.command_code =DMUB_INBOX0_CMD__HW_LOCK ; + hw_lock_cmd.bits.hw_lock_client =HW_LOCK_CLIENT_DRIVER ; + hw_lock_cmd.bits.lock = lock; + hw_lock_cmd.bits.should_release = !lock; +dmub_hw_lock_mgr_inbox0_cmd (dc->ctx->dmub_srv, hw_lock_cmd); + } +}bool dcn32_set_mpc_shaper_3dlut (struct pipe_ctx *pipe_ctx,const struct dc_stream_state *stream)
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.h +2 -0
@@ -84,6 +84,8 @@ void dcn32_subvp_pipe_control_lock(struct dc *dc,struct pipe_ctx *top_pipe_to_program, bool subvp_prev_use); +void dcn32_subvp_pipe_control_lock_fast (union block_sequence_params *params); +void dcn32_unblank_stream (struct pipe_ctx *pipe_ctx,struct dc_link_settings *link_settings);
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_init.c +1 -0
@@ -110,6 +110,7 @@ static const struct hw_sequencer_funcs dcn32_funcs = { .enable_phantom_streams = dcn32_enable_phantom_streams, .subvp_pipe_control_lock = dcn32_subvp_pipe_control_lock, .update_visual_confirm_color = dcn10_update_visual_confirm_color, + .subvp_pipe_control_lock_fast = dcn32_subvp_pipe_control_lock_fast, .update_phantom_vp_position = dcn32_update_phantom_vp_position, .update_dsc_pg = dcn32_update_dsc_pg, .apply_update_flags_for_phantom = dcn32_apply_update_flags_for_phantom,
drivers/gpu/drm/amd/display/dc/inc/core_types.h +11 -0
@@ -37,6 +37,7 @@#include "dwb.h" #include "mcif_wb.h" #include "panel_cntl.h" +#include "dmub/inc/dmub_cmd.h" #define MAX_CLOCK_SOURCES 7#define MAX_SVP_PHANTOM_STREAMS 2
@@ -499,6 +500,11 @@ struct bw_context {struct display_mode_lib dml; }; +struct dc_dmub_cmd { +union dmub_rb_cmd dmub_cmd; +enum dm_dmub_wait_type wait_type; +}; +/** * struct dc_state - The full description of a state requested by users */
@@ -547,6 +553,11 @@ struct dc_state {*/ struct bw_context bw_ctx; +struct block_sequence block_sequence[50 ]; +unsigned int block_sequence_steps; +struct dc_dmub_cmd dc_dmub_cmd[10 ]; +unsigned int dmub_cmd_count; +/** * @refcount: refcount reference *
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h +126 -0
142 lines not on this page · raw message
Signature · 1 line
2.40.1
PATCH 5/14 drm/amd/display: Wrong index type for pipe iterator
In reply to Stylon WangFrom: Saaem Rizvi <[email protected]>
[Why and How]
Type mismatch in index and pipe count might cause an infinite loop. code Change should resolve this issue.
--- drivers/gpu/drm/amd/display/dc/dcn314/dcn314_hwseq.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_hwseq.c +1 -1
@@ -392,7 +392,7 @@ void dcn314_set_pixels_per_cycle(struct pipe_ctx *pipe_ctx)void dcn314_resync_fifo_dccg_dio (struct dce_hwseq *hws,struct dc *dc,struct dc_state *context) { -uint8_t i; +unsigned int i;struct pipe_ctx *pipe =NULL ;bool otg_disabled[MAX_PIPES ] = {false};
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c +1 -1
@@ -1201,7 +1201,7 @@ void dcn32_set_pixels_per_cycle(struct pipe_ctx *pipe_ctx)void dcn32_resync_fifo_dccg_dio (struct dce_hwseq *hws,struct dc *dc,struct dc_state *context) { -uint8_t i; +unsigned int i;struct pipe_ctx *pipe =NULL ;bool otg_disabled[MAX_PIPES ] = {false};
Signature · 1 line
2.40.1
PATCH 6/14 drm/amd/display: Add control flag to dc_stream_state to skip eDP BL off/link off
In reply to Stylon WangFrom: Max Tseng <[email protected]>
Add control flag to dc_stream_state to skip eDP BL off/link off.
--- drivers/gpu/drm/amd/display/dc/dc_stream.h | 1 + .../gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 ++- drivers/gpu/drm/amd/display/dc/link/link_dpms.c | 7 ++++--- 3 files changed, 7 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dc_stream.h +1 -0
@@ -302,6 +302,7 @@ struct dc_stream_state {bool vblank_synchronized;bool fpo_in_use;struct mall_stream_config mall_stream_config; +bool skip_edp_power_down; };#define ABM_LEVEL_IMMEDIATE_DISABLE 255
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2 -1
@@ -1216,7 +1216,8 @@ void dce110_blank_stream(struct pipe_ctx *pipe_ctx)struct dce_hwseq *hws = link->dc->hwseq;if (link->local_sink && link->local_sink->sink_signal ==SIGNAL_TYPE_EDP ) { - hws->funcs.edp_backlight_control (link, false); +if (!stream->skip_edp_power_down) + hws->funcs.edp_backlight_control (link, false); link->dc->hwss.set_abm_immediate_disable (pipe_ctx); }
drivers/gpu/drm/amd/display/dc/link/link_dpms.c +4 -3
@@ -2207,9 +2207,8 @@ static enum dc_status enable_link(* link settings. Need to call disable first before enabling at * new link settings. */ -if (link->link_status.link_active) { +if (link->link_status.link_active && !stream->skip_edp_power_down)disable_link (link, &pipe_ctx->link_res, pipe_ctx->stream->signal); - }switch (pipe_ctx->stream->signal) {case SIGNAL_TYPE_DISPLAY_PORT :
@@ -2327,7 +2326,9 @@ void link_set_dpms_off(struct pipe_ctx *pipe_ctx) dc->hwss.disable_stream (pipe_ctx); }else { dc->hwss.disable_stream (pipe_ctx); -disable_link (pipe_ctx->stream->link, &pipe_ctx->link_res, pipe_ctx->stream->signal); +if (!pipe_ctx->stream->skip_edp_power_down) { +disable_link (pipe_ctx->stream->link, &pipe_ctx->link_res, pipe_ctx->stream->signal); + } }if (pipe_ctx->stream->timing.flags.DSC) {
Signature · 1 line
2.40.1
PATCH 7/14 drm/amd/display: Reduce sdp bw after urgent to 90%
In reply to Stylon WangFrom: Alvin Lee <[email protected]>
[Description]
Reduce expected SDP bandwidth due to poor QoS and arbitration issues on high bandwidth configs
--- drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +1 -1
@@ -147,7 +147,7 @@ struct _vcs_dpi_soc_bounding_box_st dcn3_2_soc = { .urgent_out_of_order_return_per_channel_pixel_only_bytes = 4096, .urgent_out_of_order_return_per_channel_pixel_and_vm_bytes = 4096, .urgent_out_of_order_return_per_channel_vm_only_bytes = 4096, - .pct_ideal_sdp_bw_after_urgent = 100.0, + .pct_ideal_sdp_bw_after_urgent = 90.0, .pct_ideal_fabric_bw_after_urgent = 67.0, .pct_ideal_dram_sdp_bw_after_urgent_pixel_only = 20.0, .pct_ideal_dram_sdp_bw_after_urgent_pixel_and_vm = 60.0, // N/A, for now keep as is until DML implemented
Signature · 1 line
2.40.1
PATCH 8/14 drm/amd/display: Enable Freesync Video Mode by default
In reply to Stylon WangFrom: Aurabindo Pillai <[email protected]>
Revert commit d54f66bc9c37 ("Revert drm/amd/display: Enable Freesync Video Mode by default")
Enables freesync video by default, since the hang and corruption issue on eDP panels are now fixed.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5 -7
@@ -6017,8 +6017,7 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector,*/ DRM_DEBUG_DRIVER ("No preferred mode found\n" ); }else { - recalculate_timing = amdgpu_freesync_vid_mode && -is_freesync_video_mode (&mode, aconnector); + recalculate_timing =is_freesync_video_mode (&mode, aconnector);if (recalculate_timing) { freesync_mode =get_highest_refresh_rate_mode (aconnector, false);drm_mode_copy (&saved_mode, &mode);
@@ -7201,7 +7200,7 @@ static void amdgpu_dm_connector_add_freesync_modes(struct drm_connector *connectstruct amdgpu_dm_connector *amdgpu_dm_connector =to_amdgpu_dm_connector (connector); -if (!(amdgpu_freesync_vid_mode && edid)) +if (!edid)return ;if (amdgpu_dm_connector->max_vfreq - amdgpu_dm_connector->min_vfreq >10 )
@@ -9246,8 +9245,7 @@ static int dm_update_crtc_state(struct amdgpu_display_manager *dm,* TODO: Refactor this function to allow this check to work * in all conditions. */ -if (amdgpu_freesync_vid_mode && - dm_new_crtc_state->stream && +if (dm_new_crtc_state->stream &&is_timing_unchanged_for_freesync (new_crtc_state, old_crtc_state)) goto skip_modeset;
@@ -9289,7 +9287,7 @@ static int dm_update_crtc_state(struct amdgpu_display_manager *dm, }/* Now check if we should set freesync video mode */ -if (amdgpu_freesync_vid_mode && dm_new_crtc_state->stream && +if (dm_new_crtc_state->stream &&dc_is_stream_unchanged (new_stream, dm_old_crtc_state->stream) &&dc_is_stream_scaling_unchanged (new_stream, dm_old_crtc_state->stream) && is_timing_unchanged_for_freesync(new_crtc_state,
@@ -9303,7 +9301,7 @@ static int dm_update_crtc_state(struct amdgpu_display_manager *dm,set_freesync_fixed_config (dm_new_crtc_state); goto skip_modeset; - }else if (amdgpu_freesync_vid_mode && aconnector && + }else if (aconnector &&is_freesync_video_mode (&new_crtc_state->mode, aconnector)) {struct drm_display_mode *high_mode;
Signature · 1 line
2.40.1
PATCH 9/14 drm/amd/display: add NULL pointer check
In reply to Stylon WangFrom: Charlene Liu <[email protected]>
[why]
check dmub_Srv exist or not before accessing dmub.
--- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c +2 -2
@@ -276,7 +276,7 @@ static void program_cursor_attributes( } dc->hwss.set_cursor_attribute (pipe_ctx); - +if (dc->ctx->dmub_srv)dc_send_update_cursor_info_to_dmu (pipe_ctx, i);if (dc->hwss.set_cursor_sdr_white_level) dc->hwss.set_cursor_sdr_white_level (pipe_ctx);
@@ -396,7 +396,7 @@ static void program_cursor_position( } dc->hwss.set_cursor_position (pipe_ctx); - +if (dc->ctx->dmub_srv)dc_send_update_cursor_info_to_dmu (pipe_ctx, i); }
Signature · 1 line
2.40.1
PATCH 10/14 Revert "drm/amd/display: cache trace buffer size"
In reply to Stylon WangFrom: Leo Ma <[email protected]>
Revert commit 9caa026e4e65 ("drm/amd/display: cache trace buffer size") to fix regression found in tests.
--- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 1 - drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 -- 2 files changed, 3 deletions(-)
drivers/gpu/drm/amd/display/dmub/dmub_srv.h +0 -1
@@ -428,7 +428,6 @@ struct dmub_srv {enum dmub_asic asic;void *user_ctx;uint32_t fw_version; -uint32_t trace_buffer_size;bool is_virtual;struct dmub_fb scratch_mem_fb;volatile const struct dmub_fw_state *fw_state;
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c +0 -2
@@ -427,8 +427,6 @@ dmub_srv_calc_region_info(struct dmub_srv *dmub, dmub->fw_version = fw_info->fw_version; } - dmub->trace_buffer_size = trace_buffer_size; - trace_buff->base =dmub_align (mail->top,256 ); trace_buff->top = trace_buff->base +dmub_align (trace_buffer_size,64 );
Signature · 1 line
2.40.1
PATCH 11/14 drm/amd/display: DSC Programming Deltas
In reply to Stylon WangFrom: Sridevi <[email protected]>
[Why]
Programming register delta for DSC sub-block
[How]
Change DSC, resource files for programming register delta.
--- .../gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c | 29 +++++++------------ .../gpu/drm/amd/display/dc/dcn20/dcn20_dsc.h | 28 ++++++++++++++++++ 2 files changed, 38 insertions(+), 19 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c +10 -19
@@ -30,22 +30,13 @@#include "dsc/dscc_types.h" #include "dsc/rc_calc.h" -static void dsc_log_pps (struct display_stream_compressor *dsc,struct drm_dsc_config *pps); -static bool dsc_prepare_config (const struct dsc_config *dsc_cfg,struct dsc_reg_values *dsc_reg_vals, -struct dsc_optc_config *dsc_optc_cfg); -static void dsc_init_reg_values (struct dsc_reg_values *reg_vals); -static void dsc_update_from_dsc_parameters (struct dsc_reg_values *reg_vals,const struct dsc_parameters *dsc_params);static void dsc_write_to_registers (struct display_stream_compressor *dsc,const struct dsc_reg_values *reg_vals); -static enum dsc_pixel_format dsc_dc_pixel_encoding_to_dsc_pixel_format (enum dc_pixel_encoding dc_pix_enc,bool is_ycbcr422_simple); -static enum dsc_bits_per_comp dsc_dc_color_depth_to_dsc_bits_per_comp (enum dc_color_depth );/* Object I/F functions */ -static void dsc2_get_enc_caps (struct dsc_enc_caps *dsc_enc_caps,int pixel_clock_100Hz);static void dsc2_read_state (struct display_stream_compressor *dsc,struct dcn_dsc_state *s);static bool dsc2_validate_stream (struct display_stream_compressor *dsc,const struct dsc_config *dsc_cfg);static void dsc2_set_config (struct display_stream_compressor *dsc,const struct dsc_config *dsc_cfg,struct dsc_optc_config *dsc_optc_cfg); -static bool dsc2_get_packed_pps (struct display_stream_compressor *dsc,const struct dsc_config *dsc_cfg,uint8_t *dsc_packed_pps);static void dsc2_enable (struct display_stream_compressor *dsc,int opp_pipe);static void dsc2_disable (struct display_stream_compressor *dsc);static void dsc2_disconnect (struct display_stream_compressor *dsc);
@@ -108,7 +99,7 @@ void dsc2_construct(struct dcn20_dsc *dsc,/* This returns the capabilities for a single DSC encoder engine. Number of slices and total throughput * can be doubled, tripled etc. by using additional DSC engines. */ -static void dsc2_get_enc_caps (struct dsc_enc_caps *dsc_enc_caps,int pixel_clock_100Hz) +void dsc2_get_enc_caps (struct dsc_enc_caps *dsc_enc_caps,int pixel_clock_100Hz) { dsc_enc_caps->dsc_version =0x21 ;/* v1.2 - DP spec defined it in reverse order and we kept it */
@@ -184,7 +175,7 @@ static bool dsc2_validate_stream(struct display_stream_compressor *dsc, const st } -static void dsc_config_log (struct display_stream_compressor *dsc,const struct dsc_config *config) +void dsc_config_log (struct display_stream_compressor *dsc,const struct dsc_config *config) {DC_LOG_DSC ("\tnum_slices_h %d" , config->dc_dsc_cfg.num_slices_h);DC_LOG_DSC ("\tnum_slices_v %d" , config->dc_dsc_cfg.num_slices_v);
@@ -211,7 +202,7 @@ static void dsc2_set_config(struct display_stream_compressor *dsc, const struct } -static bool dsc2_get_packed_pps (struct display_stream_compressor *dsc,const struct dsc_config *dsc_cfg,uint8_t *dsc_packed_pps) +bool dsc2_get_packed_pps (struct display_stream_compressor *dsc,const struct dsc_config *dsc_cfg,uint8_t *dsc_packed_pps) {bool is_config_ok;struct dsc_reg_values dsc_reg_vals;
@@ -291,7 +282,7 @@ static void dsc2_disconnect(struct display_stream_compressor *dsc) }/* This module's internal functions */ -static void dsc_log_pps (struct display_stream_compressor *dsc,struct drm_dsc_config *pps) +void dsc_log_pps (struct display_stream_compressor *dsc,struct drm_dsc_config *pps) {int i;int bits_per_pixel = pps->bits_per_pixel;
@@ -345,7 +336,7 @@ static void dsc_log_pps(struct display_stream_compressor *dsc, struct drm_dsc_co } } -static void dsc_override_rc_params (struct rc_params *rc,const struct dc_dsc_rc_params_override *override) +void dsc_override_rc_params (struct rc_params *rc,const struct dc_dsc_rc_params_override *override) {uint8_t i;
@@ -372,7 +363,7 @@ static void dsc_override_rc_params(struct rc_params *rc, const struct dc_dsc_rc_ rc->flatness_det_thresh = override->flatness_det_thresh; } -static bool dsc_prepare_config (const struct dsc_config *dsc_cfg,struct dsc_reg_values *dsc_reg_vals, +bool dsc_prepare_config (const struct dsc_config *dsc_cfg,struct dsc_reg_values *dsc_reg_vals,struct dsc_optc_config *dsc_optc_cfg) {struct dsc_parameters dsc_params;
@@ -463,7 +454,7 @@ static bool dsc_prepare_config(const struct dsc_config *dsc_cfg, struct dsc_reg_ } -static enum dsc_pixel_format dsc_dc_pixel_encoding_to_dsc_pixel_format (enum dc_pixel_encoding dc_pix_enc,bool is_ycbcr422_simple) +enum dsc_pixel_format dsc_dc_pixel_encoding_to_dsc_pixel_format (enum dc_pixel_encoding dc_pix_enc,bool is_ycbcr422_simple) {enum dsc_pixel_format dsc_pix_fmt =DSC_PIXFMT_UNKNOWN ;
@@ -495,7 +486,7 @@ static enum dsc_pixel_format dsc_dc_pixel_encoding_to_dsc_pixel_format(enum dc_p } -static enum dsc_bits_per_comp dsc_dc_color_depth_to_dsc_bits_per_comp (enum dc_color_depth dc_color_depth) +enum dsc_bits_per_comp dsc_dc_color_depth_to_dsc_bits_per_comp (enum dc_color_depth dc_color_depth) {enum dsc_bits_per_comp bpc =DSC_BPC_UNKNOWN ;
@@ -518,7 +509,7 @@ static enum dsc_bits_per_comp dsc_dc_color_depth_to_dsc_bits_per_comp(enum dc_co } -static void dsc_init_reg_values (struct dsc_reg_values *reg_vals) +void dsc_init_reg_values (struct dsc_reg_values *reg_vals) {int i;
@@ -574,7 +565,7 @@ static void dsc_init_reg_values(struct dsc_reg_values *reg_vals)* This is required because dscc_compute_dsc_parameters returns a modified PPS, which in turn * affects non-PPS register values. */ -static void dsc_update_from_dsc_parameters (struct dsc_reg_values *reg_vals,const struct dsc_parameters *dsc_params) +void dsc_update_from_dsc_parameters (struct dsc_reg_values *reg_vals,const struct dsc_parameters *dsc_params) {int i;
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.h +28 -0
@@ -549,6 +549,27 @@ struct dcn20_dsc {int max_image_width; }; +void dsc_config_log (struct display_stream_compressor *dsc, +const struct dsc_config *config); + +void dsc_log_pps (struct display_stream_compressor *dsc, +struct drm_dsc_config *pps); + +void dsc_override_rc_params (struct rc_params *rc, +const struct dc_dsc_rc_params_override *override); + +bool dsc_prepare_config (const struct dsc_config *dsc_cfg, +struct dsc_reg_values *dsc_reg_vals, +struct dsc_optc_config *dsc_optc_cfg); + +enum dsc_pixel_format dsc_dc_pixel_encoding_to_dsc_pixel_format (enum dc_pixel_encoding dc_pix_enc, +bool is_ycbcr422_simple); + +enum dsc_bits_per_comp dsc_dc_color_depth_to_dsc_bits_per_comp (enum dc_color_depth dc_color_depth); + +void dsc_init_reg_values (struct dsc_reg_values *reg_vals); + +void dsc_update_from_dsc_parameters (struct dsc_reg_values *reg_vals,const struct dsc_parameters *dsc_params); void dsc2_construct(struct dcn20_dsc *dsc, struct dc_context *ctx,
@@ -557,5 +578,12 @@ void dsc2_construct(struct dcn20_dsc *dsc,const struct dcn20_dsc_shift *dsc_shift, const struct dcn20_dsc_mask *dsc_mask); +void dsc2_get_enc_caps (struct dsc_enc_caps *dsc_enc_caps, +int pixel_clock_100Hz); + +bool dsc2_get_packed_pps (struct display_stream_compressor *dsc, +const struct dsc_config *dsc_cfg, +uint8_t *dsc_packed_pps); +#endif
Signature · 1 line
2.40.1
PATCH 12/14 drm/amd/display: Filter out AC mode frequencies on DC mode systems
In reply to Stylon WangFrom: Austin Zheng <[email protected]>
Why:
Limit maximum clock speeds to DC mode limits for DC mode systems How:
Store DC mode limits when individual clocks are initialized and cap the values when building the clock table
--- .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 13 +- drivers/gpu/drm/amd/display/dc/dc.h | 1 + .../drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 140 ++++++++++++----- .../amd/display/dc/dml/dcn321/dcn321_fpu.c | 144 +++++++++++++----- .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 1 + 5 files changed, 216 insertions(+), 83 deletions(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c +12 -1
@@ -182,23 +182,32 @@ void dcn32_init_clocks(struct clk_mgr *clk_mgr_base)dcn32_init_single_clock (clk_mgr,PPCLK_DCFCLK , &clk_mgr_base->bw_params->clk_table.entries[0 ].dcfclk_mhz, &num_entries_per_clk->num_dcfclk_levels); + clk_mgr_base->bw_params->dc_mode_limit.dcfclk_mhz =dcn30_smu_get_dc_mode_max_dpm_freq (clk_mgr,PPCLK_DCFCLK );/* SOCCLK */ dcn32_init_single_clock (clk_mgr,PPCLK_SOCCLK , &clk_mgr_base->bw_params->clk_table.entries[0 ].socclk_mhz, &num_entries_per_clk->num_socclk_levels); + clk_mgr_base->bw_params->dc_mode_limit.socclk_mhz =dcn30_smu_get_dc_mode_max_dpm_freq (clk_mgr,PPCLK_SOCCLK );/* DTBCLK */ -if (!clk_mgr->base.ctx->dc->debug.disable_dtb_ref_clk_switch) +if (!clk_mgr->base.ctx->dc->debug.disable_dtb_ref_clk_switch) {dcn32_init_single_clock (clk_mgr,PPCLK_DTBCLK , &clk_mgr_base->bw_params->clk_table.entries[0 ].dtbclk_mhz, &num_entries_per_clk->num_dtbclk_levels); + clk_mgr_base->bw_params->dc_mode_limit.dtbclk_mhz = +dcn30_smu_get_dc_mode_max_dpm_freq (clk_mgr,PPCLK_DTBCLK ); + }/* DISPCLK */ dcn32_init_single_clock (clk_mgr,PPCLK_DISPCLK , &clk_mgr_base->bw_params->clk_table.entries[0 ].dispclk_mhz, &num_entries_per_clk->num_dispclk_levels); num_levels = num_entries_per_clk->num_dispclk_levels; + clk_mgr_base->bw_params->dc_mode_limit.dispclk_mhz =dcn30_smu_get_dc_mode_max_dpm_freq (clk_mgr,PPCLK_DISPCLK ); +//HW recommends limit of 1950 MHz in display clock for all DCN3.2.x +if (clk_mgr_base->bw_params->dc_mode_limit.dispclk_mhz >1950 ) + clk_mgr_base->bw_params->dc_mode_limit.dispclk_mhz =1950 ; if (num_entries_per_clk->num_dcfclk_levels && num_entries_per_clk->num_dtbclk_levels &&
@@ -817,6 +826,7 @@ static void dcn32_get_memclk_states_from_smu(struct clk_mgr *clk_mgr_base)dcn32_init_single_clock (clk_mgr,PPCLK_UCLK , &clk_mgr_base->bw_params->clk_table.entries[0 ].memclk_mhz, &num_entries_per_clk->num_memclk_levels); + clk_mgr_base->bw_params->dc_mode_limit.memclk_mhz =dcn30_smu_get_dc_mode_max_dpm_freq (clk_mgr,PPCLK_UCLK );/* memclk must have at least one level */ num_entries_per_clk->num_memclk_levels = num_entries_per_clk->num_memclk_levels ? num_entries_per_clk->num_memclk_levels :1 ;
@@ -824,6 +834,7 @@ static void dcn32_get_memclk_states_from_smu(struct clk_mgr *clk_mgr_base)dcn32_init_single_clock (clk_mgr,PPCLK_FCLK , &clk_mgr_base->bw_params->clk_table.entries[0 ].fclk_mhz, &num_entries_per_clk->num_fclk_levels); + clk_mgr_base->bw_params->dc_mode_limit.fclk_mhz =dcn30_smu_get_dc_mode_max_dpm_freq (clk_mgr,PPCLK_FCLK );if (num_entries_per_clk->num_memclk_levels >= num_entries_per_clk->num_fclk_levels) { num_levels = num_entries_per_clk->num_memclk_levels;
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -897,6 +897,7 @@ struct dc_debug_options {uint32_t fpo_vactive_min_active_margin_us;uint32_t fpo_vactive_max_blank_us;bool enable_legacy_fast_update; +bool disable_dc_mode_overwrite; };struct gpu_info_soc_bounding_box_v1_0 ;
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +100 -40
195 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c +102 -42
199 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h +1 -0
@@ -233,6 +233,7 @@ struct clk_bw_params {struct clk_limit_table clk_table;struct wm_table wm_table;struct dummy_pstate_entry dummy_pstate_table[4 ]; +struct clk_limit_table_entry dc_mode_limit; };/* Public interfaces */
Signature · 1 line
2.40.1
PATCH 13/14 drm/amd/display: Skip DPP DTO update if root clock is gated
In reply to Stylon WangFrom: Nicholas Kazlauskas <[email protected]>
[Why]
Hardware implements root clock gating by utilizing the DPP DTO registers with a special case of DTO enabled, phase = 0, modulo = 1. This conflicts with our policy to always update the DPPDTO for cases where it's expected to be disabled.
The pipes unexpectedly enter a higher power state than expected because of this programming flow.
[How]
Guard the upper layers of HWSS against this hardware quirk with programming the register with an internal state flag in DCCG.
While technically acting as global state for the DCCG, HWSS shouldn't be expected to understand the hardware quirk for having DTO disabled causing more power than DTO enabled with this specific setting.
This also prevents sequencing errors from occuring in the future if we have to program DPP DTO in multiple locations.
--- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dccg.c | 8 ++++++++ drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c | 5 +++++ drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h | 1 + 3 files changed, 14 insertions(+)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dccg.c +8 -0
@@ -47,6 +47,14 @@ void dccg31_update_dpp_dto(struct dccg *dccg, int dpp_inst, int req_dppclk) {struct dcn_dccg *dccg_dcn =TO_DCN_DCCG (dccg); +if (dccg->dpp_clock_gated[dpp_inst]) { +/* +* Do not update the DPPCLK DTO if the clock is stopped. +* It is treated the same as if the pipe itself were in PG. +*/ +return ; + } +if (dccg->ref_dppclk && req_dppclk) {int ref_dppclk = dccg->ref_dppclk;int modulo, phase;
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c +5 -0
@@ -332,6 +332,9 @@ static void dccg314_dpp_root_clock_control( {struct dcn_dccg *dccg_dcn =TO_DCN_DCCG (dccg); +if (dccg->dpp_clock_gated[dpp_inst] == clock_on) +return ; +if (clock_on) {/* turn off the DTO and leave phase/modulo at max */ REG_UPDATE (DPPCLK_DTO_CTRL ,DPPCLK_DTO_ENABLE [dpp_inst],0 );
@@ -345,6 +348,8 @@ static void dccg314_dpp_root_clock_control(DPPCLK0_DTO_PHASE ,0 , DPPCLK0_DTO_MODULO, 1); } + + dccg->dpp_clock_gated[dpp_inst] = !clock_on; }static const struct dccg_funcs dccg314_funcs = {
drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h +1 -0
@@ -68,6 +68,7 @@ struct dccg {const struct dccg_funcs *funcs;int pipe_dppclk_khz[MAX_PIPES ];int ref_dppclk; +bool dpp_clock_gated[MAX_PIPES ];//int dtbclk_khz[MAX_PIPES];/* TODO needs to be removed */ //int audio_dtbclk_khz;/* TODO needs to be removed */ //int ref_dtbclk_khz;/* TODO needs to be removed */
Signature · 1 line
2.40.1
PATCH 14/14 drm/amd/display: Enable dcn314 DPP RCO
In reply to Stylon WangFrom: Daniel Miess <[email protected]>
[Why and How]
Add back debug bits enabling RCO for dcn314 as underflow associated with this change has been resolved
--- .../drm/amd/display/dc/dcn314/dcn314_resource.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c +16 -0
@@ -921,6 +921,22 @@ static const struct dc_debug_options debug_defaults_drv = { .afmt = true, } }, + + .root_clock_optimization = { + .bits = { + .dpp = true, + .dsc = false, + .hdmistream = false, + .hdmichar = false, + .dpstream = false, + .symclk32_se = false, + .symclk32_le = false, + .symclk_fe = false, + .physymclk = false, + .dpiasymclk = false, + } + }, + .seamless_boot_odm_combine = true };
Signature · 1 line
2.40.1
[Public]
Hi all,
This week this patchset was tested on the following systems:
* Lenovo ThinkBook T13s Gen4 with AMD Ryzen 5 6600U
* MSI Gaming X Trio RX 6800
* Gigabyte Gaming OC RX 7900 XTX
These systems were tested on the following display/connection types:
* eDP, (1080p 60hz [5650U]) (1920x1200 60hz [6600U]) (2560x1600 120hz[6600U])
* VGA and DVI (1680x1050 60hz [DP to VGA/DVI, USB-C to VGA/DVI])
* DP/HDMI/USB-C (1440p 170hz, 4k 60hz, 4k 144hz, 4k 240hz [Includes USB-C to DP/HDMI adapters])
* Thunderbolt (LG Ultrafine 5k)
* MST (Startech MST14DP123DP [DP to 3x DP] and 2x 4k 60Hz displays)
* DSC (with Cable Matters 101075 [DP to 3x DP] with 3x 4k60 displays, and HP Hook G2 with 1 4k60 display)
* USB 4 (Kensington SD5700T and 1x 4k 60Hz display)
* PCON (Club3D CAC-1085 and 1x 4k 144Hz display [at 4k 120HZ, as that is the max the adapter supports])
The testing is a mix of automated and manual tests. Manual testing includes (but is not limited to):
* Changing display configurations and settings
* Benchmark testing
* Feature testing (Freesync, etc.)
Automated testing includes (but is not limited to):
* Script testing (scripts to automate some of the manual checks)
* IGT testing
The patchset consists of the amd-staging-drm-next branch (Head commit - 3e54d382a51b71bd08702a10c0864a60f0108c66 -> drm/amd/amdgpu: Fix up locking etc in amdgpu_debugfs_gprwave_ioctl()) with new patches added on top of it. This branch is used for both Ubuntu and Chrome OS testing (ChromeOS on a bi-weekly basis).
Tested on Ubuntu 22.04.2
Thank you,
Dan Wheeler
Sr. Technologist | AMD
SW Display
------------------------------------------------------------------------------------------------------------------
1 Commerce Valley Dr E, Thornhill, ON L3T 7X6
amd.com
-----Original Message-----
From: Wang, Chao-kai (Stylon) <[email protected]>
Sent: Wednesday, May 31, 2023 12:48 AM
To: [email protected]
Cc: Wentland, Harry <[email protected]>; Li, Sun peng (Leo) <[email protected]>; Lakha, Bhawanpreet <[email protected]>; Siqueira, Rodrigo <[email protected]>; Pillai, Aurabindo <[email protected]>; Zhuo, Qingqing (Lillian) <[email protected]>; Li, Roman <[email protected]>; Lin, Wayne <[email protected]>; Wang, Chao-kai (Stylon) <[email protected]>; Chiu, Solomon <[email protected]>; Kotarac, Pavle <[email protected]>; Gutierrez, Agustin <[email protected]>; Wheeler, Daniel <[email protected]>
Subject: [PATCH 00/14] DC Patches June 2, 2023
This DC patchset brings improvements in multiple areas. In summary, we have:
* Clock optimiation for DCN 3.1.4
* Performance improvements
* Improvements on power saving
* Fix screen flash in high resolution displays
* Enable Freesync video mode by default
* Bug fixed on hang or crashes in various cases
* Improved code robustness in corner cases
Alvin Lee (2):
drm/amd/display: Refactor fast update to use new HWSS build sequence drm/amd/display: Reduce sdp bw after urgent to 90%
Aurabindo Pillai (1):
drm/amd/display: Enable Freesync Video Mode by default
Austin Zheng (1):
drm/amd/display: Filter out AC mode frequencies on DC mode systems
Charlene Liu (1):
drm/amd/display: add NULL pointer check
Daniel Miess (1):
drm/amd/display: Enable dcn314 DPP RCO
Dmytro Laktyushkin (2):
drm/amd/display: fix seamless odm transitions drm/amd/display: fix dcn315 single stream crb allocation
Leo Ma (1):
Revert "drm/amd/display: cache trace buffer size"
Max Tseng (1):
drm/amd/display: Add control flag to dc_stream_state to skip eDP BL
off/link off
Nicholas Kazlauskas (1):
drm/amd/display: Skip DPP DTO update if root clock is gated
Saaem Rizvi (1):
drm/amd/display: Wrong index type for pipe iterator
Samson Tam (1):
drm/amd/display: add ODM case when looking for first split pipe
Sridevi (1):
drm/amd/display: DSC Programming Deltas
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 +- .../display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c | 13 +- drivers/gpu/drm/amd/display/dc/core/dc.c | 307 ++++++++++++++++-- .../drm/amd/display/dc/core/dc_hw_sequencer.c | 255 +++++++++++++++ .../gpu/drm/amd/display/dc/core/dc_resource.c | 20 ++ .../gpu/drm/amd/display/dc/core/dc_stream.c | 4 +- drivers/gpu/drm/amd/display/dc/dc.h | 2 + drivers/gpu/drm/amd/display/dc/dc_stream.h | 1 + .../amd/display/dc/dce100/dce100_resource.c | 5 + .../display/dc/dce110/dce110_hw_sequencer.c | 3 +- .../amd/display/dc/dce110/dce110_resource.c | 5 + .../amd/display/dc/dce112/dce112_resource.c | 5 + .../amd/display/dc/dce120/dce120_resource.c | 1 + .../drm/amd/display/dc/dce80/dce80_resource.c | 6 + .../drm/amd/display/dc/dcn10/dcn10_resource.c | 1 + .../gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c | 29 +- .../gpu/drm/amd/display/dc/dcn20/dcn20_dsc.h | 28 ++ .../drm/amd/display/dc/dcn20/dcn20_hwseq.c | 11 + .../drm/amd/display/dc/dcn20/dcn20_resource.c | 1 + .../amd/display/dc/dcn201/dcn201_resource.c | 1 + .../drm/amd/display/dc/dcn21/dcn21_resource.c | 1 + .../gpu/drm/amd/display/dc/dcn31/dcn31_dccg.c | 8 + .../drm/amd/display/dc/dcn31/dcn31_resource.c | 1 + .../drm/amd/display/dc/dcn314/dcn314_dccg.c | 5 + .../drm/amd/display/dc/dcn314/dcn314_hwseq.c | 2 +- .../amd/display/dc/dcn314/dcn314_resource.c | 16 + .../amd/display/dc/dcn315/dcn315_resource.c | 16 +- .../amd/display/dc/dcn316/dcn316_resource.c | 1 + .../drm/amd/display/dc/dcn32/dcn32_hwseq.c | 26 +- .../drm/amd/display/dc/dcn32/dcn32_hwseq.h | 2 + .../gpu/drm/amd/display/dc/dcn32/dcn32_init.c | 1 + .../gpu/drm/amd/display/dc/dcn32/dcn32_optc.c | 2 +- .../gpu/drm/amd/display/dc/dcn32/dcn32_optc.h | 1 + .../drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 142 +++++--- .../amd/display/dc/dml/dcn321/dcn321_fpu.c | 144 +++++--- .../gpu/drm/amd/display/dc/inc/core_types.h | 11 + .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 1 + drivers/gpu/drm/amd/display/dc/inc/hw/dccg.h | 1 + .../gpu/drm/amd/display/dc/inc/hw_sequencer.h | 126 +++++++ .../gpu/drm/amd/display/dc/link/link_dpms.c | 7 +- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 1 - .../gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 - 42 files changed, 1071 insertions(+), 156 deletions(-)
--
2.40.1