DC Patches November 03, 2025
cover DC Patches November 03, 2025
Summary:
* Enable VRR when unsynced with the stream
* Refactor DSC cap calculation for dcn35
* Add debug log for power feature
* Fix fill latency issue
* Do not initialize LSDMA if it is not supported by dmu
Alvin Lee (1):
drm/amd/display: Only initialize LSDMA if it is supported in DMU
Chuntao Tso (1):
drm/amd/display: To support Replay frame skip mode
Dillon Varone (1):
drm/amd/display: Fix index bug for fill latency
Dominik Kaszewski (2):
drm/amd/display: Change lock descriptor values drm/amd/display: Revert in_transfer_func_change to MED
Fangzhi Zuo (1):
drm/amd/display: Refactor HDCP Status Log Format
George Shen (1):
drm/amd/display: Add interface to capture power feature status for
debug logging
Ian Chen (1):
drm/amd/display: Add new SMART POWER OLED interfaces
Ivan Lipski (1):
drm/amd/display: Allow VRR params change if unsynced with the stream
Leo Chen (1):
drm/amd/display: dynamically clock gate before and after prefetch
Mohit Bawa (1):
drm/amd/display: refactor DSC cap calculation for dcn35
Taimur Hassan (2):
drm/amd/display: [FW Promotion] Release 0.1.35.0 drm/amd/display: Promote DC to 3.2.358
.../amd/display/amdgpu_dm/amdgpu_dm_replay.c | 2 +- .../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 30 +++ drivers/gpu/drm/amd/display/dc/core/dc.c | 242 ++++++++++++------ drivers/gpu/drm/amd/display/dc/dc.h | 28 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 3 + drivers/gpu/drm/amd/display/dc/dc_types.h | 6 + .../gpu/drm/amd/display/dc/dce/dmub_replay.c | 7 +- .../gpu/drm/amd/display/dc/dce/dmub_replay.h | 5 +- .../src/dml2_core/dml2_core_dcn4_calcs.c | 2 +- .../drm/amd/display/dc/dsc/dcn35/dcn35_dsc.c | 31 ++- .../display/dc/hubbub/dcn31/dcn31_hubbub.c | 7 +- .../display/dc/hubbub/dcn35/dcn35_hubbub.c | 52 +++- .../display/dc/hubbub/dcn35/dcn35_hubbub.h | 1 + .../gpu/drm/amd/display/dc/inc/hw/dchubbub.h | 2 + .../gpu/drm/amd/display/dc/inc/link_service.h | 4 +- .../link/protocols/link_edp_panel_control.c | 17 +- .../link/protocols/link_edp_panel_control.h | 4 +- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 10 +- .../amd/display/modules/freesync/freesync.c | 11 + .../drm/amd/display/modules/hdcp/hdcp_log.c | 124 +-------- .../drm/amd/display/modules/inc/mod_hdcp.h | 126 ++++----- .../amd/display/modules/power/power_helpers.c | 30 +++ .../amd/display/modules/power/power_helpers.h | 5 + 23 files changed, 464 insertions(+), 285 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/13 drm/amd/display: Only initialize LSDMA if it is supported in DMU
From: Alvin Lee <[email protected]>
Need to check caps flag to determine whether LSDMA is supported in DMU
--- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 3 +++ drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 1 + 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c +3 -0
@@ -2084,6 +2084,9 @@ bool dmub_lsdma_init(struct dc_dmub_srv *dc_dmub_srv)struct dmub_cmd_lsdma_data *lsdma_data = &cmd.lsdma.lsdma_data;bool result; +if (!dc_dmub_srv->dmub->feature_caps.lsdma_support_in_dmu) +return false; +memset (&cmd,0 ,sizeof (cmd)); cmd.cmd_common.header.type =DMUB_CMD__LSDMA ;
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +1 -0
@@ -721,6 +721,7 @@ struct dmub_feature_caps {uint8_t replay_supported;uint8_t replay_reserved[3 ];uint8_t abm_aux_backlight_support; +uint8_t lsdma_support_in_dmu; };struct dmub_visual_confirm_color {
Signature · 1 line
2.43.0
PATCH 3/13 drm/amd/display: Allow VRR params change if unsynced with the stream
In reply to Fangzhi ZuoFrom: Ivan Lipski <[email protected]>
[Why]
When changing resolution (e.g., 4K → FHD) in mirror/clone mode with certain monitors, the monitor blanks and loses connection due to an early exit in vrr_settings_require_update(). The function only checks if VRR state, fixed refresh target, or min/max refresh rate range has changed.
During mode changes, if the calculated min/max refresh values remain the same even though the stream's v_total changed, the function returns early without updating vrr_params.adjust.v_total_min/max, leaving the monitor's VRR timing parameters unsynced with the new mode, causing it to blank out.
[How]
Explicitly adjust VRR parameters to the stream's nominal v_total when VRR is supported, but inactive.
--- .../gpu/drm/amd/display/modules/freesync/freesync.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/gpu/drm/amd/display/modules/freesync/freesync.c +11 -0
@@ -1260,6 +1260,17 @@ void mod_freesync_handle_v_update(struct mod_freesync *mod_freesync,update_v_total_for_static_ramp ( core_freesync, stream, in_out_vrr); } + +/* +* If VRR is inactive, set vtotal min and max to nominal vtotal +*/ +if (in_out_vrr->state ==VRR_STATE_INACTIVE ) { + in_out_vrr->adjust.v_total_min = +mod_freesync_calc_v_total_from_refresh (stream, + in_out_vrr->max_refresh_in_uhz); + in_out_vrr->adjust.v_total_max = in_out_vrr->adjust.v_total_min; +return ; + } } unsigned long long mod_freesync_calc_nominal_field_rate(
Signature · 1 line
2.43.0
PATCH 4/13 drm/amd/display: Add interface to capture power feature status for debug logging
In reply to Fangzhi ZuoFrom: George Shen <[email protected]>
[Why]
The status of various power features is often important information when debugging certain issues, such as underflow. This info helps to narrow down the potential sources of errors.
[How]
Add dc interface to capture power feature enablement status.
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 7 +++++++ drivers/gpu/drm/amd/display/dc/dc.h | 14 ++++++++++++++ 2 files changed, 21 insertions(+)
drivers/gpu/drm/amd/display/dc/core/dc.c +7 -0
@@ -6421,6 +6421,13 @@ void dc_get_underflow_debug_data_for_otg(struct dc *dc, int primary_otg_inst, dc->hwss.get_underflow_debug_data (dc, tg, out_data); } +void dc_get_power_feature_status (struct dc *dc,int primary_otg_inst, +struct power_features *out_data) +{ + out_data->uclk_p_state = dc->current_state->clk_mgr->clks.p_state_change_support; + out_data->fams = dc->current_state->bw_ctx.bw.dcn.clk.fw_based_mclk_switching; +} +void dc_log_preos_dmcub_info (const struct dc *dc) {dc_dmub_srv_log_preos_dmcub_info (dc->ctx->dmub_srv);
drivers/gpu/drm/amd/display/dc/dc.h +14 -0
@@ -1865,6 +1865,18 @@ struct dc_underflow_debug_data {struct dcn_dccg_reg_state *dccg_reg_state[MAX_PIPES ]; }; +struct power_features { +bool ips; +bool rcg; +bool replay; +bool dds; +bool sprs; +bool psr; +bool fams; +bool mpo; +bool uclk_p_state; +}; +/* * Create a new surface with default parameters; */
@@ -2772,4 +2784,6 @@ bool dc_can_clear_cursor_limit(const struct dc *dc);*/ void dc_get_underflow_debug_data_for_otg (struct dc *dc,int primary_otg_inst,struct dc_underflow_debug_data *out_data); +void dc_get_power_feature_status (struct dc *dc,int primary_otg_inst,struct power_features *out_data); +#endif /* DC_INTERFACE_H_ */
Signature · 1 line
2.43.0
PATCH 7/13 drm/amd/display: Change lock descriptor values
In reply to Fangzhi ZuoFrom: Dominik Kaszewski <[email protected]>
[Why]
Review of usage scenarios requires dc_lock_descriptor modification.
[How]
Replace STATE/LINK/STREAM/PLANE with GLOBAL/STREAM/LINK, where the first means all streams to be locked.
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 146 +++++++++++------------ drivers/gpu/drm/amd/display/dc/dc.h | 5 +- 2 files changed, 72 insertions(+), 79 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +70 -76
@@ -2670,41 +2670,42 @@ static struct surface_update_descriptor get_plane_info_update_type(const structif (!u->plane_info)return update_type; -elevate_update_type (&update_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_PLANE ); +// `plane_info` present means at least `STREAM` lock is required +elevate_update_type (&update_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM );if (u->plane_info->color_space != u->surface->color_space) { update_flags->bits.color_space_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STREAM ); }if (u->plane_info->horizontal_mirror != u->surface->horizontal_mirror) { update_flags->bits.horizontal_mirror_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STREAM ); }if (u->plane_info->rotation != u->surface->rotation) { update_flags->bits.rotation_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); }if (u->plane_info->format != u->surface->format) { update_flags->bits.pixel_format_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); }if (u->plane_info->stereo_format != u->surface->stereo_format) { update_flags->bits.stereo_format_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); }if (u->plane_info->per_pixel_alpha != u->surface->per_pixel_alpha) { update_flags->bits.per_pixel_alpha_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STREAM ); }if (u->plane_info->global_alpha_value != u->surface->global_alpha_value) { update_flags->bits.global_alpha_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STREAM ); } if (u->plane_info->dcc.enable != u->surface->dcc.enable
@@ -2716,7 +2717,7 @@ static struct surface_update_descriptor get_plane_info_update_type(const struct* recalculate stutter period. */ update_flags->bits.dcc_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); } if (resource_pixel_format_to_bpp(u->plane_info->format) !=
@@ -2725,34 +2726,34 @@ static struct surface_update_descriptor get_plane_info_update_type(const struct* and DML calculation */ update_flags->bits.bpp_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); }if (u->plane_info->plane_size.surface_pitch != u->surface->plane_size.surface_pitch || u->plane_info->plane_size.chroma_pitch != u->surface->plane_size.chroma_pitch) { update_flags->bits.plane_size_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STREAM ); }const struct dc_tiling_info *tiling = &u->plane_info->tiling_info;if (memcmp (tiling, &u->surface->tiling_info,sizeof (*tiling)) !=0 ) { update_flags->bits.swizzle_change =1 ; -elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STREAM );switch (tiling->gfxversion) {case DcGfxVersion9:case DcGfxVersion10:case DcGfxVersion11:if (tiling->gfx9.swizzle !=DC_SW_LINEAR ) { -elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); update_flags->bits.bandwidth_change =1 ; +elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); }break ;case DcGfxAddr3:if (tiling->gfx_addr3.swizzle !=DC_ADDR3_SW_LINEAR ) { -elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); update_flags->bits.bandwidth_change =1 ; +elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); }break ;case DcGfxVersion7:
@@ -2777,7 +2778,8 @@ static struct surface_update_descriptor get_scaling_info_update_type(if (!u->scaling_info)return update_type; -elevate_update_type (&update_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_PLANE ); +// `scaling_info` present means at least `STREAM` lock is required +elevate_update_type (&update_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM );if (u->scaling_info->src_rect.width != u->surface->src_rect.width || u->scaling_info->src_rect.height != u->surface->src_rect.height
@@ -2788,6 +2790,7 @@ static struct surface_update_descriptor get_scaling_info_update_type( || u->scaling_info->scaling_quality.integer_scaling != u->surface->scaling_quality.integer_scaling) { update_flags->bits.scaling_change =1 ; +elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL );if (u->scaling_info->src_rect.width > u->surface->src_rect.width || u->scaling_info->src_rect.height > u->surface->src_rect.height)
@@ -2813,17 +2816,10 @@ static struct surface_update_descriptor get_scaling_info_update_type( || u->scaling_info->clip_rect.x != u->surface->clip_rect.x || u->scaling_info->clip_rect.y != u->surface->clip_rect.y || u->scaling_info->dst_rect.x != u->surface->dst_rect.x - || u->scaling_info->dst_rect.y != u->surface->dst_rect.y) + || u->scaling_info->dst_rect.y != u->surface->dst_rect.y) { +elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STREAM ); update_flags->bits.position_change =1 ; - -/* process every update flag before returning */ -if (update_flags->bits.clock_change - || update_flags->bits.bandwidth_change - || update_flags->bits.scaling_change) -elevate_update_type (&update_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); - -if (update_flags->bits.position_change) -elevate_update_type (&update_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STATE ); + }return update_type; }
@@ -2837,7 +2833,7 @@ static struct surface_update_descriptor det_surface_update(if (u->surface->force_full_update) { update_flags->raw =0xFFFFFFFF ; -elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL );return overall_type; }
@@ -2852,76 +2848,69 @@ static struct surface_update_descriptor det_surface_update(if (u->flip_addr) { update_flags->bits.addr_update =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); +if (u->flip_addr->address.tmz_surface != u->surface->address.tmz_surface) { update_flags->bits.tmz_changed =1 ; -elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); } } -if (u->in_transfer_func) +if (u->in_transfer_func) { update_flags->bits.in_transfer_func_change =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); + } -if (u->input_csc_color_matrix) +if (u->input_csc_color_matrix) { update_flags->bits.input_csc_change =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); + } -if (u->coeff_reduction_factor) +if (u->coeff_reduction_factor) { update_flags->bits.coeff_reduction_change =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); + } -if (u->gamut_remap_matrix) +if (u->gamut_remap_matrix) { update_flags->bits.gamut_remap_change =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); + } -if (u->blend_tf) +if (u->blend_tf || (u->gamma &&dce_use_lut (u->plane_info ? u->plane_info->format : u->surface->format))) { update_flags->bits.gamma_change =1 ; - -if (u->gamma) { -enum surface_pixel_format format =SURFACE_PIXEL_FORMAT_GRPH_BEGIN ; - -if (u->plane_info) - format = u->plane_info->format; -else - format = u->surface->format; - -if (dce_use_lut (format)) - update_flags->bits.gamma_change =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); } -if (u->lut3d_func || u->func_shaper) +if (u->lut3d_func || u->func_shaper) { update_flags->bits.lut_3d =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); + }if (u->hdr_mult.value)if (u->hdr_mult.value != u->surface->hdr_mult.value) { - update_flags->bits.hdr_mult =1 ;// TODO: Should be fast? -elevate_update_type (&overall_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STATE ); + update_flags->bits.hdr_mult =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STREAM ); }if (u->sdr_white_level_nits)if (u->sdr_white_level_nits != u->surface->sdr_white_level_nits) { - update_flags->bits.sdr_white_level_nits =1 ;// TODO: Should be fast? -elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); + update_flags->bits.sdr_white_level_nits =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); }if (u->cm2_params) { -if ((u->cm2_params->component_settings.shaper_3dlut_setting - != u->surface->mcm_shaper_3dlut_setting) - || (u->cm2_params->component_settings.lut1d_enable - != u->surface->mcm_lut1d_enable)) - update_flags->bits.mcm_transfer_function_enable_change =1 ; -if (u->cm2_params->cm2_luts.lut3d_data.lut3d_src - != u->surface->mcm_luts.lut3d_data.lut3d_src) +if (u->cm2_params->component_settings.shaper_3dlut_setting != u->surface->mcm_shaper_3dlut_setting + || u->cm2_params->component_settings.lut1d_enable != u->surface->mcm_lut1d_enable + || u->cm2_params->cm2_luts.lut3d_data.lut3d_src != u->surface->mcm_luts.lut3d_data.lut3d_src) { update_flags->bits.mcm_transfer_function_enable_change =1 ; - } -if (update_flags->bits.in_transfer_func_change) { -// TODO: Fast? -elevate_update_type (&overall_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); + } }if (update_flags->bits.lut_3d && u->surface->mcm_luts.lut3d_data.lut3d_src !=DC_CM2_TRANSFER_FUNC_SOURCE_VIDMEM ) { -elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); - } -if (update_flags->bits.mcm_transfer_function_enable_change) { -elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); } if (check_config->enable_legacy_fast_update &&
@@ -2929,7 +2918,7 @@ static struct surface_update_descriptor det_surface_update( update_flags->bits.gamut_remap_change || update_flags->bits.input_csc_change || update_flags->bits.coeff_reduction_change)) { -elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); }return overall_type; }
@@ -2966,19 +2955,19 @@ static struct surface_update_descriptor check_update_surfaces_for_stream(struct surface_update_descriptor overall_type = {UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_NONE };if (stream_update && stream_update->pending_test_pattern) { -elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); }if (stream_update && stream_update->hw_cursor_req) { -elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); }/* some stream updates require passive update */ if (stream_update) { -union stream_update_flags *su_flags = &stream_update->stream->update_flags; -elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); +union stream_update_flags *su_flags = &stream_update->stream->update_flags; +if ((stream_update->src.height !=0 && stream_update->src.width !=0 ) || (stream_update->dst.height !=0 && stream_update->dst.width !=0 ) || stream_update->integer_scaling_update)
@@ -2990,8 +2979,10 @@ static struct surface_update_descriptor check_update_surfaces_for_stream(if (stream_update->abm_level) su_flags->bits.abm_level =1 ; -if (stream_update->dpms_off) +if (stream_update->dpms_off) { su_flags->bits.dpms_off =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL |LOCK_DESCRIPTOR_LINK ); + }if (stream_update->gamut_remap) su_flags->bits.gamut_remap =1 ;
@@ -3019,17 +3010,20 @@ static struct surface_update_descriptor check_update_surfaces_for_stream(if (stream_update->output_color_space) su_flags->bits.out_csc =1 ; -if (su_flags->raw !=0 ) -elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_STATE ); +// TODO: Make each elevation explicit, as to not override fast stream in crct_timing_adjust +if (su_flags->raw) +elevate_update_type (&overall_type,UPDATE_TYPE_FULL ,LOCK_DESCRIPTOR_GLOBAL ); -if (stream_update->output_csc_transform) +// Non-global cases +if (stream_update->output_csc_transform) { su_flags->bits.out_csc =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); + } -/* Output transfer function changes do not require bandwidth recalculation, -* so don't trigger a full update -*/ -if (!check_config->enable_legacy_fast_update && stream_update->out_transfer_func) +if (!check_config->enable_legacy_fast_update && stream_update->out_transfer_func) { su_flags->bits.out_tf =1 ; +elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); + } }for (int i =0 ; i < surface_count; i++) {
drivers/gpu/drm/amd/display/dc/dc.h +2 -3
@@ -469,10 +469,9 @@ enum surface_update_type {enum dc_lock_descriptor {LOCK_DESCRIPTOR_NONE =0x0 , -LOCK_DESCRIPTOR_STATE =0x1 , +LOCK_DESCRIPTOR_STREAM =0x1 ,LOCK_DESCRIPTOR_LINK =0x2 , -LOCK_DESCRIPTOR_STREAM =0x4 , -LOCK_DESCRIPTOR_PLANE =0x8 , +LOCK_DESCRIPTOR_GLOBAL =0x4 , };struct surface_update_descriptor {
Signature · 1 line
2.43.0
PATCH 5/13 drm/amd/display: Add new SMART POWER OLED interfaces
In reply to Fangzhi ZuoFrom: Ian Chen <[email protected]>
[why && how]
To optimize power consumption on certain OLED LED panels by sending MaxCLL per frame to TCON
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 89 ++++++++++++++++++++++++ drivers/gpu/drm/amd/display/dc/dc.h | 7 ++ 2 files changed, 96 insertions(+)
drivers/gpu/drm/amd/display/dc/core/dc.c +89 -0
@@ -5977,6 +5977,95 @@ bool dc_process_dmub_aux_transfer_async(struct dc *dc,return true; } +bool dc_smart_power_oled_enable (const struct dc_link *link,bool enable,uint16_t peak_nits, +uint8_t debug_control,uint16_t fixed_CLL,uint32_t triggerline) +{ +bool status = false; +struct dc *dc = link->ctx->dc; +union dmub_rb_cmd cmd; +uint8_t otg_inst =0 ; +unsigned int panel_inst =0 ; +struct pipe_ctx *pipe_ctx =NULL ; +struct resource_context *res_ctx = &link->ctx->dc->current_state->res_ctx; +int i =0 ; + +// get panel_inst +if (!dc_get_edp_link_panel_inst (dc, link, &panel_inst)) +return status; + +// get otg_inst +for (i =0 ; i <MAX_PIPES ; i++) { +if (res_ctx && + res_ctx->pipe_ctx[i].stream && + res_ctx->pipe_ctx[i].stream->link && + res_ctx->pipe_ctx[i].stream->link == link && + res_ctx->pipe_ctx[i].stream->link->connector_signal ==SIGNAL_TYPE_EDP ) { + pipe_ctx = &res_ctx->pipe_ctx[i]; +//TODO: refactor for multi edp support +break ; + } + } + +if (pipe_ctx) + otg_inst = pipe_ctx->stream_res.tg->inst; + +// fill in cmd +memset (&cmd,0 ,sizeof (cmd)); + + cmd.smart_power_oled_enable.header.type =DMUB_CMD__SMART_POWER_OLED ; + cmd.smart_power_oled_enable.header.sub_type =DMUB_CMD__SMART_POWER_OLED_ENABLE ; + cmd.smart_power_oled_enable.header.payload_bytes = +sizeof (struct dmub_rb_cmd_smart_power_oled_enable_data ) -sizeof (struct dmub_cmd_header ); + cmd.smart_power_oled_enable.header.ret_status =1 ; + cmd.smart_power_oled_enable.data.enable = enable; + cmd.smart_power_oled_enable.data.panel_inst = panel_inst; + cmd.smart_power_oled_enable.data.peak_nits = peak_nits; + cmd.smart_power_oled_enable.data.otg_inst = otg_inst; + cmd.smart_power_oled_enable.data.digfe_inst = link->link_enc->preferred_engine; + cmd.smart_power_oled_enable.data.digbe_inst = link->link_enc->transmitter; + + cmd.smart_power_oled_enable.data.debugcontrol = debug_control; + cmd.smart_power_oled_enable.data.triggerline = triggerline; + cmd.smart_power_oled_enable.data.fixed_max_cll = fixed_CLL; + +// send cmd + status =dc_wake_and_execute_dmub_cmd (dc->ctx, &cmd,DM_DMUB_WAIT_TYPE_WAIT ); + +return status; +} + +bool dc_smart_power_oled_get_max_cll (const struct dc_link *link,unsigned int *pCurrent_MaxCLL) +{ +struct dc *dc = link->ctx->dc; +union dmub_rb_cmd cmd; +bool status = false; +unsigned int panel_inst =0 ; + +// get panel_inst +if (!dc_get_edp_link_panel_inst (dc, link, &panel_inst)) +return status; + +// fill in cmd +memset (&cmd,0 ,sizeof (cmd)); + + cmd.smart_power_oled_getmaxcll.header.type =DMUB_CMD__SMART_POWER_OLED ; + cmd.smart_power_oled_getmaxcll.header.sub_type =DMUB_CMD__SMART_POWER_OLED_GETMAXCLL ; + cmd.smart_power_oled_getmaxcll.header.payload_bytes =sizeof (cmd.smart_power_oled_getmaxcll.data); + cmd.smart_power_oled_getmaxcll.header.ret_status =1 ; + + cmd.smart_power_oled_getmaxcll.data.input.panel_inst = panel_inst; + +// send cmd and wait for reply + status =dc_wake_and_execute_dmub_cmd (dc->ctx, &cmd,DM_DMUB_WAIT_TYPE_WAIT_WITH_REPLY ); + +if (status) + *pCurrent_MaxCLL = cmd.smart_power_oled_getmaxcll.data.output.current_max_cll; +else + *pCurrent_MaxCLL =0 ; + +return status; +} +uint8_t get_link_index_from_dpia_port_index (const struct dc *dc,uint8_t dpia_port_index) {
drivers/gpu/drm/amd/display/dc/dc.h +7 -0
@@ -2719,6 +2719,13 @@ bool dc_process_dmub_aux_transfer_async(struct dc *dc,uint32_t link_index, struct aux_payload *payload); +/* +* smart power OLED Interfaces +*/ +bool dc_smart_power_oled_enable (const struct dc_link *link,bool enable,uint16_t peak_nits, +uint8_t debug_control,uint16_t fixed_CLL,uint32_t triggerline); +bool dc_smart_power_oled_get_max_cll (const struct dc_link *link,unsigned int *pCurrent_MaxCLL); +/* Get dc link index from dpia port index */ uint8_t get_link_index_from_dpia_port_index (const struct dc *dc,uint8_t dpia_port_index);
Signature · 1 line
2.43.0
PATCH 6/13 drm/amd/display: refactor DSC cap calculation for dcn35
In reply to Fangzhi ZuoFrom: Mohit Bawa <[email protected]>
why:
dcn35 currently uses a hardcoded DSC display clock value which is incorrect for some asic types. Newer DCN versions retrieve dsc display clock from clk_mgr. The same can be done for dcn35.
how:
Refactor the DSC cap calculation using pre-existing logic. Handle ODM combine requirements in dc_dsc.c.
Replace hardcoded display clock with actual value retrieved from clk_mgr.
--- .../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 30 ++++++++++++++++++ .../drm/amd/display/dc/dsc/dcn35/dcn35_dsc.c | 31 ++++++++++++++++++- 2 files changed, 60 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c +30 -0
@@ -1295,6 +1295,35 @@ static void dcn35_update_clocks_fpga(struct clk_mgr *clk_mgr,dcn35_update_clocks_update_dtb_dto (clk_mgr_int, context, clk_mgr->clks.ref_dtbclk_khz); } +static unsigned int dcn35_get_max_clock_khz (struct clk_mgr *clk_mgr_base,enum clk_type clk_type) +{ +struct clk_mgr_internal *clk_mgr =TO_CLK_MGR_INTERNAL (clk_mgr_base); + +unsigned int num_clk_levels; + +switch (clk_type) { +case CLK_TYPE_DISPCLK : + num_clk_levels = clk_mgr->base.bw_params->clk_table.num_entries_per_clk.num_dispclk_levels; +return num_clk_levels ? + clk_mgr->base.bw_params->clk_table.entries[num_clk_levels -1 ].dispclk_mhz *1000 : + clk_mgr->base.boot_snapshot.dispclk; +case CLK_TYPE_DPPCLK : + num_clk_levels = clk_mgr->base.bw_params->clk_table.num_entries_per_clk.num_dppclk_levels; +return num_clk_levels ? + clk_mgr->base.bw_params->clk_table.entries[num_clk_levels -1 ].dppclk_mhz *1000 : + clk_mgr->base.boot_snapshot.dppclk; +case CLK_TYPE_DSCCLK : + num_clk_levels = clk_mgr->base.bw_params->clk_table.num_entries_per_clk.num_dispclk_levels; +return num_clk_levels ? + clk_mgr->base.bw_params->clk_table.entries[num_clk_levels -1 ].dispclk_mhz *1000 /3 : + clk_mgr->base.boot_snapshot.dispclk /3 ; +default : +break ; + } + +return 0 ; +} +static struct clk_mgr_funcs dcn35_funcs = { .get_dp_ref_clk_frequency = dce12_get_dp_ref_freq_khz, .get_dtb_ref_clk_frequency = dcn31_get_dtb_ref_freq_khz,
@@ -1306,6 +1335,7 @@ static struct clk_mgr_funcs dcn35_funcs = { .set_low_power_state = dcn35_set_low_power_state, .exit_low_power_state = dcn35_exit_low_power_state, .is_ips_supported = dcn35_is_ips_supported, + .get_max_clock_khz = dcn35_get_max_clock_khz, };struct clk_mgr_funcs dcn35_fpga_funcs = {
drivers/gpu/drm/amd/display/dc/dsc/dcn35/dcn35_dsc.c +30 -1
@@ -28,9 +28,9 @@#include "reg_helper.h" static void dsc35_enable (struct display_stream_compressor *dsc,int opp_pipe); +static void dsc35_get_single_enc_caps (struct dsc_enc_caps *dsc_enc_caps,unsigned int max_dscclk_khz);static const struct dsc_funcs dcn35_dsc_funcs = { - .dsc_get_enc_caps = dsc2_get_enc_caps, .dsc_read_state = dsc2_read_state, .dsc_read_reg_state = dsc2_read_reg_state, .dsc_validate_stream = dsc2_validate_stream,
@@ -40,6 +40,7 @@ static const struct dsc_funcs dcn35_dsc_funcs = { .dsc_disable = dsc2_disable, .dsc_disconnect = dsc2_disconnect, .dsc_wait_disconnect_pending_clear = dsc2_wait_disconnect_pending_clear, + .dsc_get_single_enc_caps = dsc35_get_single_enc_caps, };/* Macro definitios for REG_SET macros*/
@@ -111,3 +112,31 @@ void dsc35_set_fgcg(struct dcn20_dsc *dsc20, bool enable) {REG_UPDATE (DSC_TOP_CONTROL ,DSC_FGCG_REP_DIS , !enable); } + +void dsc35_get_single_enc_caps (struct dsc_enc_caps *dsc_enc_caps,unsigned int max_dscclk_khz) +{ + dsc_enc_caps->dsc_version =0x21 ;/* v1.2 - DP spec defined it in reverse order and we kept it */ + + dsc_enc_caps->slice_caps.bits.NUM_SLICES_1 =1 ; + dsc_enc_caps->slice_caps.bits.NUM_SLICES_2 =1 ; + dsc_enc_caps->slice_caps.bits.NUM_SLICES_3 =1 ; + dsc_enc_caps->slice_caps.bits.NUM_SLICES_4 =1 ; + + dsc_enc_caps->lb_bit_depth =13 ; + dsc_enc_caps->is_block_pred_supported = true; + + dsc_enc_caps->color_formats.bits.RGB =1 ; + dsc_enc_caps->color_formats.bits.YCBCR_444 =1 ; + dsc_enc_caps->color_formats.bits.YCBCR_SIMPLE_422 =1 ; + dsc_enc_caps->color_formats.bits.YCBCR_NATIVE_422 =0 ; + dsc_enc_caps->color_formats.bits.YCBCR_NATIVE_420 =1 ; + + dsc_enc_caps->color_depth.bits.COLOR_DEPTH_8_BPC =1 ; + dsc_enc_caps->color_depth.bits.COLOR_DEPTH_10_BPC =1 ; + dsc_enc_caps->color_depth.bits.COLOR_DEPTH_12_BPC =1 ; + + dsc_enc_caps->max_total_throughput_mps = max_dscclk_khz *3 /1000 ; + + dsc_enc_caps->max_slice_width =5184 ;/* (including 64 overlap pixels for eDP MSO mode) */ + dsc_enc_caps->bpp_increment_div =16 ;/* 1/16th of a bit */ +}
Signature · 1 line
2.43.0
PATCH 8/13 drm/amd/display: To support Replay frame skip mode
In reply to Fangzhi ZuoFrom: Chuntao Tso <[email protected]>
[Why & How]
The change is to optimize the Replay power saving by reducing the refresh rate with frame skipping mode
--- .../amd/display/amdgpu_dm/amdgpu_dm_replay.c | 2 +- drivers/gpu/drm/amd/display/dc/dc_types.h | 6 ++++ .../gpu/drm/amd/display/dc/dce/dmub_replay.c | 7 +++-- .../gpu/drm/amd/display/dc/dce/dmub_replay.h | 5 ++-- .../gpu/drm/amd/display/dc/inc/link_service.h | 4 +-- .../link/protocols/link_edp_panel_control.c | 17 +++++++---- .../link/protocols/link_edp_panel_control.h | 4 +-- .../amd/display/modules/power/power_helpers.c | 30 +++++++++++++++++++ .../amd/display/modules/power/power_helpers.h | 5 ++++ 9 files changed, 65 insertions(+), 15 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c +1 -1
@@ -162,7 +162,7 @@ bool amdgpu_dm_replay_enable(struct dc_stream_state *stream, bool wait)if (link) { link->dc->link_srv->edp_setup_replay (link, stream); - link->dc->link_srv->edp_set_coasting_vtotal (link, stream->timing.v_total); + link->dc->link_srv->edp_set_coasting_vtotal (link, stream->timing.v_total,0 );DRM_DEBUG_DRIVER ("Enabling replay...\n" ); link->dc->link_srv->edp_set_replay_allow_active (link, &replay_active, wait, false,NULL );return true;
drivers/gpu/drm/amd/display/dc/dc_types.h +6 -0
@@ -1184,6 +1184,10 @@ struct replay_settings {uint32_t coasting_vtotal_table[PR_COASTING_TYPE_NUM ];/* Defer Update Coasting vtotal table */ uint32_t defer_update_coasting_vtotal_table[PR_COASTING_TYPE_NUM ]; +/* Skip frame number table */ +uint32_t frame_skip_number_table[PR_COASTING_TYPE_NUM ]; +/* Defer skip frame number table */ +uint32_t defer_frame_skip_number_table[PR_COASTING_TYPE_NUM ];/* Maximum link off frame count */ uint32_t link_off_frame_count;/* Replay pseudo vtotal for low refresh rate*/
@@ -1192,6 +1196,8 @@ struct replay_settings {uint16_t last_pseudo_vtotal;/* Replay desync error */ uint32_t replay_desync_error_fail_count; +/* The frame skip number dal send to DMUB */ +uint16_t frame_skip_number; };/* To split out "global" and "per-panel" config settings.
drivers/gpu/drm/amd/display/dc/dce/dmub_replay.c +5 -2
@@ -213,7 +213,8 @@ static bool dmub_replay_copy_settings(struct dmub_replay *dmub,*/ static void dmub_replay_set_coasting_vtotal (struct dmub_replay *dmub,uint32_t coasting_vtotal, -uint8_t panel_inst) +uint8_t panel_inst, +uint16_t frame_skip_number) {union dmub_rb_cmd cmd;struct dc_context *dc = dmub->ctx;
@@ -227,6 +228,7 @@ static void dmub_replay_set_coasting_vtotal(struct dmub_replay *dmub, pCmd->header.payload_bytes =sizeof (struct dmub_cmd_replay_set_coasting_vtotal_data ); pCmd->replay_set_coasting_vtotal_data.coasting_vtotal = (coasting_vtotal &0xFFFF ); pCmd->replay_set_coasting_vtotal_data.coasting_vtotal_high = (coasting_vtotal &0xFFFF0000 ) >>16 ; + pCmd->replay_set_coasting_vtotal_data.frame_skip_number = frame_skip_number;dc_wake_and_execute_dmub_cmd (dc, &cmd,DM_DMUB_WAIT_TYPE_WAIT ); }
@@ -283,7 +285,7 @@ static void dmub_replay_residency(struct dmub_replay *dmub, uint8_t panel_inst,* Set REPLAY power optimization flags and coasting vtotal. */ static void dmub_replay_set_power_opt_and_coasting_vtotal (struct dmub_replay *dmub, -unsigned int power_opt,uint8_t panel_inst,uint32_t coasting_vtotal) +unsigned int power_opt,uint8_t panel_inst,uint32_t coasting_vtotal,uint16_t frame_skip_number) {union dmub_rb_cmd cmd;struct dc_context *dc = dmub->ctx;
@@ -301,6 +303,7 @@ static void dmub_replay_set_power_opt_and_coasting_vtotal(struct dmub_replay *dm pCmd->replay_set_power_opt_data.panel_inst = panel_inst; pCmd->replay_set_coasting_vtotal_data.coasting_vtotal = (coasting_vtotal &0xFFFF ); pCmd->replay_set_coasting_vtotal_data.coasting_vtotal_high = (coasting_vtotal &0xFFFF0000 ) >>16 ; + pCmd->replay_set_coasting_vtotal_data.frame_skip_number = frame_skip_number;dc_wake_and_execute_dmub_cmd (dc, &cmd,DM_DMUB_WAIT_TYPE_WAIT ); }
drivers/gpu/drm/amd/display/dc/dce/dmub_replay.h +3 -2
@@ -27,11 +27,12 @@ struct dmub_replay_funcs {void (*replay_send_cmd)(struct dmub_replay *dmub,enum replay_FW_Message_type msg,union dmub_replay_cmd_set *cmd_element);void (*replay_set_coasting_vtotal)(struct dmub_replay *dmub,uint32_t coasting_vtotal, -uint8_t panel_inst); +uint8_t panel_inst,uint16_t frame_skip_number);void (*replay_residency)(struct dmub_replay *dmub,uint8_t panel_inst,uint32_t *residency,const bool is_start,const enum pr_residency_mode mode);void (*replay_set_power_opt_and_coasting_vtotal)(struct dmub_replay *dmub, -unsigned int power_opt,uint8_t panel_inst,uint32_t coasting_vtotal); +unsigned int power_opt,uint8_t panel_inst,uint32_t coasting_vtotal, +uint16_t frame_skip_number); };struct dmub_replay *dmub_replay_create (struct dc_context *ctx);
drivers/gpu/drm/amd/display/dc/inc/link_service.h +2 -2
@@ -292,12 +292,12 @@ struct link_service {enum replay_FW_Message_type msg, union dmub_replay_cmd_set *cmd_data);bool (*edp_set_coasting_vtotal)( -struct dc_link *link,uint32_t coasting_vtotal); +struct dc_link *link,uint32_t coasting_vtotal,uint16_t frame_skip_number);bool (*edp_replay_residency)(const struct dc_link *link,unsigned int *residency,const bool is_start,const enum pr_residency_mode mode);bool (*edp_set_replay_power_opt_and_coasting_vtotal)(struct dc_link *link, -const unsigned int *power_opts,uint32_t coasting_vtotal); +const unsigned int *power_opts,uint32_t coasting_vtotal,uint16_t frame_skip_number);bool (*edp_wait_for_t12)(struct dc_link *link); bool (*edp_is_ilr_optimization_required)(struct dc_link *link,
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c +11 -6
@@ -1110,7 +1110,7 @@ bool edp_send_replay_cmd(struct dc_link *link,return true; } -bool edp_set_coasting_vtotal (struct dc_link *link,uint32_t coasting_vtotal) +bool edp_set_coasting_vtotal (struct dc_link *link,uint32_t coasting_vtotal,uint16_t frame_skip_number) {struct dc *dc = link->ctx->dc;struct dmub_replay *replay = dc->res_pool->replay;
@@ -1122,9 +1122,11 @@ bool edp_set_coasting_vtotal(struct dc_link *link, uint32_t coasting_vtotal)if (!dc_get_edp_link_panel_inst (dc, link, &panel_inst))return false; -if (coasting_vtotal && link->replay_settings.coasting_vtotal != coasting_vtotal) { - replay->funcs->replay_set_coasting_vtotal (replay, coasting_vtotal, panel_inst); +if (coasting_vtotal && (link->replay_settings.coasting_vtotal != coasting_vtotal || + link->replay_settings.frame_skip_number != frame_skip_number)) { + replay->funcs->replay_set_coasting_vtotal (replay, coasting_vtotal, panel_inst, frame_skip_number); link->replay_settings.coasting_vtotal = coasting_vtotal; + link->replay_settings.frame_skip_number = frame_skip_number; }return true;
@@ -1152,7 +1154,7 @@ bool edp_replay_residency(const struct dc_link *link, }bool edp_set_replay_power_opt_and_coasting_vtotal (struct dc_link *link, -const unsigned int *power_opts,uint32_t coasting_vtotal) +const unsigned int *power_opts,uint32_t coasting_vtotal,uint16_t frame_skip_number) {struct dc *dc = link->ctx->dc;struct dmub_replay *replay = dc->res_pool->replay;
@@ -1163,13 +1165,16 @@ bool edp_set_replay_power_opt_and_coasting_vtotal(struct dc_link *link,/* Only both power and coasting vtotal changed, this func could return true */ if (power_opts && link->replay_settings.replay_power_opt_active != *power_opts && - coasting_vtotal && link->replay_settings.coasting_vtotal != coasting_vtotal) { + (coasting_vtotal && + (link->replay_settings.coasting_vtotal != coasting_vtotal || + link->replay_settings.frame_skip_number != frame_skip_number))) {if (link->replay_settings.replay_feature_enabled && replay->funcs->replay_set_power_opt_and_coasting_vtotal) { replay->funcs->replay_set_power_opt_and_coasting_vtotal (replay, - *power_opts, panel_inst, coasting_vtotal); + *power_opts, panel_inst, coasting_vtotal, frame_skip_number); link->replay_settings.replay_power_opt_active = *power_opts; link->replay_settings.coasting_vtotal = coasting_vtotal; + link->replay_settings.frame_skip_number = frame_skip_number; }else return false; }else
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.h +2 -2
@@ -59,12 +59,12 @@ bool edp_setup_replay(struct dc_link *link,bool edp_send_replay_cmd (struct dc_link *link,enum replay_FW_Message_type msg,union dmub_replay_cmd_set *cmd_data); -bool edp_set_coasting_vtotal (struct dc_link *link,uint32_t coasting_vtotal); +bool edp_set_coasting_vtotal (struct dc_link *link,uint32_t coasting_vtotal,uint16_t frame_skip_number);bool edp_replay_residency (const struct dc_link *link,unsigned int *residency,const bool is_start,const enum pr_residency_mode mode);bool edp_get_replay_state (const struct dc_link *link,uint64_t *state);bool edp_set_replay_power_opt_and_coasting_vtotal (struct dc_link *link, -const unsigned int *power_opts,uint32_t coasting_vtotal); +const unsigned int *power_opts,uint32_t coasting_vtotal,uint16_t frame_skip_number);bool edp_wait_for_t12 (struct dc_link *link);bool edp_is_ilr_optimization_required (struct dc_link *link,struct dc_crtc_timing *crtc_timing);
drivers/gpu/drm/amd/display/modules/power/power_helpers.c +30 -0
@@ -975,6 +975,34 @@ bool psr_su_set_dsc_slice_height(struct dc *dc, struct dc_link *link,return true; } +void set_replay_frame_skip_number (struct dc_link *link, +enum replay_coasting_vtotal_type type, +uint32_t coasting_vtotal_refresh_rate_mhz, +uint32_t flicker_free_refresh_rate_mhz, +bool is_defer) +{ +uint32_t *frame_skip_number_array =NULL ; +uint32_t frame_skip_number =0 ; + +if (link ==NULL || flicker_free_refresh_rate_mhz ==0 || coasting_vtotal_refresh_rate_mhz ==0 ) +return ; + +if (is_defer) + frame_skip_number_array = link->replay_settings.defer_frame_skip_number_table; +else + frame_skip_number_array = link->replay_settings.frame_skip_number_table; + +if (frame_skip_number_array ==NULL ) +return ; + + frame_skip_number = coasting_vtotal_refresh_rate_mhz / flicker_free_refresh_rate_mhz; + +if (frame_skip_number >=1 ) + frame_skip_number_array[type] = frame_skip_number -1 ; +else + frame_skip_number_array[type] =0 ; +} +void set_replay_defer_update_coasting_vtotal (struct dc_link *link,enum replay_coasting_vtotal_type type,uint32_t vtotal)
@@ -987,6 +1015,8 @@ void update_replay_coasting_vtotal_from_defer(struct dc_link *link, { link->replay_settings.coasting_vtotal_table[type] = link->replay_settings.defer_update_coasting_vtotal_table[type]; + link->replay_settings.frame_skip_number_table[type] = + link->replay_settings.defer_frame_skip_number_table[type]; } void set_replay_coasting_vtotal(struct dc_link *link,
drivers/gpu/drm/amd/display/modules/power/power_helpers.h +5 -0
@@ -60,6 +60,11 @@ void set_replay_coasting_vtotal(struct dc_link *link,void set_replay_defer_update_coasting_vtotal (struct dc_link *link,enum replay_coasting_vtotal_type type,uint32_t vtotal); +void set_replay_frame_skip_number (struct dc_link *link, +enum replay_coasting_vtotal_type type, +uint32_t coasting_vtotal_refresh_rate_Mhz, +uint32_t flicker_free_refresh_rate_Mhz, +bool is_defer);void update_replay_coasting_vtotal_from_defer (struct dc_link *link,enum replay_coasting_vtotal_type type);void set_replay_low_rr_full_screen_video_src_vtotal (struct dc_link *link,uint16_t vtotal);
Signature · 1 line
2.43.0
PATCH 2/13 drm/amd/display: Fix index bug for fill latency
In reply to Fangzhi ZuoFrom: Dillon Varone <[email protected]>
[WHY&HOW]
This array should be indexed by pstate type followed by plane index.
--- .../dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4_calcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4_calcs.c +1 -1
@@ -12944,7 +12944,7 @@ void dml2_core_calcs_get_plane_support_info(const struct dml2_display_cfg *displ out->active_latency_hiding_us = (int )mode_lib->ms.VActiveLatencyHidingUs[plane_idx]; out->vactive_det_fill_delay_us[dml2_pstate_type_uclk] = - (unsigned int )math_ceil (mode_lib->ms.pstate_vactive_det_fill_delay_us[plane_idx][dml2_pstate_type_uclk]); + (unsigned int )math_ceil (mode_lib->ms.pstate_vactive_det_fill_delay_us[dml2_pstate_type_uclk][plane_idx]); }void dml2_core_calcs_get_stream_support_info (const struct dml2_display_cfg *display_cfg,const struct dml2_core_internal_display_mode_lib *mode_lib,struct core_stream_support_info *out,int plane_index)
Signature · 1 line
2.43.0
PATCH 9/13 drm/amd/display: Revert in_transfer_func_change to MED
In reply to Fangzhi ZuoFrom: Dominik Kaszewski <[email protected]>
[Why]
Last commit accidentally changed handling of in_transfer_func_change from MED to FAST.
[How]
* Revert the line.
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +1 -1
@@ -2857,7 +2857,7 @@ static struct surface_update_descriptor det_surface_update( }if (u->in_transfer_func) { update_flags->bits.in_transfer_func_change =1 ; -elevate_update_type (&overall_type,UPDATE_TYPE_FAST ,LOCK_DESCRIPTOR_STREAM ); +elevate_update_type (&overall_type,UPDATE_TYPE_MED ,LOCK_DESCRIPTOR_STREAM ); }if (u->input_csc_color_matrix) {
Signature · 1 line
2.43.0
PATCH 10/13 drm/amd/display: dynamically clock gate before and after prefetch
In reply to Fangzhi ZuoFrom: Leo Chen <[email protected]>
[Why]
An invalidation request arriving during prefetch can potentially hang the system if dynamic clock gating is enabled and memory power requests are disabled.
[How]
• Disable clock gating and enable memory power requests for the duration of the prefetch.
• Turn on clock gating and disable memory power requests again after prefetch is complete.
Limit the scope for DCN35 and DCN42 only.
--- .../display/dc/hubbub/dcn31/dcn31_hubbub.c | 7 +-- .../display/dc/hubbub/dcn35/dcn35_hubbub.c | 52 ++++++++++++++++++- .../display/dc/hubbub/dcn35/dcn35_hubbub.h | 1 + .../gpu/drm/amd/display/dc/inc/hw/dchubbub.h | 2 + 4 files changed, 58 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/hubbub/dcn31/dcn31_hubbub.c +4 -3
@@ -933,8 +933,8 @@ int hubbub31_init_dchub_sys_ctx(struct hubbub *hubbub,dcn20_vmid_setup (&hubbub2->vmid[15 ], &phys_config); } - -dcn21_dchvm_init (hubbub); +if (hubbub->funcs->dchvm_init) + hubbub->funcs->dchvm_init (hubbub);return NUM_VMID ; }
@@ -1071,7 +1071,8 @@ static const struct hubbub_funcs hubbub31_funcs = { .program_compbuf_size = dcn31_program_compbuf_size, .init_crb = dcn31_init_crb, .hubbub_read_state = hubbub2_read_state, - .hubbub_read_reg_state = hubbub3_read_reg_state + .hubbub_read_reg_state = hubbub3_read_reg_state, + .dchvm_init = dcn21_dchvm_init }; void hubbub31_construct(struct dcn20_hubbub *hubbub31,
drivers/gpu/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.c +51 -1
64 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/hubbub/dcn35/dcn35_hubbub.h +1 -0
@@ -168,4 +168,5 @@ void dcn35_program_compbuf_size(struct hubbub *hubbub, unsigned int compbuf_size_kb, bool safe_to_increase);void dcn35_init_crb (struct hubbub *hubbub);void hubbub35_init (struct hubbub *hubbub); +void dcn35_dchvm_init (struct hubbub *hubbub);#endif
drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h +2 -0
@@ -252,6 +252,8 @@ struct hubbub_funcs {void (*program_compbuf_segments)(struct hubbub *hubbub,unsigned compbuf_size_seg,bool safe_to_increase);void (*wait_for_det_update)(struct hubbub *hubbub,int hubp_inst);bool (*program_arbiter)(struct hubbub *hubbub,struct dml2_display_arb_regs *arb_regs,bool safe_to_lower); +void (*dchvm_init)(struct hubbub *hubbub); +struct hubbub_perfmon_funcs {void (*reset)(struct hubbub *hubbub); void (*start_measuring_max_memory_latency_ns)(
Signature · 1 line
2.43.0
PATCH 11/13 drm/amd/display: Refactor HDCP Status Log Format
In reply to Fangzhi ZuoAdd missing part for
drm/amd/display: fw locality check refactors
--- .../drm/amd/display/modules/hdcp/hdcp_log.c | 124 +---------------- .../drm/amd/display/modules/inc/mod_hdcp.h | 126 +++++++++--------- 2 files changed, 67 insertions(+), 183 deletions(-)
drivers/gpu/drm/amd/display/modules/hdcp/hdcp_log.c +2 -122
@@ -125,131 +125,11 @@ void mod_hdcp_log_ddc_trace(struct mod_hdcp *hdcp) } } +#define CASE_FORMAT (entry) case entry: return #entry;char *mod_hdcp_status_to_str (int32_t status) {switch (status) { -case MOD_HDCP_STATUS_SUCCESS : -return "MOD_HDCP_STATUS_SUCCESS" ; -case MOD_HDCP_STATUS_FAILURE : -return "MOD_HDCP_STATUS_FAILURE" ; -case MOD_HDCP_STATUS_RESET_NEEDED : -return "MOD_HDCP_STATUS_RESET_NEEDED" ; -case MOD_HDCP_STATUS_DISPLAY_OUT_OF_BOUND : -return "MOD_HDCP_STATUS_DISPLAY_OUT_OF_BOUND" ; -case MOD_HDCP_STATUS_DISPLAY_NOT_FOUND : -return "MOD_HDCP_STATUS_DISPLAY_NOT_FOUND" ; -case MOD_HDCP_STATUS_INVALID_STATE : -return "MOD_HDCP_STATUS_INVALID_STATE" ; -case MOD_HDCP_STATUS_NOT_IMPLEMENTED : -return "MOD_HDCP_STATUS_NOT_IMPLEMENTED" ; -case MOD_HDCP_STATUS_INTERNAL_POLICY_FAILURE : -return "MOD_HDCP_STATUS_INTERNAL_POLICY_FAILURE" ; -case MOD_HDCP_STATUS_UPDATE_TOPOLOGY_FAILURE : -return "MOD_HDCP_STATUS_UPDATE_TOPOLOGY_FAILURE" ; -case MOD_HDCP_STATUS_CREATE_PSP_SERVICE_FAILURE : -return "MOD_HDCP_STATUS_CREATE_PSP_SERVICE_FAILURE" ; -case MOD_HDCP_STATUS_DESTROY_PSP_SERVICE_FAILURE : -return "MOD_HDCP_STATUS_DESTROY_PSP_SERVICE_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_CREATE_SESSION_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_CREATE_SESSION_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_DESTROY_SESSION_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_DESTROY_SESSION_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_VALIDATE_ENCRYPTION_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_VALIDATE_ENCRYPTION_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_NOT_HDCP_REPEATER : -return "MOD_HDCP_STATUS_HDCP1_NOT_HDCP_REPEATER" ; -case MOD_HDCP_STATUS_HDCP1_NOT_CAPABLE : -return "MOD_HDCP_STATUS_HDCP1_NOT_CAPABLE" ; -case MOD_HDCP_STATUS_HDCP1_R0_PRIME_PENDING : -return "MOD_HDCP_STATUS_HDCP1_R0_PRIME_PENDING" ; -case MOD_HDCP_STATUS_HDCP1_VALIDATE_RX_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_VALIDATE_RX_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_BKSV_REVOKED : -return "MOD_HDCP_STATUS_HDCP1_BKSV_REVOKED" ; -case MOD_HDCP_STATUS_HDCP1_KSV_LIST_NOT_READY : -return "MOD_HDCP_STATUS_HDCP1_KSV_LIST_NOT_READY" ; -case MOD_HDCP_STATUS_HDCP1_VALIDATE_KSV_LIST_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_VALIDATE_KSV_LIST_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_KSV_LIST_REVOKED : -return "MOD_HDCP_STATUS_HDCP1_KSV_LIST_REVOKED" ; -case MOD_HDCP_STATUS_HDCP1_ENABLE_ENCRYPTION_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_ENABLE_ENCRYPTION_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_ENABLE_STREAM_ENCRYPTION_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_ENABLE_STREAM_ENCRYPTION_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_MAX_CASCADE_EXCEEDED_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_MAX_CASCADE_EXCEEDED_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_MAX_DEVS_EXCEEDED_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_MAX_DEVS_EXCEEDED_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_DEVICE_COUNT_MISMATCH_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_DEVICE_COUNT_MISMATCH_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_LINK_INTEGRITY_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_LINK_INTEGRITY_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_REAUTH_REQUEST_ISSUED : -return "MOD_HDCP_STATUS_HDCP1_REAUTH_REQUEST_ISSUED" ; -case MOD_HDCP_STATUS_HDCP1_LINK_MAINTENANCE_FAILURE : -return "MOD_HDCP_STATUS_HDCP1_LINK_MAINTENANCE_FAILURE" ; -case MOD_HDCP_STATUS_HDCP1_INVALID_BKSV : -return "MOD_HDCP_STATUS_HDCP1_INVALID_BKSV" ; -case MOD_HDCP_STATUS_DDC_FAILURE : -return "MOD_HDCP_STATUS_DDC_FAILURE" ; -case MOD_HDCP_STATUS_INVALID_OPERATION : -return "MOD_HDCP_STATUS_INVALID_OPERATION" ; -case MOD_HDCP_STATUS_HDCP2_NOT_CAPABLE : -return "MOD_HDCP_STATUS_HDCP2_NOT_CAPABLE" ; -case MOD_HDCP_STATUS_HDCP2_CREATE_SESSION_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_CREATE_SESSION_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_DESTROY_SESSION_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_DESTROY_SESSION_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_PREP_AKE_INIT_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_PREP_AKE_INIT_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_AKE_CERT_PENDING : -return "MOD_HDCP_STATUS_HDCP2_AKE_CERT_PENDING" ; -case MOD_HDCP_STATUS_HDCP2_H_PRIME_PENDING : -return "MOD_HDCP_STATUS_HDCP2_H_PRIME_PENDING" ; -case MOD_HDCP_STATUS_HDCP2_PAIRING_INFO_PENDING : -return "MOD_HDCP_STATUS_HDCP2_PAIRING_INFO_PENDING" ; -case MOD_HDCP_STATUS_HDCP2_VALIDATE_AKE_CERT_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_VALIDATE_AKE_CERT_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_AKE_CERT_REVOKED : -return "MOD_HDCP_STATUS_HDCP2_AKE_CERT_REVOKED" ; -case MOD_HDCP_STATUS_HDCP2_VALIDATE_H_PRIME_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_VALIDATE_H_PRIME_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_VALIDATE_PAIRING_INFO_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_VALIDATE_PAIRING_INFO_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_PREP_LC_INIT_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_PREP_LC_INIT_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_L_PRIME_PENDING : -return "MOD_HDCP_STATUS_HDCP2_L_PRIME_PENDING" ; -case MOD_HDCP_STATUS_HDCP2_VALIDATE_L_PRIME_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_VALIDATE_L_PRIME_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_PREP_EKS_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_PREP_EKS_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_ENABLE_ENCRYPTION_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_ENABLE_ENCRYPTION_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_VALIDATE_RX_ID_LIST_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_VALIDATE_RX_ID_LIST_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_RX_ID_LIST_REVOKED : -return "MOD_HDCP_STATUS_HDCP2_RX_ID_LIST_REVOKED" ; -case MOD_HDCP_STATUS_HDCP2_RX_ID_LIST_NOT_READY : -return "MOD_HDCP_STATUS_HDCP2_RX_ID_LIST_NOT_READY" ; -case MOD_HDCP_STATUS_HDCP2_ENABLE_STREAM_ENCRYPTION_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_ENABLE_STREAM_ENCRYPTION_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_STREAM_READY_PENDING : -return "MOD_HDCP_STATUS_HDCP2_STREAM_READY_PENDING" ; -case MOD_HDCP_STATUS_HDCP2_VALIDATE_STREAM_READY_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_VALIDATE_STREAM_READY_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_PREPARE_STREAM_MANAGEMENT_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_PREPARE_STREAM_MANAGEMENT_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_REAUTH_REQUEST : -return "MOD_HDCP_STATUS_HDCP2_REAUTH_REQUEST" ; -case MOD_HDCP_STATUS_HDCP2_REAUTH_LINK_INTEGRITY_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_REAUTH_LINK_INTEGRITY_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_DEVICE_COUNT_MISMATCH_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_DEVICE_COUNT_MISMATCH_FAILURE" ; -case MOD_HDCP_STATUS_UNSUPPORTED_PSP_VER_FAILURE : -return "MOD_HDCP_STATUS_UNSUPPORTED_PSP_VER_FAILURE" ; -case MOD_HDCP_STATUS_HDCP2_LOCALITY_COMBO_READ_FAILURE : -return "MOD_HDCP_STATUS_HDCP2_LOCALITY_COMBO_READ_FAILURE" ; + MOD_HDCP_STATUS_LIST(CASE_FORMAT) default:return "MOD_HDCP_STATUS_UNKNOWN" ; }
drivers/gpu/drm/amd/display/modules/inc/mod_hdcp.h +65 -61
135 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH 12/13 drm/amd/display: [FW Promotion] Release 0.1.35.0
In reply to Fangzhi ZuoFrom: Taimur Hassan <[email protected]>
Summary for changes in firmware:
* Use panel_inst instead of otg_inst when getting fw state
* Contrast strength improves when HDR desktop mode
* Ensure pipes have no outstanding HUBP requests prior to IPS RCG entry
* Check for vm request and vm idle status in IPS1/2 entry sequence
--- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +8 -1
@@ -491,7 +491,13 @@ union replay_debug_flags {*/ uint32_t debug_log_enabled : 1; - uint32_t reserved : 17; +/** +* 0x8000 (bit 15) +* @enable_sub_feature_visual_confirm: Enable Sub Feature Visual Confirm +*/ + uint32_t enable_sub_feature_visual_confirm : 1; + + uint32_t reserved : 16; } bitfields;uint32_t u32All;
@@ -4363,6 +4369,7 @@ enum dmub_cmd_replay_general_subtype {REPLAY_GENERAL_CMD_DISABLED_DESYNC_ERROR_DETECTION ,REPLAY_GENERAL_CMD_UPDATE_ERROR_STATUS ,REPLAY_GENERAL_CMD_SET_LOW_RR_ACTIVATE , + REPLAY_GENERAL_CMD_VIDEO_CONFERENCING, }; struct dmub_alpm_auxless_data {
Signature · 1 line
2.43.0
PATCH 13/13 drm/amd/display: Promote DC to 3.2.358
In reply to Fangzhi ZuoFrom: Taimur Hassan <[email protected]>
Summary:
* Enable VRR when unsynced with the stream
* Refactor DSC cap calculation for dcn35
* Add debug log for power feature
* Fix fill latency issue
* Do not initialize LSDMA if it is not supported by DMU
--- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dc.h +1 -1
@@ -63,7 +63,7 @@ struct dcn_dsc_reg_state;struct dcn_optc_reg_state ;struct dcn_dccg_reg_state ; -#define DC_VER "3.2.357" +#define DC_VER "3.2.358"/** * MAX_SURFACES - representative of the upper bound of surfaces that can be piped to a single CRTC
Signature · 1 line
2.43.0
[Public]
Hi all,
This week this patchset was tested on 4 systems, two dGPU and two APU based, and tested across multiple display and connection types.
APU
* Single Display eDP -> 1080p 60hz, 1920x1200 165hz, 3840x2400 60hz
* Single Display DP (SST DSC) -> 4k144hz, 4k240hz
* Multi display -> eDP + DP/HDMI/USB-C -> 1080p 60hz eDP + 4k 144hz, 4k 240hz (Includes USB-C to DP/HDMI adapters)
* Thunderbolt -> LG Ultrafine 5k
* MST DSC -> Cable Matters 101075 (DP to 3x DP) with 3x 4k60hz displays, HP Hook G2 with 2x 4k60hz displays
* USB 4 -> HP Hook G4, Lenovo Thunderbolt Dock, both with 2x 4k60hz DP and 1x 4k60hz HDMI displays
* SST PCON -> Club3D CAC-1085 + 1x 4k 144hz, FRL3, at a max resolution supported by the dongle of 4k 120hz YUV420 12bpc.
* MST PCON -> 1x 4k 144hz, FRL3, at a max resolution supported by the adapter of 4k 120hz RGB 8bpc.
DGPU
* Single Display DP (SST DSC) -> 4k144hz, 4k240hz
* Multiple Display DP -> 4k240hz + 4k144hz
* MST (Startech MST14DP123DP [DP to 3x DP] and 2x 4k 60hz displays)
* MST DSC (with Cable Matters 101075 [DP to 3x DP] with 3x 4k60hz displays)
The testing is a mix of automated and manual tests. Manual testing includes (but is not limited to)
* Changing display configurations and settings
* Video/Audio playback
* Benchmark testing
* Suspend/Resume testing
* Feature testing (Freesync, HDCP, etc.)
Automated testing includes (but is not limited to)
* Script testing (scripts to automate some of the manual checks)
* IGT testing
The testing is mainly tested on the following displays, but occasionally there are tests with other displays
* Samsung G8 Neo 4k240hz
* Samsung QN55QN95B 4k 120hz
* Acer XV322QKKV 4k144hz
* HP U27 4k Wireless 4k60hz
* LG 27UD58B 4k60hz
* LG 32UN650WA 4k60hz
* LG Ultrafine 5k 5k60hz
* AU Optronics B140HAN01.1 1080p 60hz eDP
* AU Optronics B160UAN01.J 1920x1200 165hz eDP
* Samsung ATNA60YV02-0 3840x2400 60Hz OLED eDP
The patchset consists of the amd-staging-drm-next branch (Head commit - e3ba532665bc6c3f72cb59f5af9c845069169f7c -> drm/amdgpu: fix possible fence leaks from job structure) with new patches added on top of it.
Tested on Ubuntu 24.04.3, on Wayland and X11, using Gnome.
Thank you,
Dan Wheeler
Sr. Technologist | AMD
SW Display
------------------------------------------------------------------------------------------------------------------
1 Commerce Valley Dr E, Thornhill, ON L3T 7X6
amd.com
-----Original Message-----
From: Fangzhi Zuo <[email protected]>
Sent: Wednesday, November 5, 2025 10:36 AM
To: [email protected]
Cc: Wentland, Harry <[email protected]>; Li, Sun peng (Leo) <[email protected]>; Pillai, Aurabindo <[email protected]>; Li, Roman <[email protected]>; Lin, Wayne <[email protected]>; Chung, ChiaHsuan (Tom) <[email protected]>; Zuo, Jerry <[email protected]>; Wheeler, Daniel <[email protected]>; Wu, Ray <[email protected]>; LIPSKI, IVAN <[email protected]>; Hung, Alex <[email protected]>; Zuo, Jerry <[email protected]>
Subject: [PATCH 00/13] DC Patches November 03, 2025
Summary:
* Enable VRR when unsynced with the stream
* Refactor DSC cap calculation for dcn35
* Add debug log for power feature
* Fix fill latency issue
* Do not initialize LSDMA if it is not supported by dmu
Alvin Lee (1):
drm/amd/display: Only initialize LSDMA if it is supported in DMU
Chuntao Tso (1):
drm/amd/display: To support Replay frame skip mode
Dillon Varone (1):
drm/amd/display: Fix index bug for fill latency
Dominik Kaszewski (2):
drm/amd/display: Change lock descriptor values drm/amd/display: Revert in_transfer_func_change to MED
Fangzhi Zuo (1):
drm/amd/display: Refactor HDCP Status Log Format
George Shen (1):
drm/amd/display: Add interface to capture power feature status for
debug logging
Ian Chen (1):
drm/amd/display: Add new SMART POWER OLED interfaces
Ivan Lipski (1):
drm/amd/display: Allow VRR params change if unsynced with the stream
Leo Chen (1):
drm/amd/display: dynamically clock gate before and after prefetch
Mohit Bawa (1):
drm/amd/display: refactor DSC cap calculation for dcn35
Taimur Hassan (2):
drm/amd/display: [FW Promotion] Release 0.1.35.0 drm/amd/display: Promote DC to 3.2.358
.../amd/display/amdgpu_dm/amdgpu_dm_replay.c | 2 +- .../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 30 +++ drivers/gpu/drm/amd/display/dc/core/dc.c | 242 ++++++++++++------ drivers/gpu/drm/amd/display/dc/dc.h | 28 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 3 + drivers/gpu/drm/amd/display/dc/dc_types.h | 6 + .../gpu/drm/amd/display/dc/dce/dmub_replay.c | 7 +- .../gpu/drm/amd/display/dc/dce/dmub_replay.h | 5 +- .../src/dml2_core/dml2_core_dcn4_calcs.c | 2 +- .../drm/amd/display/dc/dsc/dcn35/dcn35_dsc.c | 31 ++- .../display/dc/hubbub/dcn31/dcn31_hubbub.c | 7 +- .../display/dc/hubbub/dcn35/dcn35_hubbub.c | 52 +++- .../display/dc/hubbub/dcn35/dcn35_hubbub.h | 1 + .../gpu/drm/amd/display/dc/inc/hw/dchubbub.h | 2 + .../gpu/drm/amd/display/dc/inc/link_service.h | 4 +- .../link/protocols/link_edp_panel_control.c | 17 +- .../link/protocols/link_edp_panel_control.h | 4 +- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 10 +- .../amd/display/modules/freesync/freesync.c | 11 + .../drm/amd/display/modules/hdcp/hdcp_log.c | 124 +-------- .../drm/amd/display/modules/inc/mod_hdcp.h | 126 ++++----- .../amd/display/modules/power/power_helpers.c | 30 +++ .../amd/display/modules/power/power_helpers.h | 5 + 23 files changed, 464 insertions(+), 285 deletions(-)
--
2.43.0