DC Patches for 25 Aug 2025
cover DC Patches for 25 Aug 2025
This DC patchset brings improvements in multiple areas. In summary, we have:
* Firmware releases for multiple asics
* CodeQL fixes
* Fix for double cursor with 180 degree rotation on large resolutions
* Misc bug fixes for DSC, PSR/Replay, DPIA etc.
___
Ausef Yousof (1):
drm/amd/display: track dpia support
Clay King (3):
drm/amd/display: Multiplication result converted to larger type drm/amd/display: Incorrect 'not' operator usage drm/amd/display: Array offset used before range check
Cruise Hung (1):
drm/amd/display: Reserve instance index notified by DMUB
Dillon Varone (1):
drm/amd/display: Consider sink max slice width limitation for dsc
Ivan Lipski (1):
drm/amd/display: Support HW cursor 180 rot for any number of pipe
splits
Karthi Kandasamy (1):
drm/amd/display: Add control flags to force PSR / replay
Nicholas Carbones (1):
drm/amd/display: DC v3.2.347
Reza Amini (1):
drm/amd/display: Decrease stack size in logging path
Taimur Hassan (1):
drm/amd/display: [FW Promotion] Release 0.1.24.0
Yihan Zhu (1):
drm/amd/display: wait for otg update pending latch before clock
optimization
.../gpu/drm/amd/display/dc/basics/dce_calcs.c | 2 +- .../drm/amd/display/dc/basics/fixpt31_32.c | 2 +- .../gpu/drm/amd/display/dc/basics/vector.c | 6 +- .../drm/amd/display/dc/core/dc_hw_sequencer.c | 2 + drivers/gpu/drm/amd/display/dc/core/dc_stat.c | 2 +- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- drivers/gpu/drm/amd/display/dc/dc_types.h | 4 + .../gpu/drm/amd/display/dc/dce/dce_i2c_hw.c | 2 +- .../gpu/drm/amd/display/dc/dce/dce_i2c_sw.c | 2 +- drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 2 +- .../dc/dml/dcn20/display_rq_dlg_calc_20.c | 2 +- .../dc/dml/dcn20/display_rq_dlg_calc_20v2.c | 2 +- .../dc/dml/dcn21/display_rq_dlg_calc_21.c | 2 +- .../dc/dml/dcn30/display_rq_dlg_calc_30.c | 2 +- .../amd/display/dc/dml/dcn302/dcn302_fpu.c | 2 +- .../amd/display/dc/dml/dcn303/dcn303_fpu.c | 2 +- .../dc/dml/dcn31/display_rq_dlg_calc_31.c | 2 +- .../dc/dml/dcn314/display_rq_dlg_calc_314.c | 2 +- .../drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 4 +- .../amd/display/dc/dml/dcn321/dcn321_fpu.c | 2 +- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 5 ++ .../amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 77 +++++++------------ .../gpu/drm/amd/display/dc/inc/core_types.h | 1 + .../amd/display/dc/inc/hw/timing_generator.h | 1 + .../link/protocols/link_edp_panel_control.c | 4 + .../dc/mmhubbub/dcn20/dcn20_mmhubbub.c | 2 +- .../amd/display/dc/optc/dcn32/dcn32_optc.h | 1 + .../amd/display/dc/optc/dcn35/dcn35_optc.c | 18 +++++ .../dc/resource/dce112/dce112_resource.c | 12 +-- .../dc/resource/dce120/dce120_resource.c | 6 +- .../dc/resource/dcn30/dcn30_resource.c | 2 +- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 3 + .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 + .../gpu/drm/amd/display/dmub/src/dmub_dcn35.c | 7 +- .../drm/amd/display/dmub/src/dmub_srv_stat.c | 8 +- 35 files changed, 112 insertions(+), 87 deletions(-)
Signature · 1 line
2.50.1
PATCH 1/12 drm/amd/display: Add control flags to force PSR / replay
From: Karthi Kandasamy <[email protected]>
To change PSR/Replay behavior based on OS preferences, add some config options.
--- drivers/gpu/drm/amd/display/dc/dc_types.h | 4 ++++ drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 2 +- drivers/gpu/drm/amd/display/dc/inc/core_types.h | 1 + .../amd/display/dc/link/protocols/link_edp_panel_control.c | 4 ++++ 4 files changed, 10 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dc_types.h +4 -0
@@ -628,6 +628,7 @@ struct psr_config {unsigned int line_time_in_us;uint8_t rate_control_caps;uint16_t dsc_slice_height; +bool os_request_force_ffu; };union dmcu_psr_level {
@@ -740,6 +741,7 @@ struct psr_context {unsigned int line_time_in_us;uint8_t rate_control_caps;uint16_t dsc_slice_height; +bool os_request_force_ffu; };struct colorspace_transform {
@@ -1151,6 +1153,8 @@ struct replay_config {bool replay_video_conferencing_optimization_enabled;/* Replay alpm mode */ enum dc_alpm_mode alpm_mode; +/* Replay full screen only */ +bool os_request_force_ffu; };/* Replay feature flags*/
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c +1 -1
@@ -391,7 +391,7 @@ static bool dmub_psr_copy_settings(struct dmub_psr *dmub, sizeof(DP_SINK_DEVICE_STR_ID_1))) link->psr_settings.force_ffu_mode =1 ; - copy_settings_data->force_ffu_mode = link->psr_settings.force_ffu_mode; + copy_settings_data->force_ffu_mode = link->psr_settings.force_ffu_mode || psr_context->os_request_force_ffu; if (((link->dpcd_caps.fec_cap.bits.FEC_CAPABLE && !link->dc->debug.disable_fec) &&
drivers/gpu/drm/amd/display/dc/inc/core_types.h +1 -0
@@ -684,6 +684,7 @@ struct replay_context {/* Controller Id used for Dig Fe source select */ enum controller_id controllerId;unsigned int line_time_in_ns; +bool os_request_force_ffu; };enum dc_replay_enable {
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c +4 -0
@@ -870,6 +870,8 @@ bool edp_setup_psr(struct dc_link *link, psr_context->dsc_slice_height = psr_config->dsc_slice_height; + psr_context->os_request_force_ffu = psr_config->os_request_force_ffu; +if (psr) { link->psr_settings.psr_feature_enabled = psr->funcs->psr_copy_settings (psr, link, psr_context, panel_inst);
@@ -1029,6 +1031,8 @@ bool edp_setup_replay(struct dc_link *link, const struct dc_stream_state *stream replay_context.line_time_in_ns = lineTimeInNs; + replay_context.os_request_force_ffu = link->replay_settings.config.os_request_force_ffu; + link->replay_settings.replay_feature_enabled = replay->funcs->replay_copy_settings (replay, link, &replay_context, panel_inst);if (link->replay_settings.replay_feature_enabled) {
Signature · 1 line
2.50.1
PATCH 2/12 drm/amd/display: Reserve instance index notified by DMUB
In reply to Aurabindo PillaiFrom: Cruise Hung <[email protected]>
[Why]
Reserve instance index notified by DMUB.
[How]
Add new variable for instance index.
--- drivers/gpu/drm/amd/display/dc/core/dc_stat.c | 2 +- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 2 ++ drivers/gpu/drm/amd/display/dmub/src/dmub_srv_stat.c | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_stat.c +1 -1
@@ -65,7 +65,7 @@ void dc_stat_get_dmub_notification(const struct dc *dc, struct dmub_notification notify->type == DMUB_NOTIFICATION_DPIA_NOTIFICATION || notify->type == DMUB_NOTIFICATION_SET_CONFIG_REPLY) { notify->link_index = -get_link_index_from_dpia_port_index (dc, notify->link_index); +get_link_index_from_dpia_port_index (dc, notify->instance); } }
drivers/gpu/drm/amd/display/dmub/dmub_srv.h +2 -0
@@ -598,6 +598,8 @@ struct dmub_notification {enum dmub_notification_type type;uint8_t link_index;uint8_t result; +/* notify instance from DMUB */ +uint8_t instance;bool pending_notification;union {struct aux_reply_data aux_reply;
drivers/gpu/drm/amd/display/dmub/src/dmub_srv_stat.c +4 -4
@@ -71,7 +71,7 @@ enum dmub_status dmub_srv_stat_get_notification(struct dmub_srv *dmub,switch (cmd.cmd_common.header.type) {case DMUB_OUT_CMD__DP_AUX_REPLY : notify->type =DMUB_NOTIFICATION_AUX_REPLY ; - notify->link_index = cmd.dp_aux_reply.control.instance; + notify->instance = cmd.dp_aux_reply.control.instance; notify->result = cmd.dp_aux_reply.control.result;dmub_memcpy ((void *)¬ify->aux_reply, (void *)&cmd.dp_aux_reply.reply_data,sizeof (struct aux_reply_data ));
@@ -84,17 +84,17 @@ enum dmub_status dmub_srv_stat_get_notification(struct dmub_srv *dmub, notify->type =DMUB_NOTIFICATION_HPD_IRQ ; } - notify->link_index = cmd.dp_hpd_notify.hpd_data.instance; + notify->instance = cmd.dp_hpd_notify.hpd_data.instance; notify->result =AUX_RET_SUCCESS ;break ;case DMUB_OUT_CMD__SET_CONFIG_REPLY : notify->type =DMUB_NOTIFICATION_SET_CONFIG_REPLY ; - notify->link_index = cmd.set_config_reply.set_config_reply_control.instance; + notify->instance = cmd.set_config_reply.set_config_reply_control.instance; notify->sc_status = cmd.set_config_reply.set_config_reply_control.status;break ;case DMUB_OUT_CMD__DPIA_NOTIFICATION : notify->type =DMUB_NOTIFICATION_DPIA_NOTIFICATION ; - notify->link_index = cmd.dpia_notification.payload.header.instance; + notify->instance = cmd.dpia_notification.payload.header.instance;break ;case DMUB_OUT_CMD__HPD_SENSE_NOTIFY : notify->type =DMUB_NOTIFICATION_HPD_SENSE_NOTIFY ;
Signature · 1 line
2.50.1
PATCH 3/12 drm/amd/display: track dpia support
In reply to Aurabindo PillaiFrom: Ausef Yousof <[email protected]>
[why&how]
initialize a flag to track if we previously
supported dpia and write that to boot options
--- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 1 + drivers/gpu/drm/amd/display/dmub/src/dmub_dcn35.c | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dmub/dmub_srv.h +1 -0
@@ -568,6 +568,7 @@ struct dmub_srv {bool sw_init;bool hw_init; +bool dpia_supported;uint64_t fb_base;uint64_t fb_offset;
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn35.c +4 -3
@@ -400,13 +400,14 @@ union dmub_fw_boot_options dmub_dcn35_get_fw_boot_option(struct dmub_srv *dmub)void dmub_dcn35_enable_dmub_boot_options (struct dmub_srv *dmub,const struct dmub_srv_hw_params *params) {union dmub_fw_boot_options boot_options = {0 }; -union dmub_fw_boot_options cur_boot_options = {0 }; - cur_boot_options =dmub_dcn35_get_fw_boot_option (dmub); +if (!dmub->dpia_supported) { + dmub->dpia_supported =dmub_dcn35_get_fw_boot_option (dmub).bits.enable_dpia; + } boot_options.bits.z10_disable = params->disable_z10; boot_options.bits.dpia_supported = params->dpia_supported; - boot_options.bits.enable_dpia = cur_boot_options.bits.enable_dpia && !params->disable_dpia; + boot_options.bits.enable_dpia = dmub->dpia_supported && !params->disable_dpia; boot_options.bits.usb4_cm_version = params->usb4_cm_version; boot_options.bits.dpia_hpd_int_enable_supported = params->dpia_hpd_int_enable_supported; boot_options.bits.power_optimization = params->power_optimization;
Signature · 1 line
2.50.1
PATCH 4/12 drm/amd/display: Decrease stack size in logging path
In reply to Aurabindo PillaiFrom: Reza Amini <[email protected]>
[why]
Reducing stack size can avoid stack over flow
[how]
Make local variables const and static so they are not on the stack.
--- drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c +2 -2
@@ -328,7 +328,7 @@ static void dcn10_log_hubp_states(struct dc *dc, void *log_ctx) }DTN_INFO ("\n=======HUBP FL======\n" ); -char pLabels[18 ][50 ] = { +static const char *const pLabels[] = {"inst" ,"Enabled " ,"Done " ,"adr_mode " ,"width " ,"mpc_width " ,"tmz" ,"xbar_sel_R" ,"xbar_sel_G" ,"xbar_sel_B" ,"adr_hi " ,"adr_low" ,"REFCYC" ,"Bias" ,"Scale" ,"Mode" ,
@@ -552,7 +552,7 @@ static void dcn10_log_color_state(struct dc *dc, dc->caps.color.mpc.ogam_ram, dc->caps.color.mpc.ocsc);DTN_INFO ("===== MPC RMCM 3DLUT =====\n" ); -char pLabels[19 ][50 ] = { +static const char *const pLabels[] = {"MPCC" ,"SIZE" ,"MODE" ,"MODE_CUR" ,"RD_SEL" ,"30BIT_EN" ,"WR_EN_MASK" ,"RAM_SEL" ,"OUT_NORM_FACTOR" ,"FL_SEL" ,"OUT_OFFSET" ,"OUT_SCALE" ,"FL_DONE" ,"SOFT_UNDERFLOW" ,"HARD_UNDERFLOW" ,
Signature · 1 line
2.50.1
PATCH 5/12 drm/amd/display: Support HW cursor 180 rot for any number of pipe splits
In reply to Aurabindo PillaiFrom: Ivan Lipski <[email protected]>
[Why]
For the HW cursor, its current position in the pipe_ctx->stream struct is not affected by the 180 rotation, i. e. the top left corner is still at 0,0. However, the DPP & HUBP set_cursor_position functions require rotated position.
The current approach is hard-coded for ODM 2:1, thus it's failing for ODM 4:1, resulting in a double cursor.
[How]
Instead of calculating the new cursor position relatively to the viewports, we calculate it using a viewavable clip_rect of each plane.
The clip_rects are first offset and scaled to the same space as the src_rect, i. e. Stream space -> Plane space.
In case of a pipe split, which divides the plane into 2 or more viewports, the clip_rect is the union of all the viewports of the given plane.
With the assumption that the viewports in HUBP's set_cursor_position are in the Plane space as well, it should produce a correct cursor position for any number of pipe splits.
--- .../amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 73 +++++++------------ 1 file changed, 27 insertions(+), 46 deletions(-)
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c +27 -46
@@ -3663,6 +3663,8 @@ void dcn10_set_cursor_position(struct pipe_ctx *pipe_ctx)int y_plane = pipe_ctx->plane_state->dst_rect.y;int x_pos = pos_cpy.x;int y_pos = pos_cpy.y; +int clip_x = pipe_ctx->plane_state->clip_rect.x; +int clip_width = pipe_ctx->plane_state->clip_rect.width;if ((pipe_ctx->top_pipe !=NULL ) || (pipe_ctx->bottom_pipe !=NULL )) { if ((pipe_ctx->plane_state->src_rect.width != pipe_ctx->plane_res.scl_data.viewport.width) ||
@@ -3681,7 +3683,7 @@ void dcn10_set_cursor_position(struct pipe_ctx *pipe_ctx)*/ /** -* Translate cursor from stream space to plane space. +* Translate cursor and clip offset from stream space to plane space. * * If the cursor is scaled then we need to scale the position * to be in the approximately correct place. We can't do anything
@@ -3698,6 +3700,10 @@ void dcn10_set_cursor_position(struct pipe_ctx *pipe_ctx) pipe_ctx->plane_state->dst_rect.width; y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.height / pipe_ctx->plane_state->dst_rect.height; + clip_x = (clip_x - x_plane) * pipe_ctx->plane_state->src_rect.width / + pipe_ctx->plane_state->dst_rect.width; + clip_width = clip_width * pipe_ctx->plane_state->src_rect.width / + pipe_ctx->plane_state->dst_rect.width; }/**
@@ -3744,30 +3750,18 @@ void dcn10_set_cursor_position(struct pipe_ctx *pipe_ctx)if (param.rotation ==ROTATION_ANGLE_0 ) { -int viewport_width = - pipe_ctx->plane_res.scl_data.viewport.width; -int viewport_x = - pipe_ctx->plane_res.scl_data.viewport.x;if (param.mirror) { -if (pipe_split_on || odm_combine_on) { -if (pos_cpy.x >= viewport_width + viewport_x) { - pos_cpy.x =2 * viewport_width - - pos_cpy.x +2 * viewport_x; - }else { -uint32_t temp_x = pos_cpy.x; - - pos_cpy.x =2 * viewport_x - pos_cpy.x; -if (temp_x >= viewport_x + - (int )hubp->curs_attr.width || pos_cpy.x - <= (int )hubp->curs_attr.width + - pipe_ctx->plane_state->src_rect.x) { - pos_cpy.x =2 * viewport_width - temp_x; - } - } - }else { - pos_cpy.x = viewport_width - pos_cpy.x +2 * viewport_x; - } +/* +* The plane is split into multiple viewports. +* The combination of all viewports span the +* entirety of the clip rect. +* +* For no pipe_split, viewport_width is represents +* the full width of the clip_rect, so we can just +* mirror it. +*/ + pos_cpy.x = clip_width - pos_cpy.x +2 * clip_x; } }// Swap axis and mirror horizontally
@@ -3837,30 +3831,17 @@ void dcn10_set_cursor_position(struct pipe_ctx *pipe_ctx) }// Mirror horizontally and vertically else if (param.rotation ==ROTATION_ANGLE_180 ) { -int viewport_width = - pipe_ctx->plane_res.scl_data.viewport.width; -int viewport_x = - pipe_ctx->plane_res.scl_data.viewport.x; -if (!param.mirror) { -if (pipe_split_on || odm_combine_on) { -if (pos_cpy.x >= viewport_width + viewport_x) { - pos_cpy.x =2 * viewport_width - - pos_cpy.x +2 * viewport_x; - }else { -uint32_t temp_x = pos_cpy.x; - - pos_cpy.x =2 * viewport_x - pos_cpy.x; -if (temp_x >= viewport_x + - (int )hubp->curs_attr.width || pos_cpy.x - <= (int )hubp->curs_attr.width + - pipe_ctx->plane_state->src_rect.x) { - pos_cpy.x = temp_x + viewport_width; - } - } - }else { - pos_cpy.x = viewport_width - pos_cpy.x +2 * viewport_x; - } +/* +* The plane is split into multiple viewports. +* The combination of all viewports span the +* entirety of the clip rect. +* +* For no pipe_split, viewport_width is represents +* the full width of the clip_rect, so we can just +* mirror it. +*/ + pos_cpy.x = clip_width - pos_cpy.x +2 * clip_x; }/**
Signature · 1 line
2.50.1
PATCH 6/12 drm/amd/display: Multiplication result converted to larger type
In reply to Aurabindo PillaiFrom: Clay King <[email protected]>
Consolidating multiple CodeQL Fixes for alerts with rule id: cpp/integer-multiplication-cast-to-long
--- drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c | 2 +- drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c | 2 +- drivers/gpu/drm/amd/display/dc/basics/vector.c | 6 +++--- drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 2 +- .../amd/display/dc/mmhubbub/dcn20/dcn20_mmhubbub.c | 2 +- .../amd/display/dc/resource/dce112/dce112_resource.c | 12 ++++++------ .../amd/display/dc/resource/dce120/dce120_resource.c | 6 +++--- 7 files changed, 16 insertions(+), 16 deletions(-)
drivers/gpu/drm/amd/display/dc/basics/dce_calcs.c +1 -1
@@ -1136,7 +1136,7 @@ static void calculate_bandwidth( } } } - data->total_dmifmc_urgent_trips =bw_ceil2 (bw_div (data->total_requests_for_adjusted_dmif_size, (bw_add (dceip->dmif_request_buffer_size,bw_int_to_fixed (vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel * data->number_of_dram_channels)))),bw_int_to_fixed (1 )); + data->total_dmifmc_urgent_trips =bw_ceil2 (bw_div (data->total_requests_for_adjusted_dmif_size, (bw_add (dceip->dmif_request_buffer_size,bw_int_to_fixed ((uint64_t )vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel * data->number_of_dram_channels)))),bw_int_to_fixed (1 )); data->total_dmifmc_urgent_latency =bw_mul (vbios->dmifmc_urgent_latency, data->total_dmifmc_urgent_trips); data->total_display_reads_required_data =bw_int_to_fixed (0 ); data->total_display_reads_required_dram_access_data =bw_int_to_fixed (0 );
drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c +1 -1
@@ -284,7 +284,7 @@ struct fixed31_32 dc_fixpt_cos(struct fixed31_32 arg)dc_fixpt_mul ( square, res), - n * (n - 1))); + (long long)n * (n - 1))); n -=2 ; }while (n !=0 );
drivers/gpu/drm/amd/display/dc/basics/vector.c +3 -3
@@ -170,7 +170,7 @@ bool dal_vector_remove_at_index(memmove ( vector->container + (index * vector->struct_size), vector->container + ((index +1 ) * vector->struct_size), - (vector->count - index -1 ) * vector->struct_size); + (size_t )(vector->count - index -1 ) * vector->struct_size); vector->count -=1 ;return true;
@@ -219,7 +219,7 @@ bool dal_vector_insert_at(memmove ( insert_address + vector->struct_size, insert_address, - vector->struct_size * (vector->count - position)); + (size_t )vector->struct_size * (vector->count - position)); memmove( insert_address,
@@ -271,7 +271,7 @@ struct vector *dal_vector_clone(/* copy vector's data */ memmove (vec_cloned->container, vector->container, - vec_cloned->struct_size * vec_cloned->capacity); + (size_t )vec_cloned->struct_size * vec_cloned->capacity);return vec_cloned; }
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +1 -1
@@ -3401,7 +3401,7 @@ bool dcn32_allow_subvp_with_active_margin(struct pipe_ctx *pipe)uint32_t height = subvp_active_margin_list.res[i].height; refresh_rate = (pipe->stream->timing.pix_clk_100hz * (uint64_t )100 + - pipe->stream->timing.v_total * pipe->stream->timing.h_total - (uint64_t )1 ); + (uint64_t )pipe->stream->timing.v_total * pipe->stream->timing.h_total - (uint64_t )1 ); refresh_rate =div_u64 (refresh_rate, pipe->stream->timing.v_total); refresh_rate =div_u64 (refresh_rate, pipe->stream->timing.h_total);
drivers/gpu/drm/amd/display/dc/mmhubbub/dcn20/dcn20_mmhubbub.c +1 -1
@@ -284,7 +284,7 @@ void mcifwb2_dump_frame(struct mcif_wb *mcif_wb,REG_UPDATE (MCIF_WB_BUFMGR_SW_CONTROL ,MCIF_WB_BUFMGR_SW_LOCK ,0xf ); -memcpy (dest_luma_buffer, luma_buffer, mcif_params->luma_pitch * dest_height); +memcpy (dest_luma_buffer, luma_buffer, (size_t )mcif_params->luma_pitch * dest_height);memcpy (dest_chroma_buffer, chroma_buffer, mcif_params->chroma_pitch * dest_height /2 );REG_UPDATE (MCIF_WB_BUFMGR_SW_CONTROL ,MCIF_WB_BUFMGR_SW_LOCK ,0x0 );
drivers/gpu/drm/amd/display/dc/resource/dce112/dce112_resource.c +6 -6
@@ -1111,12 +1111,12 @@ static void bw_calcs_data_update_from_pplib(struct dc *dc) &clks); dc->bw_vbios->low_yclk =bw_frc_to_fixed ( - clks.clocks_in_khz[0 ] * memory_type_multiplier,1000 ); + (int64_t )clks.clocks_in_khz[0 ] * memory_type_multiplier,1000 ); dc->bw_vbios->mid_yclk =bw_frc_to_fixed ( - clks.clocks_in_khz[clks.num_levels>>1 ] * memory_type_multiplier, + (int64_t )clks.clocks_in_khz[clks.num_levels>>1 ] * memory_type_multiplier,1000 ); dc->bw_vbios->high_yclk =bw_frc_to_fixed ( - clks.clocks_in_khz[clks.num_levels-1 ] * memory_type_multiplier, + (int64_t )clks.clocks_in_khz[clks.num_levels-1 ] * memory_type_multiplier,1000 );return ;
@@ -1152,12 +1152,12 @@ static void bw_calcs_data_update_from_pplib(struct dc *dc)* YCLK = UMACLK*m_memoryTypeMultiplier */ dc->bw_vbios->low_yclk =bw_frc_to_fixed ( - mem_clks.data[0 ].clocks_in_khz * memory_type_multiplier,1000 ); + (int64_t )mem_clks.data[0 ].clocks_in_khz * memory_type_multiplier,1000 ); dc->bw_vbios->mid_yclk =bw_frc_to_fixed ( - mem_clks.data[mem_clks.num_levels>>1 ].clocks_in_khz * memory_type_multiplier, + (int64_t )mem_clks.data[mem_clks.num_levels>>1 ].clocks_in_khz * memory_type_multiplier,1000 ); dc->bw_vbios->high_yclk =bw_frc_to_fixed ( - mem_clks.data[mem_clks.num_levels-1 ].clocks_in_khz * memory_type_multiplier, + (int64_t )mem_clks.data[mem_clks.num_levels-1 ].clocks_in_khz * memory_type_multiplier,1000 );/* Now notify PPLib/SMU about which Watermarks sets they should select
drivers/gpu/drm/amd/display/dc/resource/dce120/dce120_resource.c +3 -3
@@ -990,12 +990,12 @@ static void bw_calcs_data_update_from_pplib(struct dc *dc) memory_type_multiplier =MEMORY_TYPE_HBM ; dc->bw_vbios->low_yclk =bw_frc_to_fixed ( - mem_clks.data[0 ].clocks_in_khz * memory_type_multiplier,1000 ); + (int64_t )mem_clks.data[0 ].clocks_in_khz * memory_type_multiplier,1000 ); dc->bw_vbios->mid_yclk =bw_frc_to_fixed ( - mem_clks.data[mem_clks.num_levels>>1 ].clocks_in_khz * memory_type_multiplier, + (int64_t )mem_clks.data[mem_clks.num_levels>>1 ].clocks_in_khz * memory_type_multiplier,1000 ); dc->bw_vbios->high_yclk =bw_frc_to_fixed ( - mem_clks.data[mem_clks.num_levels-1 ].clocks_in_khz * memory_type_multiplier, + (int64_t )mem_clks.data[mem_clks.num_levels-1 ].clocks_in_khz * memory_type_multiplier,1000 );/* Now notify PPLib/SMU about which Watermarks sets they should select
Signature · 1 line
2.50.1
PATCH 7/12 drm/amd/display: Incorrect 'not' operator usage
In reply to Aurabindo PillaiFrom: Clay King <[email protected]>
Consolidating multiple CodeQL Fixes for alerts with rule id: cpp/incorrect-not-operator-usage
--- drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c | 2 +- drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c | 2 +- .../gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c | 2 +- .../gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c | 2 +- .../gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c | 2 +- .../gpu/drm/amd/display/dc/dml/dcn30/display_rq_dlg_calc_30.c | 2 +- .../gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c | 2 +- .../gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c +1 -1
@@ -591,7 +591,7 @@ static bool dce_i2c_hw_engine_submit_payload(struct dce_i2c_hw *dce_i2c_hw,DCE_I2C_TRANSACTION_ACTION_I2C_WRITE ; - request.address = (uint8_t ) ((payload->address <<1 ) | !payload->write); + request.address = (uint8_t ) ((payload->address <<1 ) | (payload->write ?0 :1 )); request.length = payload->length; request.data = payload->data;
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c +1 -1
@@ -451,7 +451,7 @@ static bool dce_i2c_sw_engine_submit_payload(struct dce_i2c_sw *engine, DCE_I2C_TRANSACTION_ACTION_I2C_WRITE_MOT :DCE_I2C_TRANSACTION_ACTION_I2C_WRITE ; - request.address = (uint8_t ) ((payload->address <<1 ) | !payload->write); + request.address = (uint8_t ) ((payload->address <<1 ) | (payload->write ?0 :1 )); request.length = payload->length; request.data = payload->data;
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c +1 -1
@@ -646,7 +646,7 @@ static void get_meta_and_pte_attr(struct display_mode_lib *mode_lib,// the dpte_group_bytes is reduced for the specific case of vertical // access of a tile surface that has dpte request of 8x1 ptes. -if (!surf_linear & (log2_dpte_req_height_ptes ==0 ) & surf_vert)//reduced, in this case, will have page fault within a group +if (!surf_linear && (log2_dpte_req_height_ptes ==0 ) && surf_vert)//reduced, in this case, will have page fault within a group rq_sizing_param->dpte_group_bytes =512 ;else //full size
drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c +1 -1
@@ -646,7 +646,7 @@ static void get_meta_and_pte_attr(struct display_mode_lib *mode_lib,// the dpte_group_bytes is reduced for the specific case of vertical // access of a tile surface that has dpte request of 8x1 ptes. -if (!surf_linear & (log2_dpte_req_height_ptes ==0 ) & surf_vert)//reduced, in this case, will have page fault within a group +if (!surf_linear && (log2_dpte_req_height_ptes ==0 ) && surf_vert)//reduced, in this case, will have page fault within a group rq_sizing_param->dpte_group_bytes =512 ;else //full size
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c +1 -1
@@ -652,7 +652,7 @@ static void get_meta_and_pte_attr(if (hostvm_enable) rq_sizing_param->dpte_group_bytes =512 ;else { -if (!surf_linear & (log2_dpte_req_height_ptes ==0 ) & surf_vert)//reduced, in this case, will have page fault within a group +if (!surf_linear && (log2_dpte_req_height_ptes ==0 ) && surf_vert)//reduced, in this case, will have page fault within a group rq_sizing_param->dpte_group_bytes =512 ;else //full size
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_rq_dlg_calc_30.c +1 -1
@@ -620,7 +620,7 @@ static void get_meta_and_pte_attr(struct display_mode_lib *mode_lib,if (hostvm_enable) rq_sizing_param->dpte_group_bytes =512 ;else { -if (!surf_linear & (log2_dpte_req_height_ptes ==0 ) & surf_vert)//reduced, in this case, will have page fault within a group +if (!surf_linear && (log2_dpte_req_height_ptes ==0 ) && surf_vert)//reduced, in this case, will have page fault within a group rq_sizing_param->dpte_group_bytes =512 ;else rq_sizing_param->dpte_group_bytes =2048 ;
drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c +1 -1
@@ -615,7 +615,7 @@ static void get_meta_and_pte_attr(if (hostvm_enable) rq_sizing_param->dpte_group_bytes =512 ;else { -if (!surf_linear & (log2_dpte_req_height_ptes ==0 ) & surf_vert)//reduced, in this case, will have page fault within a group +if (!surf_linear && (log2_dpte_req_height_ptes ==0 ) && surf_vert)//reduced, in this case, will have page fault within a group rq_sizing_param->dpte_group_bytes =512 ;else rq_sizing_param->dpte_group_bytes =2048 ;
drivers/gpu/drm/amd/display/dc/dml/dcn314/display_rq_dlg_calc_314.c +1 -1
@@ -703,7 +703,7 @@ static void get_meta_and_pte_attr(if (hostvm_enable) rq_sizing_param->dpte_group_bytes =512 ;else { -if (!surf_linear & (log2_dpte_req_height_ptes ==0 ) & surf_vert)//reduced, in this case, will have page fault within a group +if (!surf_linear && (log2_dpte_req_height_ptes ==0 ) && surf_vert)//reduced, in this case, will have page fault within a group rq_sizing_param->dpte_group_bytes =512 ;else rq_sizing_param->dpte_group_bytes =2048 ;
Signature · 1 line
2.50.1
PATCH 8/12 drm/amd/display: wait for otg update pending latch before clock optimization
In reply to Aurabindo PillaiFrom: Yihan Zhu <[email protected]>
[WHY & HOW]
OTG pending update unlatched will cause system fail, wait OTG fully disabled to avoid this error.
--- .../drm/amd/display/dc/core/dc_hw_sequencer.c | 2 ++ .../amd/display/dc/inc/hw/timing_generator.h | 1 + .../drm/amd/display/dc/optc/dcn32/dcn32_optc.h | 1 + .../drm/amd/display/dc/optc/dcn35/dcn35_optc.c | 18 ++++++++++++++++++ 4 files changed, 22 insertions(+)
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c +2 -0
@@ -1177,6 +1177,8 @@ void hwss_wait_for_odm_update_pending_complete(struct dc *dc, struct dc_state *c tg = otg_master->stream_res.tg;if (tg->funcs->wait_odm_doublebuffer_pending_clear) tg->funcs->wait_odm_doublebuffer_pending_clear (tg); +if (tg->funcs->wait_otg_disable) + tg->funcs->wait_otg_disable (tg); }/* ODM update may require to reprogram blank pattern for each OPP */
drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h +1 -0
@@ -374,6 +374,7 @@ struct timing_generator_funcs {void (*wait_drr_doublebuffer_pending_clear)(struct timing_generator *tg);void (*set_long_vtotal)(struct timing_generator *optc,const struct long_vtotal_params *params);void (*wait_odm_doublebuffer_pending_clear)(struct timing_generator *tg); +void (*wait_otg_disable)(struct timing_generator *optc);bool (*get_optc_double_buffer_pending)(struct timing_generator *tg);bool (*get_otg_double_buffer_pending)(struct timing_generator *tg);bool (*get_pipe_update_pending)(struct timing_generator *tg);
drivers/gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.h +1 -0
@@ -62,6 +62,7 @@SF (OTG0_OTG_CONTROL ,OTG_DISABLE_POINT_CNTL , mask_sh),\SF (OTG0_OTG_CONTROL ,OTG_FIELD_NUMBER_CNTL , mask_sh),\SF (OTG0_OTG_CONTROL ,OTG_OUT_MUX , mask_sh),\ +SF (OTG0_OTG_CONTROL ,OTG_CURRENT_MASTER_EN_STATE , mask_sh),\SF (OTG0_OTG_STEREO_CONTROL ,OTG_STEREO_EN , mask_sh),\SF (OTG0_OTG_STEREO_CONTROL ,OTG_STEREO_SYNC_OUTPUT_LINE_NUM , mask_sh),\ SF(OTG0_OTG_STEREO_CONTROL, OTG_STEREO_SYNC_OUTPUT_POLARITY, mask_sh),\
drivers/gpu/drm/amd/display/dc/optc/dcn35/dcn35_optc.c +18 -0
@@ -162,6 +162,8 @@ static bool optc35_disable_crtc(struct timing_generator *optc)REG_WAIT (OTG_CLOCK_CONTROL ,OTG_BUSY ,0 ,1 ,100000 ); +REG_WAIT (OTG_CONTROL ,OTG_CURRENT_MASTER_EN_STATE ,0 ,1 ,100000 ); +optc1_clear_optc_underflow (optc);return true;
@@ -428,6 +430,21 @@ static void optc35_set_long_vtotal( } } +static void optc35_wait_otg_disable (struct timing_generator *optc) +{ +struct optc *optc1; +uint32_t is_master_en; + +if (!optc || !optc->ctx) +return ; + + optc1 =DCN10TG_FROM_TG (optc); + +REG_GET (OTG_CONTROL ,OTG_MASTER_EN , &is_master_en); +if (!is_master_en) +REG_WAIT (OTG_CLOCK_CONTROL ,OTG_CURRENT_MASTER_EN_STATE ,0 ,1 ,100000 ); +} +static const struct timing_generator_funcs dcn35_tg_funcs = { .validate_timing = optc1_validate_timing, .program_timing = optc1_program_timing,
@@ -479,6 +496,7 @@ static const struct timing_generator_funcs dcn35_tg_funcs = { .set_odm_bypass = optc32_set_odm_bypass, .set_odm_combine = optc35_set_odm_combine, .get_optc_source = optc2_get_optc_source, + .wait_otg_disable = optc35_wait_otg_disable, .set_h_timing_div_manual_mode = optc32_set_h_timing_div_manual_mode, .set_out_mux = optc3_set_out_mux, .set_drr_trigger_window = optc3_set_drr_trigger_window,
Signature · 1 line
2.50.1
PATCH 9/12 drm/amd/display: Array offset used before range check
In reply to Aurabindo PillaiFrom: Clay King <[email protected]>
Consolidating multiple CodeQL Fixes for alerts with rule id: cpp/offset-use-before-range-check
--- drivers/gpu/drm/amd/display/dc/dml/dcn302/dcn302_fpu.c | 2 +- drivers/gpu/drm/amd/display/dc/dml/dcn303/dcn303_fpu.c | 2 +- drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 2 +- drivers/gpu/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c | 2 +- drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn302/dcn302_fpu.c +1 -1
@@ -280,7 +280,7 @@ void dcn302_fpu_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_p j =0 ;/* create the final dcfclk and uclk table */ while (i < num_dcfclk_sta_targets && j < num_uclk_states && num_states <DC__VOLTAGE_STATES ) { -if (dcfclk_sta_targets[i] < optimal_dcfclk_for_uclk[j] && i < num_dcfclk_sta_targets) { +if (dcfclk_sta_targets[i] < optimal_dcfclk_for_uclk[j]) { dcfclk_mhz[num_states] = dcfclk_sta_targets[i]; dram_speed_mts[num_states++] = optimal_uclk_for_dcfclk_sta_targets[i++]; }else {
drivers/gpu/drm/amd/display/dc/dml/dcn303/dcn303_fpu.c +1 -1
@@ -285,7 +285,7 @@ void dcn303_fpu_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_p j =0 ;/* create the final dcfclk and uclk table */ while (i < num_dcfclk_sta_targets && j < num_uclk_states && num_states <DC__VOLTAGE_STATES ) { -if (dcfclk_sta_targets[i] < optimal_dcfclk_for_uclk[j] && i < num_dcfclk_sta_targets) { +if (dcfclk_sta_targets[i] < optimal_dcfclk_for_uclk[j]) { dcfclk_mhz[num_states] = dcfclk_sta_targets[i]; dram_speed_mts[num_states++] = optimal_uclk_for_dcfclk_sta_targets[i++]; }else {
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +1 -1
@@ -3229,7 +3229,7 @@ void dcn32_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_pa j =0 ;// create the final dcfclk and uclk table while (i < num_dcfclk_sta_targets && j < num_uclk_states && num_states <DC__VOLTAGE_STATES ) { -if (dcfclk_sta_targets[i] < optimal_dcfclk_for_uclk[j] && i < num_dcfclk_sta_targets) { +if (dcfclk_sta_targets[i] < optimal_dcfclk_for_uclk[j]) { dcfclk_mhz[num_states] = dcfclk_sta_targets[i]; dram_speed_mts[num_states++] = optimal_uclk_for_dcfclk_sta_targets[i++]; }else {
drivers/gpu/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c +1 -1
@@ -779,7 +779,7 @@ void dcn321_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_p j =0 ;// create the final dcfclk and uclk table while (i < num_dcfclk_sta_targets && j < num_uclk_states && num_states <DC__VOLTAGE_STATES ) { -if (dcfclk_sta_targets[i] < optimal_dcfclk_for_uclk[j] && i < num_dcfclk_sta_targets) { +if (dcfclk_sta_targets[i] < optimal_dcfclk_for_uclk[j]) { dcfclk_mhz[num_states] = dcfclk_sta_targets[i]; dram_speed_mts[num_states++] = optimal_uclk_for_dcfclk_sta_targets[i++]; }else {
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c +1 -1
@@ -2192,7 +2192,7 @@ void dcn30_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params j =0 ;// create the final dcfclk and uclk table while (i < num_dcfclk_sta_targets && j < num_uclk_states && num_states <DC__VOLTAGE_STATES ) { -if (dcfclk_sta_targets[i] < optimal_dcfclk_for_uclk[j] && i < num_dcfclk_sta_targets) { +if (dcfclk_sta_targets[i] < optimal_dcfclk_for_uclk[j]) { dcfclk_mhz[num_states] = dcfclk_sta_targets[i]; dram_speed_mts[num_states++] = optimal_uclk_for_dcfclk_sta_targets[i++]; }else {
Signature · 1 line
2.50.1
PATCH 10/12 drm/amd/display: Consider sink max slice width limitation for dsc
In reply to Aurabindo PillaiFrom: Dillon Varone <[email protected]>
[WHY&HOW]
The sink max slice width limitation should be considered for DSC, but was removed in "refactor DSC cap calculations".
This patch adds it back and takes the valid minimum between the sink and source.
--- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c +5 -0
@@ -1157,6 +1157,11 @@ static bool setup_dsc_config(if (!is_dsc_possible) goto done; +/* increase miniumum slice count to meet sink slice width limitations */ + min_slices_h =dc_fixpt_ceil (dc_fixpt_max ( +dc_fixpt_div_int (dc_fixpt_from_int (pic_width), dsc_common_caps.max_slice_width),// sink min +dc_fixpt_from_int (min_slices_h)));// source min + min_slices_h =fit_num_slices_up (dsc_common_caps.slice_caps, min_slices_h);/* increase minimum slice count to meet sink throughput limitations */
Signature · 1 line
2.50.1
PATCH 11/12 drm/amd/display: [FW Promotion] Release 0.1.24.0
In reply to Aurabindo PillaiFrom: Taimur Hassan <[email protected]>
Add two new IPS residency data modes.
--- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +4 -0
@@ -6021,6 +6021,8 @@ enum ips_residency_mode {IPS_RESIDENCY__IPS1_RCG ,IPS_RESIDENCY__IPS1_ONO2_ON ,IPS_RESIDENCY__IPS1_Z8_RETENTION , +IPS_RESIDENCY__PG_ONO_LAST_SEEN_IN_IPS , + IPS_RESIDENCY__PG_ONO_CURRENT_STATE };#define NUM_IPS_HISTOGRAM_BUCKETS 16
@@ -6034,6 +6036,8 @@ struct dmub_ips_residency_info {uint32_t histogram[NUM_IPS_HISTOGRAM_BUCKETS ];uint64_t total_time_us;uint64_t total_inactive_time_us; +uint32_t ono_pg_state_at_collection; +uint32_t ono_pg_state_last_seen_in_ips; };/**
Signature · 1 line
2.50.1
PATCH 12/12 drm/amd/display: DC v3.2.347
In reply to Aurabindo PillaiFrom: Nicholas Carbones <[email protected]>
DC Release v3.2.347
* Firmware releases for multiple asics
* CodeQL fixes
* Fix for double cursor with 180 degree rotation on large resolutions
* Misc bug fixes for DSC, PSR/Replay, DPIA etc.
--- 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
@@ -55,7 +55,7 @@ struct aux_payload;struct set_config_cmd_payload ;struct dmub_notification ; -#define DC_VER "3.2.346" +#define DC_VER "3.2.347"/** * MAX_SURFACES - representative of the upper bound of surfaces that can be piped to a single CRTC
Signature · 1 line
2.50.1
[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 -> 644de134936a06a58ae5b90d7eb7b9736dcea140 -> drm/amdgpu: Allocate psp fw private buffer in vram) with new patches added on top of it.
Tested on Ubuntu 24.04.3, on Wayland and X11, using KDE Plasma and Gnome.
Thank you,
Dan Wheeler
Sr. Technologist | AMD
SW Display
------------------------------------------------------------------------------------------------------------------
1 Commerce Valley Dr E, Thornhill, ON L3T 7X6
amd.com
-----Original Message-----
From: Aurabindo Pillai <[email protected]>
Sent: Wednesday, August 20, 2025 4:20 PM
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]>
Subject: [PATCH 00/12] DC Patches for 25 Aug 2025
This DC patchset brings improvements in multiple areas. In summary, we have:
* Firmware releases for multiple asics
* CodeQL fixes
* Fix for double cursor with 180 degree rotation on large resolutions
* Misc bug fixes for DSC, PSR/Replay, DPIA etc.
___
Ausef Yousof (1):
drm/amd/display: track dpia support
Clay King (3):
drm/amd/display: Multiplication result converted to larger type drm/amd/display: Incorrect 'not' operator usage drm/amd/display: Array offset used before range check
Cruise Hung (1):
drm/amd/display: Reserve instance index notified by DMUB
Dillon Varone (1):
drm/amd/display: Consider sink max slice width limitation for dsc
Ivan Lipski (1):
drm/amd/display: Support HW cursor 180 rot for any number of pipe
splits
Karthi Kandasamy (1):
drm/amd/display: Add control flags to force PSR / replay
Nicholas Carbones (1):
drm/amd/display: DC v3.2.347
Reza Amini (1):
drm/amd/display: Decrease stack size in logging path
Taimur Hassan (1):
drm/amd/display: [FW Promotion] Release 0.1.24.0
Yihan Zhu (1):
drm/amd/display: wait for otg update pending latch before clock
optimization
.../gpu/drm/amd/display/dc/basics/dce_calcs.c | 2 +- .../drm/amd/display/dc/basics/fixpt31_32.c | 2 +- .../gpu/drm/amd/display/dc/basics/vector.c | 6 +- .../drm/amd/display/dc/core/dc_hw_sequencer.c | 2 + drivers/gpu/drm/amd/display/dc/core/dc_stat.c | 2 +- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- drivers/gpu/drm/amd/display/dc/dc_types.h | 4 + .../gpu/drm/amd/display/dc/dce/dce_i2c_hw.c | 2 +- .../gpu/drm/amd/display/dc/dce/dce_i2c_sw.c | 2 +- drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 2 +- .../dc/dml/dcn20/display_rq_dlg_calc_20.c | 2 +- .../dc/dml/dcn20/display_rq_dlg_calc_20v2.c | 2 +- .../dc/dml/dcn21/display_rq_dlg_calc_21.c | 2 +- .../dc/dml/dcn30/display_rq_dlg_calc_30.c | 2 +- .../amd/display/dc/dml/dcn302/dcn302_fpu.c | 2 +- .../amd/display/dc/dml/dcn303/dcn303_fpu.c | 2 +- .../dc/dml/dcn31/display_rq_dlg_calc_31.c | 2 +- .../dc/dml/dcn314/display_rq_dlg_calc_314.c | 2 +- .../drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 4 +- .../amd/display/dc/dml/dcn321/dcn321_fpu.c | 2 +- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 5 ++ .../amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 77 +++++++------------ .../gpu/drm/amd/display/dc/inc/core_types.h | 1 + .../amd/display/dc/inc/hw/timing_generator.h | 1 + .../link/protocols/link_edp_panel_control.c | 4 + .../dc/mmhubbub/dcn20/dcn20_mmhubbub.c | 2 +- .../amd/display/dc/optc/dcn32/dcn32_optc.h | 1 + .../amd/display/dc/optc/dcn35/dcn35_optc.c | 18 +++++ .../dc/resource/dce112/dce112_resource.c | 12 +-- .../dc/resource/dce120/dce120_resource.c | 6 +- .../dc/resource/dcn30/dcn30_resource.c | 2 +- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 3 + .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 + .../gpu/drm/amd/display/dmub/src/dmub_dcn35.c | 7 +- .../drm/amd/display/dmub/src/dmub_srv_stat.c | 8 +- 35 files changed, 112 insertions(+), 87 deletions(-)
--
2.50.1