DC Patches July 7, 2025
Subsystems (3)
cover DC Patches July 7, 2025
From: Ivan Lipski <[email protected]>
start from:
261fdc003175671fbda47d94d2244ba8c22934f5
Workaround for stuck I2C arbitrage
Stopped at:
a69637b2e3b0ee50bd1bd10552115bbe1dfe2793
Revert "Add DPP & HUBP reset if power gate enabled on DCN314"
Please, pay extra attention to the following patches:
1) drm/amd/display: MPC basic allocation logic and TMZ Changed the commit message.
2) IP_CHECK_BODY drm/amd/display: refactor DSC cap calculations This commit message was pointed out with IP_CHECK_BODY; however, everything looks fine to me. Please take extra attention to this patch.
3) drm/amd/display: Notify display idle on D3 The patch seems to be more related to DCN42.
4) drm/amd/display: Adding missing driver code for IPSv2.0 The patch seems to be more related to DCN42.
5) drm/amd/display: Notify DMUB on HW Release The patch seems to be more related to DCN42.
6) drm/amd/display: Added static pg implementations for future use Changed the commit message.
The patch seems to be more related to DCN42.
7) drm/amd/display: Free memory allocation
Was initially SOB'd by Jenkins Infra account (sw.jenkins), changed it to Clayton King
8) IP_CHECK_BODY drm/amd/display: initial support for SmartMux Manually added 4 files:
- dcn30m_clk_mgr.c
- dcn30m_clk_mgr.h
- dcn30m_clk_mgr_smu_msg.c
- dcn30m_clk_mgr_smu_msg.h
This commit message was pointed out with IP_CHECK_BODY; however, everything looks fine to me. Please take extra attention to this patch.
Extra Note:
1) IP_CHECK_BODY drm/amd/display: unit test framework with xmake. Dropped this patch.
2) PROMOTION_SUBMODULE_PREFIX-dc/sspl-END- IP_CHECK_MSG Dropped this patch.
Aurabindo Pillai (1):
IP_CHECK_BODY drm/amd/display: initial support for SmartMux
Charlene Liu (1):
drm/amd/display: limit clear_update_flags to dcn32 and above
Dillon Varone (1):
IP_CHECK_BODY drm/amd/display: refactor DSC cap calculations
Duncan Ma (2):
drm/amd/display: Notify display idle on D3
drm/amd/display: Notify DMUB on HW Release
Fudongwang (1):
drm/amd/display: Monitor patch to ignore EDID audio SAB check
Ilya Bakoulin (1):
drm/amd/display: Add definitions to support DID Type5 descriptors
Ivan Lipski (1):
drm/amd/display: Revert "Add DPP & HUBP reset if power gate enabled on
DCN314"
Jenkins, Sw (1):
drm/amd/display: Free memory allocation
Karthi Kandasamy (1):
drm/amd/display: prepare for new platform
Leo Chen (3):
drm/amd/display: Adding missing driver code for IPSv2.0 drm/amd/display: Added static pg implementations for future use drm/amd/display: New Behavior for debug option disable_ips_in_vpb
Michael Strauss (1):
drm/amd/display: Fix FIXED_VS retimer clock gen source override
Ovidiu Bunea (2):
drm/amd/display: Add support for Panel Replay on DP1 eDP
(panel_inst=1)
drm/amd/display: Add HPO encoder support to Replay
Yihan Zhu (1):
drm/amd/display: MPC basic allocation logic and TMZ
.../gpu/drm/amd/display/dc/clk_mgr/Makefile | 2 +- .../gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 2 +- .../drm/amd/display/dc/clk_mgr/dcn30/dalsmc.h | 3 +- .../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c | 4 +- .../display/dc/clk_mgr/dcn30/dcn30m_clk_mgr.c | 36 ++++ .../display/dc/clk_mgr/dcn30/dcn30m_clk_mgr.h | 31 +++ .../dc/clk_mgr/dcn30/dcn30m_clk_mgr_smu_msg.c | 118 +++++++++++ .../dc/clk_mgr/dcn30/dcn30m_clk_mgr_smu_msg.h | 34 ++++ .../dc/clk_mgr/dcn401/dcn401_clk_mgr.c | 33 ++- .../dc/clk_mgr/dcn401/dcn401_clk_mgr.h | 2 + drivers/gpu/drm/amd/display/dc/core/dc.c | 16 +- .../drm/amd/display/dc/core/dc_hw_sequencer.c | 26 +++ .../gpu/drm/amd/display/dc/core/dc_resource.c | 4 +- .../gpu/drm/amd/display/dc/core/dc_state.c | 2 + .../gpu/drm/amd/display/dc/core/dc_stream.c | 67 ++++++ drivers/gpu/drm/amd/display/dc/dc.h | 23 +++ drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 75 +++++-- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h | 6 + drivers/gpu/drm/amd/display/dc/dc_stream.h | 11 + drivers/gpu/drm/amd/display/dc/dc_types.h | 3 + .../gpu/drm/amd/display/dc/dce/dmub_replay.c | 43 +++- .../gpu/drm/amd/display/dc/dce/dmub_replay.h | 2 +- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 192 +++++++++++++++--- .../amd/display/dc/dsc/dcn401/dcn401_dsc.c | 24 +-- .../amd/display/dc/dsc/dcn401/dcn401_dsc.h | 1 - drivers/gpu/drm/amd/display/dc/dsc/dsc.h | 1 + .../amd/display/dc/hubp/dcn401/dcn401_hubp.c | 4 +- .../amd/display/dc/hubp/dcn401/dcn401_hubp.h | 2 +- .../amd/display/dc/hwss/dce110/dce110_hwseq.c | 24 +++ .../amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 2 +- .../amd/display/dc/hwss/dcn31/dcn31_hwseq.c | 13 ++ .../amd/display/dc/hwss/dcn314/dcn314_hwseq.c | 37 +--- .../amd/display/dc/hwss/dcn314/dcn314_hwseq.h | 2 - .../amd/display/dc/hwss/dcn314/dcn314_init.c | 2 +- .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 14 +- .../amd/display/dc/hwss/dcn401/dcn401_hwseq.h | 1 + .../drm/amd/display/dc/hwss/hw_sequencer.h | 3 + .../gpu/drm/amd/display/dc/inc/core_types.h | 3 + .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 14 ++ drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h | 2 +- .../gpu/drm/amd/display/dc/inc/hw/pg_cntl.h | 2 + .../link_hwss_hpo_fixed_vs_pe_retimer_dp.c | 2 +- .../gpu/drm/amd/display/dc/link/link_dpms.c | 19 +- .../drm/amd/display/dc/link/link_factory.c | 8 +- .../dc/link/protocols/link_dp_capability.c | 19 ++ .../link/protocols/link_edp_panel_control.c | 19 +- .../link/protocols/link_edp_panel_control.h | 1 + .../dc/resource/dcn20/dcn20_resource.c | 2 + .../dc/resource/dcn201/dcn201_resource.c | 2 + .../dc/resource/dcn21/dcn21_resource.c | 2 + .../dc/resource/dcn30/dcn30_resource.c | 2 + .../dc/resource/dcn301/dcn301_resource.c | 2 + .../dc/resource/dcn302/dcn302_resource.c | 2 + .../dc/resource/dcn303/dcn303_resource.c | 2 + .../dc/resource/dcn31/dcn31_resource.c | 2 + .../dc/resource/dcn314/dcn314_resource.c | 2 + .../dc/resource/dcn315/dcn315_resource.c | 2 + .../dc/resource/dcn316/dcn316_resource.c | 2 + .../dc/resource/dcn32/dcn32_resource.c | 2 + .../dc/resource/dcn321/dcn321_resource.c | 2 + .../dc/resource/dcn35/dcn35_resource.c | 2 + .../dc/resource/dcn351/dcn351_resource.c | 2 + .../dc/resource/dcn36/dcn36_resource.c | 2 + .../dc/resource/dcn401/dcn401_resource.c | 2 + .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 36 +++- .../amd/display/modules/power/power_helpers.h | 2 + 66 files changed, 902 insertions(+), 124 deletions(-) create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30m_clk_mgr.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30m_clk_mgr.h create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30m_clk_mgr_smu_msg.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30m_clk_mgr_smu_msg.h
Signature · 1 line
2.43.0
PATCH 1/17 drm/amd/display: MPC basic allocation logic and TMZ
From: Yihan Zhu <[email protected]>
[WHY & HOW]
Adding basic logic to allocate unused RMCM block and TMZ support.
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 2 + .../gpu/drm/amd/display/dc/core/dc_state.c | 2 + .../gpu/drm/amd/display/dc/core/dc_stream.c | 67 +++++++++++++++++++ drivers/gpu/drm/amd/display/dc/dc.h | 7 ++ drivers/gpu/drm/amd/display/dc/dc_stream.h | 11 +++ drivers/gpu/drm/amd/display/dc/dc_types.h | 1 + .../amd/display/dc/hubp/dcn401/dcn401_hubp.c | 4 +- .../amd/display/dc/hubp/dcn401/dcn401_hubp.h | 2 +- .../amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 2 +- .../gpu/drm/amd/display/dc/inc/core_types.h | 3 + drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h | 2 +- 11 files changed, 98 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +2 -0
@@ -976,6 +976,8 @@ static bool dc_construct_ctx(struct dc *dc,if (!dc_ctx)return false; +dc_stream_init_rmcm_3dlut (dc); + dc_ctx->cgs_device = init_params->cgs_device; dc_ctx->driver_context = init_params->driver; dc_ctx->dc = dc;
drivers/gpu/drm/amd/display/dc/core/dc_state.c +2 -0
@@ -427,6 +427,8 @@ enum dc_status dc_state_remove_stream(return DC_ERROR_UNEXPECTED ; } +dc_stream_release_3dlut_for_stream (dc, stream); +dc_stream_release (state->streams[i]); state->stream_count--;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c +67 -0
73 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dc.h +7 -0
@@ -246,6 +246,7 @@ struct mpc_color_caps { uint16_t ogam_ram : 1; uint16_t ocsc : 1; uint16_t num_3dluts : 3; + uint16_t num_rmcm_3dluts : 3; uint16_t shared_3d_lut:1;struct rom_curve_caps ogam_rom_caps;struct lut3d_caps mcm_3d_lut_caps;
@@ -1294,6 +1295,12 @@ union dc_3dlut_state { }; +struct dc_rmcm_3dlut { +bool isInUse; +const struct dc_stream_state *stream; +uint8_t protection_bits; +}; +struct dc_3dlut {struct kref refcount;struct tetrahedral_params lut_3d;
drivers/gpu/drm/amd/display/dc/dc_stream.h +11 -0
@@ -579,6 +579,17 @@ bool dc_stream_set_gamut_remap(struct dc *dc,bool dc_stream_program_csc_matrix (struct dc *dc,struct dc_stream_state *stream); +struct dc_rmcm_3dlut *dc_stream_get_3dlut_for_stream ( +const struct dc *dc, +const struct dc_stream_state *stream, +bool allocate_one); + +void dc_stream_release_3dlut_for_stream ( +const struct dc *dc, +const struct dc_stream_state *stream); + +void dc_stream_init_rmcm_3dlut (struct dc *dc); +struct pipe_ctx *dc_stream_get_pipe_ctx (struct dc_stream_state *stream); void dc_dmub_update_dirty_rect(struct dc *dc,
drivers/gpu/drm/amd/display/dc/dc_types.h +1 -0
@@ -1313,6 +1313,7 @@ struct dc_cm2_func_luts {bool mpc_3dlut_enable;bool rmcm_3dlut_enable;bool mpc_mcm_post_blend; +uint8_t rmcm_tmz; } lut3d_data;const struct dc_transfer_func *lut1d_func; };
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c +2 -2
@@ -86,11 +86,11 @@ void hubp401_program_3dlut_fl_width(struct hubp *hubp, enum hubp_3dlut_fl_widthREG_UPDATE (HUBP_3DLUT_CONTROL ,HUBP_3DLUT_WIDTH , width); } -void hubp401_program_3dlut_fl_tmz_protected (struct hubp *hubp,bool protection_enabled) +void hubp401_program_3dlut_fl_tmz_protected (struct hubp *hubp,uint8_t protection_bits) {struct dcn20_hubp *hubp2 =TO_DCN20_HUBP (hubp); -REG_UPDATE (HUBP_3DLUT_CONTROL ,HUBP_3DLUT_TMZ , protection_enabled ?1 :0 ); +REG_UPDATE (HUBP_3DLUT_CONTROL ,HUBP_3DLUT_TMZ , protection_bits); } void hubp401_program_3dlut_fl_crossbar(struct hubp *hubp,
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.h +1 -1
@@ -333,7 +333,7 @@ void hubp401_program_3dlut_fl_crossbar(struct hubp *hubp,enum hubp_3dlut_fl_crossbar_bit_slice bit_slice_cb_b, enum hubp_3dlut_fl_crossbar_bit_slice bit_slice_cr_r); -void hubp401_program_3dlut_fl_tmz_protected (struct hubp *hubp,bool protection_enabled); +void hubp401_program_3dlut_fl_tmz_protected (struct hubp *hubp,uint8_t protection_bits);void hubp401_program_3dlut_fl_width (struct hubp *hubp,enum hubp_3dlut_fl_width width);
drivers/gpu/drm/amd/display/dc/hwss/dcn10/dcn10_hwseq.c +1 -1
@@ -335,7 +335,7 @@ static void dcn10_log_hubp_states(struct dc *dc, void *log_ctx)struct dcn_fl_regs_st *fl_regs = &s->fl_regs;if (!s->blank_en) { - DTN_INFO("[%2d]: %5xh %6xh %5d %6d %2xh %2xh %6xh %6d %8d %8d %7d %8xh %5x %5x %5x", + DTN_INFO("[%2d]: %5xh %6xh %5d %6d %8xh %2xh %6xh %6d %8d %8d %7d %8xh %5x %5x %5x", pool->hubps[i]->inst, fl_regs->lut_enable, fl_regs->lut_done,
drivers/gpu/drm/amd/display/dc/inc/core_types.h +3 -0
@@ -67,6 +67,8 @@ struct resource_context;struct clk_bw_params ;struct dc_mcache_params ; +#define MAX_RMCM_INST 2 +struct resource_funcs {enum engine_id (*get_preferred_eng_id_dpia)(unsigned int dpia_index);void (*destroy)(struct resource_pool **pool);
@@ -286,6 +288,7 @@ struct resource_pool {struct hpo_dp_link_encoder *hpo_dp_link_enc[MAX_HPO_DP2_LINK_ENCODERS ];struct dc_3dlut *mpc_lut[MAX_PIPES ];struct dc_transfer_func *mpc_shaper[MAX_PIPES ]; +struct dc_rmcm_3dlut rmcm_3dlut[MAX_RMCM_INST ];struct {unsigned int xtalin_clock_inKhz;
drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h +1 -1
@@ -282,7 +282,7 @@ struct hubp_funcs {void (*hubp_enable_3dlut_fl)(struct hubp *hubp,bool enable);void (*hubp_program_3dlut_fl_addressing_mode)(struct hubp *hubp,enum hubp_3dlut_fl_addressing_mode addr_mode);void (*hubp_program_3dlut_fl_width)(struct hubp *hubp,enum hubp_3dlut_fl_width width); -void (*hubp_program_3dlut_fl_tmz_protected)(struct hubp *hubp,bool protection_enabled); +void (*hubp_program_3dlut_fl_tmz_protected)(struct hubp *hubp,uint8_t protection_bits); void (*hubp_program_3dlut_fl_crossbar)(struct hubp *hubp, enum hubp_3dlut_fl_crossbar_bit_slice bit_slice_y_g, enum hubp_3dlut_fl_crossbar_bit_slice bit_slice_cb_b,
Signature · 1 line
2.43.0
PATCH 2/17 drm/amd/display: prepare for new platform
In reply to [email protected]From: Karthi Kandasamy <[email protected]>
Expose some function for new platform use and add additionl check for IP register
--- drivers/gpu/drm/amd/display/dc/dsc/dsc.h | 1 + .../drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 14 ++++++++------ .../drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h | 1 + 3 files changed, 10 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/display/dc/dsc/dsc.h +1 -0
@@ -108,6 +108,7 @@ struct dsc_funcs {void (*dsc_disable)(struct display_stream_compressor *dsc);void (*dsc_disconnect)(struct display_stream_compressor *dsc);void (*dsc_wait_disconnect_pending_clear)(struct display_stream_compressor *dsc); + void (*dsc_get_single_enc_caps)(struct dsc_enc_caps *dsc_enc_caps, unsigned int max_dscclk_khz); };#endif
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c +8 -6
@@ -51,7 +51,7 @@#define FN (reg_name, field_name) \ hws->shifts->field_name, hws->masks->field_name -static void dcn401_initialize_min_clocks (struct dc *dc) +void dcn401_initialize_min_clocks (struct dc *dc) {struct dc_clocks *clocks = &dc->current_state->bw_ctx.bw.dcn.clk;
@@ -2632,10 +2632,12 @@ void dcn401_plane_atomic_power_down(struct dc *dc,DC_LOGGER_INIT (dc->ctx->logger); -REG_GET (DC_IP_REQUEST_CNTL ,IP_REQUEST_EN , &org_ip_request_cntl); -if (org_ip_request_cntl ==0 ) -REG_SET (DC_IP_REQUEST_CNTL ,0 , -IP_REQUEST_EN ,1 ); +if (REG (DC_IP_REQUEST_CNTL )) { +REG_GET (DC_IP_REQUEST_CNTL ,IP_REQUEST_EN , &org_ip_request_cntl); +if (org_ip_request_cntl ==0 ) +REG_SET (DC_IP_REQUEST_CNTL ,0 , +IP_REQUEST_EN ,1 ); + }if (hws->funcs.dpp_pg_control) hws->funcs.dpp_pg_control (hws, dpp->inst, false);
@@ -2646,7 +2648,7 @@ void dcn401_plane_atomic_power_down(struct dc *dc, hubp->funcs->hubp_reset (hubp); dpp->funcs->dpp_reset (dpp); -if (org_ip_request_cntl ==0 ) +if (org_ip_request_cntl ==0 &® (DC_IP_REQUEST_CNTL ))REG_SET (DC_IP_REQUEST_CNTL ,0 ,IP_REQUEST_EN ,0 );
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h +1 -0
@@ -109,4 +109,5 @@ void dcn401_detect_pipe_changes(void dcn401_plane_atomic_power_down (struct dc *dc,struct dpp *dpp,struct hubp *hubp); +void dcn401_initialize_min_clocks (struct dc *dc);#endif /* __DC_HWSS_DCN401_H__ */
Signature · 1 line
2.43.0
PATCH 3/17 IP_CHECK_BODY drm/amd/display: refactor DSC cap calculations
In reply to [email protected]From: Dillon Varone <[email protected]>
[WHY]
DSC block level should only be responsible for reporting single DSC instance capabilities. Factoring in ODM combine requirements should be handled in dc_dsc.c. Both components should acquire clocks from clk_mgr to determine throughput capabilities instead of relying on hard coded values as these can differ by SoC and SKU.
[HOW]
1) Add dsc_get_single_enc_caps to acquire single DSC instance capabilities (replacing dsc_get_enc_caps), factoring in DSCCLK
2) add build_dsc_enc_caps to combine single DSC instance capabilities
3) account for max pixel rate per pipe (DISPCLK) when calculating minimum slice count
--- .../dc/clk_mgr/dcn401/dcn401_clk_mgr.c | 30 +++ .../dc/clk_mgr/dcn401/dcn401_clk_mgr.h | 2 + drivers/gpu/drm/amd/display/dc/dc.h | 2 + drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 192 +++++++++++++++--- .../amd/display/dc/dsc/dcn401/dcn401_dsc.c | 24 +-- .../amd/display/dc/dsc/dcn401/dcn401_dsc.h | 1 - .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 12 ++ .../dc/resource/dcn20/dcn20_resource.c | 2 + .../dc/resource/dcn201/dcn201_resource.c | 2 + .../dc/resource/dcn21/dcn21_resource.c | 2 + .../dc/resource/dcn30/dcn30_resource.c | 2 + .../dc/resource/dcn301/dcn301_resource.c | 2 + .../dc/resource/dcn302/dcn302_resource.c | 2 + .../dc/resource/dcn303/dcn303_resource.c | 2 + .../dc/resource/dcn31/dcn31_resource.c | 2 + .../dc/resource/dcn314/dcn314_resource.c | 2 + .../dc/resource/dcn315/dcn315_resource.c | 2 + .../dc/resource/dcn316/dcn316_resource.c | 2 + .../dc/resource/dcn32/dcn32_resource.c | 2 + .../dc/resource/dcn321/dcn321_resource.c | 2 + .../dc/resource/dcn35/dcn35_resource.c | 2 + .../dc/resource/dcn351/dcn351_resource.c | 2 + .../dc/resource/dcn36/dcn36_resource.c | 2 + .../dc/resource/dcn401/dcn401_resource.c | 2 + 24 files changed, 253 insertions(+), 44 deletions(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c +30 -0
@@ -1500,6 +1500,35 @@ static int dcn401_get_dispclk_from_dentist(struct clk_mgr *clk_mgr_base)return 0 ; } +unsigned int dcn401_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 dcn401_is_ppclk_dpm_enabled (clk_mgr,PPCLK_DISPCLK ) ? + 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 dcn401_is_ppclk_dpm_enabled (clk_mgr,PPCLK_DPPCLK ) ? + 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 dcn401_is_ppclk_dpm_enabled (clk_mgr,PPCLK_DISPCLK ) ? + 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 dcn401_funcs = { .get_dp_ref_clk_frequency = dce12_get_dp_ref_freq_khz, .get_dtb_ref_clk_frequency = dcn401_get_dtb_ref_freq_khz,
@@ -1516,6 +1545,7 @@ static struct clk_mgr_funcs dcn401_funcs = { .get_hard_min_memclk = dcn401_get_hard_min_memclk, .get_hard_min_fclk = dcn401_get_hard_min_fclk, .is_dc_mode_present = dcn401_is_dc_mode_present, + .get_max_clock_khz = dcn401_get_max_clock_khz, }; struct clk_mgr_internal *dcn401_clk_mgr_construct(
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.h +2 -0
@@ -112,4 +112,6 @@ struct clk_mgr_internal *dcn401_clk_mgr_construct(struct dc_context *ctx,void dcn401_clk_mgr_destroy (struct clk_mgr_internal *clk_mgr); +unsigned int dcn401_get_max_clock_khz (struct clk_mgr *clk_mgr_base,enum clk_type clk_type); +#endif /* __DCN401_CLK_MGR_H_ */
drivers/gpu/drm/amd/display/dc/dc.h +2 -0
@@ -348,6 +348,8 @@ struct dc_caps {struct dc_scl_caps scl_caps;uint8_t num_of_host_routers;uint8_t num_of_dpias_per_host_router; +/* limit of the ODM only, could be limited by other factors (like pipe count)*/ +uint8_t max_odm_combine_factor; };struct dc_bug_wa {
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c +166 -26
289 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c +7 -17
@@ -9,17 +9,14 @@#include "dsc/dscc_types.h" #include "dsc/rc_calc.h" -#define MAX_THROUGHPUT_PER_DSC_100HZ 20000000 -#define MAX_DSC_UNIT_COMBINE 4 -static void dsc_write_to_registers (struct display_stream_compressor *dsc,const struct dsc_reg_values *reg_vals);/* Object I/F functions */ //static void dsc401_get_enc_caps(struct dsc_enc_caps *dsc_enc_caps, int pixel_clock_100Hz); //static bool dsc401_get_packed_pps(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, uint8_t *dsc_packed_pps); +static void dsc401_get_single_enc_caps (struct dsc_enc_caps *dsc_enc_caps,unsigned int max_dscclk_khz);static const struct dsc_funcs dcn401_dsc_funcs = { - .dsc_get_enc_caps = dsc401_get_enc_caps, .dsc_read_state = dsc401_read_state, .dsc_validate_stream = dsc401_validate_stream, .dsc_set_config = dsc401_set_config,
@@ -28,6 +25,7 @@ static const struct dsc_funcs dcn401_dsc_funcs = { .dsc_disable = dsc401_disable, .dsc_disconnect = dsc401_disconnect, .dsc_wait_disconnect_pending_clear = dsc401_wait_disconnect_pending_clear, + .dsc_get_single_enc_caps = dsc401_get_single_enc_caps, };/* Macro definitios for REG_SET macros*/
@@ -64,22 +62,14 @@ void dsc401_construct(struct dcn401_dsc *dsc, dsc->max_image_width =5184 ; } -void dsc401_get_enc_caps (struct dsc_enc_caps *dsc_enc_caps,int pixel_clock_100Hz) +static void dsc401_get_single_enc_caps (struct dsc_enc_caps *dsc_enc_caps,unsigned int max_dscclk_khz) { -int min_dsc_unit_required = (pixel_clock_100Hz +MAX_THROUGHPUT_PER_DSC_100HZ -1 ) /MAX_THROUGHPUT_PER_DSC_100HZ ; - dsc_enc_caps->dsc_version =0x21 ;/* v1.2 - DP spec defined it in reverse order and we kept it */ -/* 1 slice is only supported with 1 DSC unit */ - dsc_enc_caps->slice_caps.bits.NUM_SLICES_1 = min_dsc_unit_required ==1 ?1 :0 ; -/* 2 slice is only supported with 1 or 2 DSC units */ - dsc_enc_caps->slice_caps.bits.NUM_SLICES_2 = (min_dsc_unit_required ==1 || min_dsc_unit_required ==2 ) ?1 :0 ; -/* 3 slice is only supported with 1 DSC unit */ - dsc_enc_caps->slice_caps.bits.NUM_SLICES_3 = min_dsc_unit_required ==1 ?1 :0 ; + 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->slice_caps.bits.NUM_SLICES_8 =1 ; - dsc_enc_caps->slice_caps.bits.NUM_SLICES_12 =1 ; - dsc_enc_caps->slice_caps.bits.NUM_SLICES_16 =1 ; dsc_enc_caps->lb_bit_depth =13 ; dsc_enc_caps->is_block_pred_supported = true;
@@ -93,7 +83,7 @@ void dsc401_get_enc_caps(struct dsc_enc_caps *dsc_enc_caps, int pixel_clock_100H 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_THROUGHPUT_PER_DSC_100HZ *MAX_DSC_UNIT_COMBINE ; + 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 */
drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.h +0 -1
@@ -341,7 +341,6 @@ void dsc401_set_config(struct display_stream_compressor *dsc, const struct dsc_cvoid dsc401_enable (struct display_stream_compressor *dsc,int opp_pipe);void dsc401_disable (struct display_stream_compressor *dsc);void dsc401_disconnect (struct display_stream_compressor *dsc); -void dsc401_get_enc_caps (struct dsc_enc_caps *dsc_enc_caps,int pixel_clock_100Hz);void dsc401_wait_disconnect_pending_clear (struct display_stream_compressor *dsc);#endif
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h +12 -0
@@ -100,6 +100,17 @@ struct dcn301_clk_internal {#define MAX_NUM_DPM_LVL 8#define WM_SET_COUNT 4 +enum clk_type { +CLK_TYPE_DCFCLK , +CLK_TYPE_FCLK , +CLK_TYPE_MCLK , +CLK_TYPE_SOCCLK , +CLK_TYPE_DTBCLK , +CLK_TYPE_DISPCLK , +CLK_TYPE_DPPCLK , +CLK_TYPE_DSCCLK , +CLK_TYPE_COUNT +};struct clk_limit_table_entry {unsigned int voltage;/* milivolts withh 2 fractional bits */
@@ -326,6 +337,7 @@ struct clk_mgr_funcs {bool (*is_dc_mode_present)(struct clk_mgr *clk_mgr); +unsigned int (*get_max_clock_khz)(struct clk_mgr *clk_mgr_base,enum clk_type clk_type); };struct clk_mgr {
drivers/gpu/drm/amd/display/dc/resource/dcn20/dcn20_resource.c +2 -0
@@ -2736,6 +2736,8 @@ static bool dcn20_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =2 ; + dc->cap_funcs = cap_funcs;if (dc->ctx->dc_bios->fw_info.oem_i2c_present) {
drivers/gpu/drm/amd/display/dc/resource/dcn201/dcn201_resource.c +2 -0
@@ -1285,6 +1285,8 @@ static bool dcn201_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =2 ; + dc->cap_funcs = cap_funcs;return true;
drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c +2 -0
@@ -1684,6 +1684,8 @@ static bool dcn21_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =2 ; + dc->cap_funcs = cap_funcs;return true;
drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c +2 -0
@@ -2586,6 +2586,8 @@ static bool dcn30_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs;if (dc->ctx->dc_bios->fw_info.oem_i2c_present) {
drivers/gpu/drm/amd/display/dc/resource/dcn301/dcn301_resource.c +2 -0
@@ -1706,6 +1706,8 @@ static bool dcn301_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs;return true;
drivers/gpu/drm/amd/display/dc/resource/dcn302/dcn302_resource.c +2 -0
@@ -1481,6 +1481,8 @@ static bool dcn302_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs;if (dc->ctx->dc_bios->fw_info.oem_i2c_present) {
drivers/gpu/drm/amd/display/dc/resource/dcn303/dcn303_resource.c +2 -0
@@ -1414,6 +1414,8 @@ static bool dcn303_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs;if (dc->ctx->dc_bios->fw_info.oem_i2c_present) {
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c +2 -0
@@ -2204,6 +2204,8 @@ static bool dcn31_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs; dc->dcn_ip->max_num_dpp = dcn3_1_ip.max_num_dpp;
drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c +2 -0
@@ -2119,6 +2119,8 @@ static bool dcn314_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs; dc->dcn_ip->max_num_dpp = dcn3_14_ip.max_num_dpp;
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c +2 -0
@@ -2142,6 +2142,8 @@ static bool dcn315_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs; dc->dcn_ip->max_num_dpp = dcn3_15_ip.max_num_dpp;
drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c +2 -0
@@ -2010,6 +2010,8 @@ static bool dcn316_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs; dc->dcn_ip->max_num_dpp = dcn3_16_ip.max_num_dpp;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c +2 -0
@@ -2500,6 +2500,8 @@ static bool dcn32_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs;if (dc->ctx->dc_bios->fw_info.oem_i2c_present) {
drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c +2 -0
@@ -1999,6 +1999,8 @@ static bool dcn321_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs;if (dc->ctx->dc_bios->fw_info.oem_i2c_present) {
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c +2 -0
@@ -2154,6 +2154,8 @@ static bool dcn35_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs; dc->dcn_ip->max_num_dpp = pool->base.pipe_count;
drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c +2 -0
@@ -2125,6 +2125,8 @@ static bool dcn351_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs;
drivers/gpu/drm/amd/display/dc/resource/dcn36/dcn36_resource.c +2 -0
@@ -2127,6 +2127,8 @@ static bool dcn36_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs; dc->dcn_ip->max_num_dpp = pool->base.pipe_count;
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c +2 -0
@@ -2190,6 +2190,8 @@ static bool dcn401_resource_construct(for (i =0 ; i < dc->caps.max_planes; ++i) dc->caps.planes[i] = plane_cap; + dc->caps.max_odm_combine_factor =4 ; + dc->cap_funcs = cap_funcs;if (dc->ctx->dc_bios->fw_info.oem_i2c_present) {
Signature · 1 line
2.43.0
PATCH 4/17 drm/amd/display: Add definitions to support DID Type5 descriptors
In reply to [email protected]From: Ilya Bakoulin <[email protected]>
[Why/How]
Add the timing source needed to support DID Type5.
--- drivers/gpu/drm/amd/display/dc/dc_types.h | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dc_types.h +1 -0
@@ -263,6 +263,7 @@ enum dc_timing_source {TIMING_SOURCE_EDID_4BYTE ,TIMING_SOURCE_EDID_CEA_DISPLAYID_VTDB ,TIMING_SOURCE_EDID_CEA_RID , +TIMING_SOURCE_EDID_DISPLAYID_TYPE5 ,TIMING_SOURCE_VBIOS ,TIMING_SOURCE_CV , TIMING_SOURCE_TV,
Signature · 1 line
2.43.0
PATCH 5/17 drm/amd/display: Monitor patch to ignore EDID audio SAB check
In reply to [email protected]From: Fudongwang <[email protected]>
[Why & How]
Some monitor have audio output but SAB data is zero. Skip check this in this case.
--- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 +++- drivers/gpu/drm/amd/display/dc/dc_types.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +3 -1
@@ -3940,7 +3940,9 @@ enum dc_status resource_map_pool_resources(/* TODO: Add check if ASIC support and EDID audio */ if (!stream->converter_disable_audio &&dc_is_audio_capable_signal (pipe_ctx->stream->signal) && - stream->audio_info.mode_count && stream->audio_info.flags.all) { + stream->audio_info.mode_count && + (stream->audio_info.flags.all || + (stream->sink && stream->sink->edid_caps.panel_patch.skip_audio_sab_check))) { pipe_ctx->stream_res.audio =find_first_free_audio ( &context->res_ctx, pool, pipe_ctx->stream_res.stream_enc->id, dc_ctx->dce_version);
drivers/gpu/drm/amd/display/dc/dc_types.h +1 -0
@@ -175,6 +175,7 @@ struct dc_panel_patch {unsigned int embedded_tiled_slave;unsigned int disable_fams;unsigned int skip_avmute; +unsigned int skip_audio_sab_check;unsigned int mst_start_top_delay;unsigned int remove_sink_ext_caps;unsigned int disable_colorimetry;
Signature · 1 line
2.43.0
[AMD Official Use Only - AMD Internal Distribution Only]
This ignore these patches.
The series were sent prematurely.
________________________________
From: [email protected] <[email protected]>
Sent: Monday, July 7, 2025 3:41 PM
To: [email protected] <[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]>; Hung, Alex <[email protected]>; LIPSKI, IVAN <[email protected]>
Subject: [PATCH 00/17] DC Patches July 7, 2025
From: Ivan Lipski <[email protected]>
start from:
261fdc003175671fbda47d94d2244ba8c22934f5
Workaround for stuck I2C arbitrage
Stopped at:
a69637b2e3b0ee50bd1bd10552115bbe1dfe2793
Revert "Add DPP & HUBP reset if power gate enabled on DCN314"
Please, pay extra attention to the following patches:
1) drm/amd/display: MPC basic allocation logic and TMZ Changed the commit message.
2) IP_CHECK_BODY drm/amd/display: refactor DSC cap calculations This commit message was pointed out with IP_CHECK_BODY; however, everything looks fine to me. Please take extra attention to this patch.
3) drm/amd/display: Notify display idle on D3 The patch seems to be more related to DCN42.
4) drm/amd/display: Adding missing driver code for IPSv2.0 The patch seems to be more related to DCN42.
5) drm/amd/display: Notify DMUB on HW Release The patch seems to be more related to DCN42.
6) drm/amd/display: Added static pg implementations for future use Changed the commit message.
The patch seems to be more related to DCN42.
7) drm/amd/display: Free memory allocation
Was initially SOB'd by Jenkins Infra account (sw.jenkins), changed it to Clayton King
8) IP_CHECK_BODY drm/amd/display: initial support for SmartMux Manually added 4 files:
- dcn30m_clk_mgr.c
- dcn30m_clk_mgr.h
- dcn30m_clk_mgr_smu_msg.c
- dcn30m_clk_mgr_smu_msg.h
This commit message was pointed out with IP_CHECK_BODY; however, everything looks fine to me. Please take extra attention to this patch.
Extra Note:
1) IP_CHECK_BODY drm/amd/display: unit test framework with xmake. Dropped this patch.
2) PROMOTION_SUBMODULE_PREFIX-dc/sspl-END- IP_CHECK_MSG Dropped this patch.
Aurabindo Pillai (1):
IP_CHECK_BODY drm/amd/display: initial support for SmartMux
Charlene Liu (1):
drm/amd/display: limit clear_update_flags to dcn32 and above
Dillon Varone (1):
IP_CHECK_BODY drm/amd/display: refactor DSC cap calculations
Duncan Ma (2):
drm/amd/display: Notify display idle on D3
drm/amd/display: Notify DMUB on HW Release
Fudongwang (1):
drm/amd/display: Monitor patch to ignore EDID audio SAB check
Ilya Bakoulin (1):
drm/amd/display: Add definitions to support DID Type5 descriptors
Ivan Lipski (1):
drm/amd/display: Revert "Add DPP & HUBP reset if power gate enabled on
DCN314"
Jenkins, Sw (1):
drm/amd/display: Free memory allocation
Karthi Kandasamy (1):
drm/amd/display: prepare for new platform
Leo Chen (3):
drm/amd/display: Adding missing driver code for IPSv2.0 drm/amd/display: Added static pg implementations for future use drm/amd/display: New Behavior for debug option disable_ips_in_vpb
Michael Strauss (1):
drm/amd/display: Fix FIXED_VS retimer clock gen source override
Ovidiu Bunea (2):
drm/amd/display: Add support for Panel Replay on DP1 eDP
(panel_inst=1)
drm/amd/display: Add HPO encoder support to Replay
Yihan Zhu (1):
drm/amd/display: MPC basic allocation logic and TMZ
.../gpu/drm/amd/display/dc/clk_mgr/Makefile | 2 +- .../gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 2 +- .../drm/amd/display/dc/clk_mgr/dcn30/dalsmc.h | 3 +- .../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c | 4 +- .../display/dc/clk_mgr/dcn30/dcn30m_clk_mgr.c | 36 ++++ .../display/dc/clk_mgr/dcn30/dcn30m_clk_mgr.h | 31 +++ .../dc/clk_mgr/dcn30/dcn30m_clk_mgr_smu_msg.c | 118 +++++++++++ .../dc/clk_mgr/dcn30/dcn30m_clk_mgr_smu_msg.h | 34 ++++ .../dc/clk_mgr/dcn401/dcn401_clk_mgr.c | 33 ++- .../dc/clk_mgr/dcn401/dcn401_clk_mgr.h | 2 + drivers/gpu/drm/amd/display/dc/core/dc.c | 16 +- .../drm/amd/display/dc/core/dc_hw_sequencer.c | 26 +++ .../gpu/drm/amd/display/dc/core/dc_resource.c | 4 +- .../gpu/drm/amd/display/dc/core/dc_state.c | 2 + .../gpu/drm/amd/display/dc/core/dc_stream.c | 67 ++++++ drivers/gpu/drm/amd/display/dc/dc.h | 23 +++ drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 75 +++++-- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h | 6 + drivers/gpu/drm/amd/display/dc/dc_stream.h | 11 + drivers/gpu/drm/amd/display/dc/dc_types.h | 3 + .../gpu/drm/amd/display/dc/dce/dmub_replay.c | 43 +++- .../gpu/drm/amd/display/dc/dce/dmub_replay.h | 2 +- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 192 +++++++++++++++--- .../amd/display/dc/dsc/dcn401/dcn401_dsc.c | 24 +-- .../amd/display/dc/dsc/dcn401/dcn401_dsc.h | 1 - drivers/gpu/drm/amd/display/dc/dsc/dsc.h | 1 + .../amd/display/dc/hubp/dcn401/dcn401_hubp.c | 4 +- .../amd/display/dc/hubp/dcn401/dcn401_hubp.h | 2 +- .../amd/display/dc/hwss/dce110/dce110_hwseq.c | 24 +++ .../amd/display/dc/hwss/dcn10/dcn10_hwseq.c | 2 +- .../amd/display/dc/hwss/dcn31/dcn31_hwseq.c | 13 ++ .../amd/display/dc/hwss/dcn314/dcn314_hwseq.c | 37 +--- .../amd/display/dc/hwss/dcn314/dcn314_hwseq.h | 2 - .../amd/display/dc/hwss/dcn314/dcn314_init.c | 2 +- .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 14 +- .../amd/display/dc/hwss/dcn401/dcn401_hwseq.h | 1 + .../drm/amd/display/dc/hwss/hw_sequencer.h | 3 + .../gpu/drm/amd/display/dc/inc/core_types.h | 3 + .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 14 ++ drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h | 2 +- .../gpu/drm/amd/display/dc/inc/hw/pg_cntl.h | 2 + .../link_hwss_hpo_fixed_vs_pe_retimer_dp.c | 2 +- .../gpu/drm/amd/display/dc/link/link_dpms.c | 19 +- .../drm/amd/display/dc/link/link_factory.c | 8 +- .../dc/link/protocols/link_dp_capability.c | 19 ++ .../link/protocols/link_edp_panel_control.c | 19 +- .../link/protocols/link_edp_panel_control.h | 1 + .../dc/resource/dcn20/dcn20_resource.c | 2 + .../dc/resource/dcn201/dcn201_resource.c | 2 + .../dc/resource/dcn21/dcn21_resource.c | 2 + .../dc/resource/dcn30/dcn30_resource.c | 2 + .../dc/resource/dcn301/dcn301_resource.c | 2 + .../dc/resource/dcn302/dcn302_resource.c | 2 + .../dc/resource/dcn303/dcn303_resource.c | 2 + .../dc/resource/dcn31/dcn31_resource.c | 2 + .../dc/resource/dcn314/dcn314_resource.c | 2 + .../dc/resource/dcn315/dcn315_resource.c | 2 + .../dc/resource/dcn316/dcn316_resource.c | 2 + .../dc/resource/dcn32/dcn32_resource.c | 2 + .../dc/resource/dcn321/dcn321_resource.c | 2 + .../dc/resource/dcn35/dcn35_resource.c | 2 + .../dc/resource/dcn351/dcn351_resource.c | 2 + .../dc/resource/dcn36/dcn36_resource.c | 2 + .../dc/resource/dcn401/dcn401_resource.c | 2 + .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 36 +++- .../amd/display/modules/power/power_helpers.h | 2 + 66 files changed, 902 insertions(+), 124 deletions(-) create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30m_clk_mgr.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30m_clk_mgr.h create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30m_clk_mgr_smu_msg.c create mode 100644 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30m_clk_mgr_smu_msg.h
--
2.43.0