DC Patches May 19 2025
Subsystems (3)
cover DC Patches May 19 2025
This DC patchset brings improvements in multiple areas. In summary, we highlight:
-Support external tunneling feature
-Modify DCN401 DMUB reset & halt sequence
-Fix the typo in dcn401 Hubp block
-Skip backend validation for virtual monitors
Chiawen Huang (1):
drm/amd/display: Skip backend validation for virtual monitors
Cruise Hung (1):
drm/amd/display: Support external tunneling feature
Dillon Varone (1):
drm/amd/display: Modify DCN401 DMUB reset & halt sequence
Karthi Kandasamy (1):
drm/amd/display: Move mcache allocation programming from DML to
resource
Nevenko Stupar (1):
drm/amd/display: Fix the typo in dcn401 Hubp block
Ovidiu Bunea (1):
drm/amd/display: Add GPINT retries to ips_query_residency_info
Samson Tam (1):
drm/amd/display: add support for 2nd sharpening range
Taimur Hassan (2):
drm/amd/display: [FW Promotion] Release 0.1.11.0 drm/amd/display: Promote DAL to 3.2.334
Tomasz Siemek (1):
drm/amd/display: Extend dc_plane_get_status with flags
Yihan Zhu (1):
drm/amd/display: init local variable to fix format errors
drivers/gpu/drm/amd/display/dc/core/dc.c | 10 ++- .../gpu/drm/amd/display/dc/core/dc_resource.c | 13 ++++ .../gpu/drm/amd/display/dc/core/dc_surface.c | 8 ++- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 14 ++-- drivers/gpu/drm/amd/display/dc/dc_dp_types.h | 21 ++++++ drivers/gpu/drm/amd/display/dc/dc_plane.h | 10 ++- .../dc/dml2/dml21/dml21_translation_helper.c | 2 +- .../dc/dml2/dml21/dml21_translation_helper.h | 2 + .../amd/display/dc/dml2/dml21/dml21_wrapper.c | 40 +++++++++++ .../amd/display/dc/dml2/dml21/dml21_wrapper.h | 64 +++++++++++++++++ .../drm/amd/display/dc/dml2/dml2_wrapper.h | 2 + .../amd/display/dc/hubp/dcn401/dcn401_hubp.c | 2 +- .../amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 2 +- .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 16 ++--- .../gpu/drm/amd/display/dc/inc/core_types.h | 5 ++ drivers/gpu/drm/amd/display/dc/inc/link.h | 3 + drivers/gpu/drm/amd/display/dc/inc/resource.h | 8 +++ .../drm/amd/display/dc/link/link_detection.c | 21 ++---- .../gpu/drm/amd/display/dc/link/link_dpms.c | 6 +- .../drm/amd/display/dc/link/link_factory.c | 1 + .../dc/link/protocols/link_dp_capability.c | 8 +-- .../display/dc/link/protocols/link_dp_dpia.c | 54 ++++++++++++-- .../display/dc/link/protocols/link_dp_dpia.h | 6 ++ .../dc/link/protocols/link_dp_dpia_bw.c | 70 +++++++------------ .../dc/link/protocols/link_dp_dpia_bw.h | 4 +- .../dc/link/protocols/link_dp_irq_handler.c | 4 +- .../drm/amd/display/dc/sspl/dc_spl_types.h | 4 ++ .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 34 ++++++++- .../drm/amd/display/dmub/src/dmub_dcn401.c | 16 ++--- 30 files changed, 337 insertions(+), 115 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/11 drm/amd/display: Extend dc_plane_get_status with flags
From: Tomasz Siemek <[email protected]>
[WHY]dc_plane_get_status may be used for reading other plane properties in the future.
[HOW]
Provide API for choosing plane properties to read.
--- drivers/gpu/drm/amd/display/dc/core/dc_surface.c | 8 +++++--- drivers/gpu/drm/amd/display/dc/dc_plane.h | 10 +++++++++- 2 files changed, 14 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_surface.c +5 -3
@@ -109,7 +109,8 @@ struct dc_plane_state *dc_create_plane_state(const struct dc *dc)***************************************************************************** */ const struct dc_plane_status *dc_plane_get_status ( -const struct dc_plane_state *plane_state) +const struct dc_plane_state *plane_state, +union dc_plane_status_update_flags flags) {const struct dc_plane_status *plane_status;struct dc *dc;
@@ -136,7 +137,7 @@ const struct dc_plane_status *dc_plane_get_status(if (pipe_ctx->plane_state != plane_state)continue ; -if (pipe_ctx->plane_state) +if (pipe_ctx->plane_state && flags.bits.address) pipe_ctx->plane_state->status.is_flip_pending = false;break ;
@@ -151,7 +152,8 @@ const struct dc_plane_status *dc_plane_get_status(if (pipe_ctx->plane_state != plane_state)continue ; - dc->hwss.update_pending_status (pipe_ctx); +if (flags.bits.address) + dc->hwss.update_pending_status (pipe_ctx); }return plane_status;
drivers/gpu/drm/amd/display/dc/dc_plane.h +9 -1
@@ -28,9 +28,17 @@#include "dc_hw_types.h" +union dc_plane_status_update_flags { +struct { +uint32_t address :1 ; + } bits; +uint32_t raw; +}; +struct dc_plane_state *dc_create_plane_state (const struct dc *dc);const struct dc_plane_status *dc_plane_get_status ( -const struct dc_plane_state *plane_state); +const struct dc_plane_state *plane_state, +union dc_plane_status_update_flags flags);void dc_plane_state_retain (struct dc_plane_state *plane_state);void dc_plane_state_release (struct dc_plane_state *plane_state);
Signature · 1 line
2.34.1
PATCH 2/11 drm/amd/display: init local variable to fix format errors
In reply to Tom ChungFrom: Yihan Zhu <[email protected]>
[WHY & HOW]
Uninitialized local variables will cause format checker complain about them.
--- .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c +8 -8
@@ -525,11 +525,11 @@ bool dcn401_program_rmcm_luts(enum MCM_LUT_XABLE shaper_xable, lut3d_xable =MCM_LUT_DISABLE , lut1d_xable;enum hubp_3dlut_fl_mode mode;enum hubp_3dlut_fl_addressing_mode addr_mode; -enum hubp_3dlut_fl_format format; -enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_y_g; -enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_cb_b; -enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_cr_r; -enum hubp_3dlut_fl_width width; +enum hubp_3dlut_fl_format format =0 ; +enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_y_g =0 ; +enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_cb_b =0 ; +enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_cr_r =0 ; +enum hubp_3dlut_fl_width width =0 ;struct dc *dc = hubp->ctx->dc;bool bypass_rmcm_3dlut = false;
@@ -654,9 +654,9 @@ void dcn401_populate_mcm_luts(struct dc *dc,enum hubp_3dlut_fl_mode mode;enum hubp_3dlut_fl_width width =0 ;enum hubp_3dlut_fl_addressing_mode addr_mode; -enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_y_g; -enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_cb_b; -enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_cr_r; +enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_y_g =0 ; +enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_cb_b =0 ; +enum hubp_3dlut_fl_crossbar_bit_slice crossbar_bit_slice_cr_r =0 ;enum MCM_LUT_XABLE shaper_xable =MCM_LUT_DISABLE ;enum MCM_LUT_XABLE lut3d_xable =MCM_LUT_DISABLE ;enum MCM_LUT_XABLE lut1d_xable =MCM_LUT_DISABLE ;
Signature · 1 line
2.34.1
PATCH 3/11 drm/amd/display: Support external tunneling feature
In reply to Tom ChungFrom: Cruise Hung <[email protected]>
[Why & How]
The original code only supports the tunneling for embedded one. To support external tunneling feature, it needs to check Tunneling_Support bit register.
--- .../gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++ drivers/gpu/drm/amd/display/dc/dc_dp_types.h | 21 ++++++ .../amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 2 +- .../gpu/drm/amd/display/dc/inc/core_types.h | 2 + drivers/gpu/drm/amd/display/dc/inc/link.h | 3 + .../drm/amd/display/dc/link/link_detection.c | 21 ++---- .../gpu/drm/amd/display/dc/link/link_dpms.c | 6 +- .../drm/amd/display/dc/link/link_factory.c | 1 + .../dc/link/protocols/link_dp_capability.c | 8 +-- .../display/dc/link/protocols/link_dp_dpia.c | 54 ++++++++++++-- .../display/dc/link/protocols/link_dp_dpia.h | 6 ++ .../dc/link/protocols/link_dp_dpia_bw.c | 70 +++++++------------ .../dc/link/protocols/link_dp_dpia_bw.h | 4 +- .../dc/link/protocols/link_dp_irq_handler.c | 4 +- 14 files changed, 126 insertions(+), 80 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +4 -0
@@ -3911,6 +3911,10 @@ enum dc_status resource_map_pool_resources(if (!dc->link_srv->dp_decide_link_settings (stream, &pipe_ctx->link_config.dp_link_settings))return DC_FAIL_DP_LINK_BANDWIDTH ; + + dc->link_srv->dp_decide_tunnel_settings (stream, + &pipe_ctx->link_config.dp_tunnel_settings); +if (dc->link_srv->dp_get_encoding_format ( &pipe_ctx->link_config.dp_link_settings) == DP_128b_132b_ENCODING) { pipe_ctx->stream_res.hpo_dp_stream_enc =
drivers/gpu/drm/amd/display/dc/dc_dp_types.h +21 -0
@@ -159,6 +159,11 @@ struct dc_link_settings {uint8_t link_rate_set; }; +struct dc_tunnel_settings { +bool should_enable_dp_tunneling; +bool should_use_dp_bw_allocation; +}; + union dc_dp_ffe_preset { struct { uint8_t level : 4;
@@ -943,10 +948,20 @@ union dpia_info {uint8_t raw; }; +/* DPCD[0xE0020] USB4_DRIVER_BW_CAPABILITY register. */ +union usb4_driver_bw_cap { +struct { +uint8_t rsvd :7 ; +uint8_t driver_bw_alloc_support :1 ; + } bits; +uint8_t raw; +}; +/* DP Tunneling over USB4 */ struct dpcd_usb4_dp_tunneling_info {union dp_tun_cap_support dp_tun_cap;union dpia_info dpia_info; +union usb4_driver_bw_cap driver_bw_cap;uint8_t usb4_driver_id;uint8_t usb4_topology_id[DPCD_USB4_TOPOLOGY_ID_LEN ]; };
@@ -1486,5 +1501,11 @@ struct dp_trace {# ifndef DP_TUNNELING_BW_ALLOC_CAP_CHANGED # define DP_TUNNELING_BW_ALLOC_CAP_CHANGED (1 << 3)# endif +# ifndef DPTX_BW_ALLOC_UNMASK_IRQ +# define DPTX_BW_ALLOC_UNMASK_IRQ (1 << 6) +# endif +# ifndef DPTX_BW_ALLOC_MODE_ENABLE +# define DPTX_BW_ALLOC_MODE_ENABLE (1 << 7) +# endif #endif /* DC_DP_TYPES_H */
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c +1 -1
@@ -1550,7 +1550,7 @@ static bool should_avoid_empty_tu(struct pipe_ctx *pipe_ctx)struct dc_link_settings *link_settings = &pipe_ctx->link_config.dp_link_settings;const struct dc *dc = pipe_ctx->stream->link->dc; -if (pipe_ctx->stream->link->ep_type !=DISPLAY_ENDPOINT_USB4_DPIA ) +if (pipe_ctx->link_config.dp_tunnel_settings.should_enable_dp_tunneling == false)return false;// Not necessary for MST configurations
drivers/gpu/drm/amd/display/dc/inc/core_types.h +2 -0
@@ -384,7 +384,9 @@ struct link_resource {struct link_config {struct dc_link_settings dp_link_settings; +struct dc_tunnel_settings dp_tunnel_settings; }; + union pipe_update_flags { struct { uint32_t enable : 1;
drivers/gpu/drm/amd/display/dc/inc/link.h +3 -0
@@ -207,6 +207,9 @@ struct link_service {bool (*dp_decide_link_settings)(struct dc_stream_state *stream,struct dc_link_settings *link_setting); +void (*dp_decide_tunnel_settings)( +struct dc_stream_state *stream, +struct dc_tunnel_settings *dp_tunnel_setting);enum dp_link_encoding (*mst_decide_link_encoding_format)(const struct dc_link *link); bool (*edp_decide_link_settings)(struct dc_link *link,
drivers/gpu/drm/amd/display/dc/link/link_detection.c +6 -15
@@ -611,6 +611,7 @@ static bool detect_dp(struct dc_link *link, link->dpcd_caps.dongle_type = sink_caps->dongle_type; link->dpcd_caps.is_dongle_type_one = sink_caps->is_dongle_type_one; link->dpcd_caps.dpcd_rev.raw =0 ; + link->dpcd_caps.usb4_dp_tun_info.dp_tun_cap.raw =0 ; }return true;
@@ -1007,21 +1008,11 @@ static bool detect_link_and_local_sink(struct dc_link *link, link->reported_link_cap.link_rate > LINK_RATE_HIGH3) link->reported_link_cap.link_rate = LINK_RATE_HIGH3; -/* -* If this is DP over USB4 link then we need to: -* - Enable BW ALLOC support on DPtx if applicable -*/ -if (dc->config.usb4_bw_alloc_support) { -if (link_dp_dpia_set_dptx_usb4_bw_alloc_support (link)) { -/* update with non reduced link cap if bw allocation mode is supported */ -if (link->dpia_bw_alloc_config.nrd_max_link_rate && - link->dpia_bw_alloc_config.nrd_max_lane_count) { - link->reported_link_cap.link_rate = - link->dpia_bw_alloc_config.nrd_max_link_rate; - link->reported_link_cap.lane_count = - link->dpia_bw_alloc_config.nrd_max_lane_count; - } - } +if (link->dpcd_caps.usb4_dp_tun_info.dp_tun_cap.bits.dp_tunneling + && link->dpcd_caps.usb4_dp_tun_info.dp_tun_cap.bits.dpia_bw_alloc + && link->dpcd_caps.usb4_dp_tun_info.driver_bw_cap.bits.driver_bw_alloc_support) { +if (link_dpia_enable_usb4_dp_bw_alloc_mode (link) == false) + link->dpcd_caps.usb4_dp_tun_info.dp_tun_cap.bits.dpia_bw_alloc = false; }break ; }
drivers/gpu/drm/amd/display/dc/link/link_dpms.c +3 -3
@@ -2374,7 +2374,7 @@ void link_set_dpms_off(struct pipe_ctx *pipe_ctx)update_psp_stream_config (pipe_ctx, true); dc->hwss.blank_stream (pipe_ctx); -if (pipe_ctx->stream->link->ep_type ==DISPLAY_ENDPOINT_USB4_DPIA ) +if (pipe_ctx->link_config.dp_tunnel_settings.should_use_dp_bw_allocation)deallocate_usb4_bandwidth (pipe_ctx->stream);if (pipe_ctx->stream->signal ==SIGNAL_TYPE_DISPLAY_PORT_MST )
@@ -2442,7 +2442,7 @@ void link_set_dpms_off(struct pipe_ctx *pipe_ctx)if (link->connector_signal ==SIGNAL_TYPE_EDP && dc->debug.psp_disabled_wa) {/* reset internal save state to default since eDP is off */ enum dp_panel_mode panel_mode =dp_get_panel_mode (pipe_ctx->stream->link); -/* since current psp not loaded, we need to reset it to default*/ +/* since current psp not loaded, we need to reset it to default */ link->panel_mode = panel_mode; } }
@@ -2620,7 +2620,7 @@ void link_set_dpms_on(if (dc_is_dp_signal (pipe_ctx->stream->signal))dp_set_hblank_reduction_on_rx (pipe_ctx); -if (pipe_ctx->stream->link->ep_type ==DISPLAY_ENDPOINT_USB4_DPIA ) +if (pipe_ctx->link_config.dp_tunnel_settings.should_use_dp_bw_allocation)allocate_usb4_bandwidth (pipe_ctx->stream);if (pipe_ctx->stream->signal ==SIGNAL_TYPE_DISPLAY_PORT_MST )
drivers/gpu/drm/amd/display/dc/link/link_factory.c +1 -0
@@ -156,6 +156,7 @@ static void construct_link_service_dp_capability(struct link_service *link_srv) link_srv->dp_get_encoding_format = link_dp_get_encoding_format; link_srv->dp_should_enable_fec = dp_should_enable_fec; link_srv->dp_decide_link_settings = link_decide_link_settings; + link_srv->dp_decide_tunnel_settings = link_decide_dp_tunnel_settings; link_srv->mst_decide_link_encoding_format = mst_decide_link_encoding_format; link_srv->edp_decide_link_settings = edp_decide_link_settings;
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c +3 -5
@@ -2021,11 +2021,9 @@ static bool retrieve_link_cap(struct dc_link *link) sizeof(link->dpcd_caps.max_uncompressed_pixel_rate_cap.raw));/* Read DP tunneling information. */ -if (link->ep_type ==DISPLAY_ENDPOINT_USB4_DPIA ) { - status =dpcd_get_tunneling_device_data (link); -if (status !=DC_OK ) -dm_error ("%s: Read DP tunneling device data failed.\n" , __func__); - } + status =dpcd_get_tunneling_device_data (link); +if (status !=DC_OK ) +dm_error ("%s: Read DP tunneling device data failed.\n" , __func__);retrieve_cable_id (link);dpcd_write_cable_id_to_dprx (link);
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia.c +47 -7
69 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia.h +6 -0
@@ -38,4 +38,10 @@ enum dc_status dpcd_get_tunneling_device_data(struct dc_link *link);* Returns true if HPD high. */ bool dpia_query_hpd_status (struct dc_link *link); + +/* Decide the DP tunneling settings based on the DPCD capabilities +*/ +void link_decide_dp_tunnel_settings (struct dc_stream_state *stream, +struct dc_tunnel_settings *dp_tunnel_setting); +#endif /* __DC_LINK_DPIA_H__ */
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia_bw.c +25 -45
115 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia_bw.h +2 -2
@@ -43,13 +43,13 @@ enum bw_type { };/* -* Enable BW Allocation Mode Support from the DP-Tx side +* Enable USB4 DP BW allocation mode * * @link: pointer to the dc_link struct instance * * return: SUCCESS or FAILURE */ -bool link_dp_dpia_set_dptx_usb4_bw_alloc_support (struct dc_link *link); +bool link_dpia_enable_usb4_dp_bw_alloc_mode (struct dc_link *link);/* * Allocates only what the stream needs for bw, so if:
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_irq_handler.c +2 -2
@@ -352,7 +352,7 @@ enum dc_status dp_read_hpd_rx_irq_data( irq_data->raw, DP_SINK_STATUS - DP_SINK_COUNT + 1); -if (link->ep_type ==DISPLAY_ENDPOINT_USB4_DPIA ) { +if (link->dpcd_caps.usb4_dp_tun_info.dp_tun_cap.bits.dp_tunneling) { retval =core_link_read_dpcd ( link,DP_LINK_SERVICE_IRQ_VECTOR_ESI0 , &irq_data->bytes.link_service_irq_esi0.raw,1 );
@@ -521,7 +521,7 @@ bool dp_handle_hpd_rx_irq(struct dc_link *link,dp_trace_link_loss_increment (link); } -if (link->ep_type ==DISPLAY_ENDPOINT_USB4_DPIA ) { +if (link->dpcd_caps.usb4_dp_tun_info.dp_tun_cap.bits.dp_tunneling) {if (hpd_irq_dpcd_data.bytes.link_service_irq_esi0.bits.DP_LINK_TUNNELING_IRQ)dp_handle_tunneling_irq (link); }
Signature · 1 line
2.34.1
PATCH 4/11 drm/amd/display: Move mcache allocation programming from DML to resource
In reply to Tom ChungFrom: Karthi Kandasamy <[email protected]>
[Why]
mcache allocation programming is not part of DML's core responsibilities. Keeping this logic in DML leads to poor separation of concerns and complicates maintenance.
[How]
Refactored code to move mcache parameter preparation and mcache ID assignment into the resource file.
--- .../gpu/drm/amd/display/dc/core/dc_resource.c | 9 +++ .../dc/dml2/dml21/dml21_translation_helper.c | 2 +- .../dc/dml2/dml21/dml21_translation_helper.h | 2 + .../amd/display/dc/dml2/dml21/dml21_wrapper.c | 40 ++++++++++++ .../amd/display/dc/dml2/dml21/dml21_wrapper.h | 64 +++++++++++++++++++ .../drm/amd/display/dc/dml2/dml2_wrapper.h | 2 + .../gpu/drm/amd/display/dc/inc/core_types.h | 3 + drivers/gpu/drm/amd/display/dc/inc/resource.h | 8 +++ 8 files changed, 129 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +9 -0
@@ -5525,6 +5525,14 @@ struct dscl_prog_data *resource_get_dscl_prog_data(struct pipe_ctx *pipe_ctx)return &pipe_ctx->plane_res.scl_data.dscl_prog_data; } +static bool resource_allocate_mcache (struct dc_state *context,const struct dc_mcache_params *mcache_params) +{ +if (context->clk_mgr->ctx->dc->res_pool->funcs->program_mcache_pipe_config) + context->clk_mgr->ctx->dc->res_pool->funcs->program_mcache_pipe_config (context, mcache_params); + +return true; +} +void resource_init_common_dml2_callbacks (struct dc *dc,struct dml2_configuration_options *dml2_options) { dml2_options->callbacks.dc = dc;
@@ -5544,6 +5552,7 @@ void resource_init_common_dml2_callbacks(struct dc *dc, struct dml2_configuratio dml2_options->callbacks.get_stream_status = &dc_state_get_stream_status; dml2_options->callbacks.get_stream_from_id = &dc_state_get_stream_from_id; dml2_options->callbacks.get_max_flickerless_instant_vtotal_increase = &dc_stream_get_max_flickerless_instant_vtotal_increase; + dml2_options->callbacks.allocate_mcache = &resource_allocate_mcache; dml2_options->svp_pstate.callbacks.dc = dc; dml2_options->svp_pstate.callbacks.add_phantom_plane = &dc_state_add_phantom_plane;
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c +1 -1
@@ -952,7 +952,7 @@ static unsigned int map_stream_to_dml21_display_cfg(const struct dml2_context *dreturn location; } -static unsigned int map_plane_to_dml21_display_cfg (const struct dml2_context *dml_ctx,unsigned int stream_id, +unsigned int map_plane_to_dml21_display_cfg (const struct dml2_context *dml_ctx,unsigned int stream_id,const struct dc_plane_state *plane,const struct dc_state *context) {unsigned int plane_id;
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.h +2 -0
@@ -11,6 +11,7 @@ struct dc_state;struct dcn_watermarks ;union dcn_watermark_set ;struct pipe_ctx ; +struct dc_plane_state ;struct dml2_context ;struct dml2_configuration_options ;
@@ -25,4 +26,5 @@ void dml21_extract_watermark_sets(const struct dc *in_dc, union dcn_watermark_sevoid dml21_map_hw_resources (struct dml2_context *dml_ctx);void dml21_get_pipe_mcache_config (struct dc_state *context,struct pipe_ctx *pipe_ctx,struct dml2_per_plane_programming *pln_prog,struct dml2_pipe_configuration_descriptor *mcache_pipe_config);void dml21_set_dc_p_state_type (struct pipe_ctx *pipe_ctx,struct dml2_per_stream_programming *stream_programming,bool sub_vp_enabled); +unsigned int map_plane_to_dml21_display_cfg (const struct dml2_context *dml_ctx,unsigned int stream_id,const struct dc_plane_state *plane,const struct dc_state *context);#endif
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c +40 -0
@@ -12,6 +12,8 @@#include "dml21_translation_helper.h" #include "dml2_dc_resource_mgmt.h" +#define INVALID -1 +static bool dml21_allocate_memory (struct dml2_context **dml_ctx) { *dml_ctx =vzalloc (sizeof (struct dml2_context ));
@@ -208,10 +210,40 @@ static void dml21_calculate_rq_and_dlg_params(const struct dc *dc, struct dc_sta } } +static void dml21_prepare_mcache_params (struct dml2_context *dml_ctx,struct dc_state *context,struct dc_mcache_params *mcache_params) +{ +int dc_plane_idx =0 ; +int dml_prog_idx, stream_idx, plane_idx; +struct dml2_per_plane_programming *pln_prog =NULL ; + +for (stream_idx =0 ; stream_idx < context->stream_count; stream_idx++) { +for (plane_idx =0 ; plane_idx < context->stream_status[stream_idx].plane_count; plane_idx++) { + dml_prog_idx =map_plane_to_dml21_display_cfg (dml_ctx, context->streams[stream_idx]->stream_id, context->stream_status[stream_idx].plane_states[plane_idx], context); +if (dml_prog_idx ==INVALID ) { +continue ; + } + pln_prog = &dml_ctx->v21.mode_programming.programming->plane_programming[dml_prog_idx]; + mcache_params[dc_plane_idx].valid = pln_prog->mcache_allocation.valid; + mcache_params[dc_plane_idx].num_mcaches_plane0 = pln_prog->mcache_allocation.num_mcaches_plane0; + mcache_params[dc_plane_idx].num_mcaches_plane1 = pln_prog->mcache_allocation.num_mcaches_plane1; + mcache_params[dc_plane_idx].requires_dedicated_mall_mcache = pln_prog->mcache_allocation.requires_dedicated_mall_mcache; + mcache_params[dc_plane_idx].last_slice_sharing.plane0_plane1 = pln_prog->mcache_allocation.last_slice_sharing.plane0_plane1; +memcpy (mcache_params[dc_plane_idx].mcache_x_offsets_plane0, + pln_prog->mcache_allocation.mcache_x_offsets_plane0, +sizeof (int ) * (DML2_MAX_MCACHES +1 )); +memcpy (mcache_params[dc_plane_idx].mcache_x_offsets_plane1, + pln_prog->mcache_allocation.mcache_x_offsets_plane1, +sizeof (int ) * (DML2_MAX_MCACHES +1 )); + dc_plane_idx++; + } + } +} +static bool dml21_mode_check_and_programming (const struct dc *in_dc,struct dc_state *context,struct dml2_context *dml_ctx) {bool result = false;struct dml2_build_mode_programming_in_out *mode_programming = &dml_ctx->v21.mode_programming; +struct dc_mcache_params mcache_params[MAX_PLANES ] = {0 };memset (&dml_ctx->v21.display_config,0 ,sizeof (struct dml2_display_cfg ));memset (&dml_ctx->v21.dml_to_dc_pipe_mapping,0 ,sizeof (struct dml2_dml_to_dc_pipe_mapping ));
@@ -246,6 +278,14 @@ static bool dml21_mode_check_and_programming(const struct dc *in_dc, struct dc_sdml2_map_dc_pipes (dml_ctx, context,NULL , &dml_ctx->v21.dml_to_dc_pipe_mapping, in_dc->current_state);/* if subvp phantoms are present, expand them into dc context */ dml21_handle_phantom_streams_planes (in_dc, context, dml_ctx); + +if (in_dc->res_pool->funcs->program_mcache_pipe_config) { +//Prepare mcache params for each plane based on mcache output from DML +dml21_prepare_mcache_params (dml_ctx, context, mcache_params); + +//populate mcache regs to each pipe + dml_ctx->config.callbacks.allocate_mcache (context, mcache_params); + } }/* Copy DML CLK, WM and REG outputs to bandwidth context */
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.h +64 -0
74 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.h +2 -0
@@ -40,6 +40,7 @@ struct dc_sink;struct dc_stream_state ;struct resource_context ;struct display_stream_compressor ; +struct dc_mcache_params ;// Configuration of the MALL on the SoC struct dml2_soc_mall_info {
@@ -107,6 +108,7 @@ struct dml2_dc_callbacks {unsigned int (*get_max_flickerless_instant_vtotal_increase)(struct dc_stream_state *stream,bool is_gaming); +bool (*allocate_mcache)(struct dc_state *context,const struct dc_mcache_params *mcache_params); };struct dml2_dc_svp_callbacks {
drivers/gpu/drm/amd/display/dc/inc/core_types.h +3 -0
@@ -65,6 +65,7 @@ struct resource_pool;struct dc_state ;struct resource_context ;struct clk_bw_params ; +struct dc_mcache_params ;struct resource_funcs {enum engine_id (*get_preferred_eng_id_dpia)(unsigned int dpia_index);
@@ -220,6 +221,8 @@ struct resource_funcs {unsigned int (*get_max_hw_cursor_size)(const struct dc *dc,struct dc_state *state,const struct dc_stream_state *stream); +bool (*program_mcache_pipe_config)(struct dc_state *context, +const struct dc_mcache_params *mcache_params); };struct audio_support {
drivers/gpu/drm/amd/display/dc/inc/resource.h +8 -0
@@ -32,6 +32,7 @@#define MEMORY_TYPE_MULTIPLIER_CZ 4#define MEMORY_TYPE_HBM 2 +#define MAX_MCACHES 8#define IS_PIPE_SYNCD_VALID (pipe) ((((pipe)->pipe_idx_syncd) & 0x80)?1:0)
@@ -65,6 +66,13 @@ struct resource_straps {uint32_t audio_stream_number; }; +struct dc_mcache_allocations { +int global_mcache_ids_plane0[MAX_MCACHES +1 ]; +int global_mcache_ids_plane1[MAX_MCACHES +1 ]; +int global_mcache_ids_mall_plane0[MAX_MCACHES +1 ]; +int global_mcache_ids_mall_plane1[MAX_MCACHES +1 ]; +}; +struct resource_create_funcs {void (*read_dce_straps)(struct dc_context *ctx,struct resource_straps *straps);
Signature · 1 line
2.34.1
PATCH 5/11 drm/amd/display: Skip backend validation for virtual monitors
In reply to Tom ChungFrom: Chiawen Huang <[email protected]>
[Why&How]
Virtual monitors are now being validated during set_mode. Virtual monitors should not undergo backend validation, as the backend is intended only for physical monitors. Virtual sinks have no real backend part information and should be excluded from this validation.
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +7 -3
@@ -2334,11 +2334,15 @@ enum dc_status dc_commit_streams(struct dc *dc, struct dc_commit_streams_paramsfor (i =0 ; i < params->stream_count; i++) {struct dc_stream_state *stream = params->streams[i];struct dc_stream_status *status =dc_stream_get_status (stream); +struct dc_sink *sink = stream->sink;/* revalidate streams */ - res =dc_validate_stream (dc, stream); -if (res !=DC_OK ) -return res; +if (!dc_is_virtual_signal (sink->sink_signal)) { + res =dc_validate_stream (dc, stream); +if (res !=DC_OK ) +return res; + } +dc_stream_log (dc, stream);
Signature · 1 line
2.34.1
PATCH 6/11 drm/amd/display: Fix the typo in dcn401 Hubp block
In reply to Tom ChungFrom: Nevenko Stupar <[email protected]>
[Why & How]
Fix the typo for hubp_clear_tiling, currently calls hubp2_clear_tiling for dcn401 instead of intended hubp401_clear_tiling.
--- drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/hubp/dcn401/dcn401_hubp.c +1 -1
@@ -1032,7 +1032,7 @@ static struct hubp_funcs dcn401_hubp_funcs = { .hubp_program_3dlut_fl_tmz_protected = hubp401_program_3dlut_fl_tmz_protected, .hubp_program_3dlut_fl_crossbar = hubp401_program_3dlut_fl_crossbar, .hubp_get_3dlut_fl_done = hubp401_get_3dlut_fl_done, - .hubp_clear_tiling = hubp2_clear_tiling, + .hubp_clear_tiling = hubp401_clear_tiling, }; bool hubp401_construct(
Signature · 1 line
2.34.1
PATCH 7/11 drm/amd/display: add support for 2nd sharpening range
In reply to Tom ChungFrom: Samson Tam <[email protected]>
[Why & How]
Add support for 2nd sharpening range for cases where we want override existing DCN sharpening range.
--- drivers/gpu/drm/amd/display/dc/sspl/dc_spl_types.h | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/display/dc/sspl/dc_spl_types.h +4 -0
@@ -480,6 +480,10 @@ enum sharpness_setting { SHARPNESS_ZERO,SHARPNESS_CUSTOM }; +enum sharpness_range_source { +SHARPNESS_RANGE_DCN =0 , +SHARPNESS_RANGE_DCN_OVERRIDE +};struct spl_sharpness_range {int sdr_rgb_min;int sdr_rgb_max;
Signature · 1 line
2.34.1
PATCH 8/11 drm/amd/display: Modify DCN401 DMUB reset & halt sequence
In reply to Tom ChungFrom: Dillon Varone <[email protected]>
[WHY&HOW]
If DMCUB is already disabled or reset, no need to send the halt command again.
--- .../gpu/drm/amd/display/dmub/src/dmub_dcn401.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn401.c +6 -10
@@ -66,24 +66,20 @@ void dmub_dcn401_reset(struct dmub_srv *dmub)const uint32_t timeout_us =1 *1000 *1000 ;//1s const uint32_t poll_delay_us =1 ;//1us uint32_t i =0 ; -uint32_t in_reset, scratch, pwait_mode; +uint32_t enabled, in_reset, scratch, pwait_mode; -REG_GET (DMCUB_CNTL2 ,DMCUB_SOFT_RESET , &in_reset); +REG_GET (DMCUB_CNTL , +DMCUB_ENABLE , &enabled); +REG_GET (DMCUB_CNTL2 , +DMCUB_SOFT_RESET , &in_reset); -if (in_reset ==0 ) { +if (enabled && in_reset ==0 ) { cmd.bits.status =1 ; cmd.bits.command_code =DMUB_GPINT__STOP_FW ; cmd.bits.param =0 ; dmub->hw_funcs.set_gpint (dmub, cmd); -for (i =0 ; i < timeout_us; i++) { -if (dmub->hw_funcs.is_gpint_acked (dmub, cmd)) -break ; - -udelay (poll_delay_us); - } -for (; i < timeout_us; i++) { scratch = dmub->hw_funcs.get_gpint_response (dmub);if (scratch ==DMUB_GPINT__STOP_FW_RESPONSE )
Signature · 1 line
2.34.1
PATCH 9/11 drm/amd/display: Add GPINT retries to ips_query_residency_info
In reply to Tom ChungFrom: Ovidiu Bunea <[email protected]>
[why & how]
GPINTs can timeout without returning any data. Since this path is only for testing purposes, it should retry several times to ensure data is collected.
--- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c +9 -5
@@ -39,6 +39,7 @@#define CTX dc_dmub_srv->ctx#define DC_LOGGER CTX->logger +#define GPINT_RETRY_NUM 20static void dc_dmub_srv_construct (struct dc_dmub_srv *dc_srv,struct dc *dc,struct dmub_srv *dmub)
@@ -1888,11 +1889,14 @@ void dc_dmub_srv_ips_query_residency_info(struct dc_dmub_srv *dc_dmub_srv, strucif (command_code ==DMUB_GPINT__INVALID_COMMAND )return ; -// send gpint commands and wait for ack -if (!dc_wake_and_execute_gpint (dc_dmub_srv->ctx,DMUB_GPINT__GET_IPS_RESIDENCY_PERCENT , - (uint16_t )(output->ips_mode), - &output->residency_percent,DM_DMUB_WAIT_TYPE_WAIT_WITH_REPLY )) - output->residency_percent =0 ; +for (i =0 ; i <GPINT_RETRY_NUM ; i++) { +// false could mean GPINT timeout, in which case we should retry +if (dc_wake_and_execute_gpint (dc_dmub_srv->ctx,DMUB_GPINT__GET_IPS_RESIDENCY_PERCENT , + (uint16_t )(output->ips_mode), &output->residency_percent, +DM_DMUB_WAIT_TYPE_WAIT_WITH_REPLY )) +break ; +udelay (100 ); + } if (!dc_wake_and_execute_gpint(dc_dmub_srv->ctx, DMUB_GPINT__GET_IPS_RESIDENCY_ENTRY_COUNTER, (uint16_t)(output->ips_mode),
Signature · 1 line
2.34.1
PATCH 10/11 drm/amd/display: [FW Promotion] Release 0.1.11.0
In reply to Tom ChungFrom: Taimur Hassan <[email protected]>
Refactoring some DMUB related structs and enum.
--- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 34 +++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +32 -2
@@ -2139,6 +2139,11 @@ union dmub_cmd_fams2_config { } stream_v1;//v1 }; +struct dmub_fams2_config_v2 { +struct dmub_cmd_fams2_global_config global; +struct dmub_fams2_stream_static_state_v1 stream_v1[DMUB_MAX_STREAMS ];//v1 +}; +/** * DMUB rb command definition for FAMS2 (merged SubVP, FPO, Legacy) */
@@ -2147,6 +2152,22 @@ struct dmub_rb_cmd_fams2 {union dmub_cmd_fams2_config config; }; +/** +* Indirect buffer descriptor +*/ +struct dmub_ib_data { +union dmub_addr src;// location of indirect buffer in memory +uint16_t size;// indirect buffer size in bytes +}; + +/** +* DMUB rb command definition for commands passed over indirect buffer +*/ +struct dmub_rb_cmd_ib { +struct dmub_cmd_header header; +struct dmub_ib_data ib_data; +}; +/** * enum dmub_cmd_idle_opt_type - Idle optimization command type. */
@@ -2170,6 +2191,11 @@ enum dmub_cmd_idle_opt_type {* DCN hardware notify power state. */ DMUB_CMD__IDLE_OPT_SET_DC_POWER_STATE =3 , + +/** +* DCN notify to release HW. +*/ + DMUB_CMD__IDLE_OPT_RELEASE_HW = 4, };/**
@@ -2931,8 +2957,9 @@ enum dmub_cmd_fams_type {*/ DMUB_CMD__FAMS_SET_MANUAL_TRIGGER =3 ,DMUB_CMD__FAMS2_CONFIG =4 , -DMUB_CMD__FAMS2_DRR_UPDATE =5 , - DMUB_CMD__FAMS2_FLIP = 6, +DMUB_CMD__FAMS2_IB_CONFIG =5 , +DMUB_CMD__FAMS2_DRR_UPDATE =6 , + DMUB_CMD__FAMS2_FLIP = 7, };/**
@@ -5926,8 +5953,11 @@ union dmub_rb_cmd {* Definition of a DMUB_CMD__PSP_ASSR_ENABLE command. */ struct dmub_rb_cmd_assr_enable assr_enable; +struct dmub_rb_cmd_fams2 fams2_config; +struct dmub_rb_cmd_ib ib_fams2_config; +struct dmub_rb_cmd_fams2_drr_update fams2_drr_update;struct dmub_rb_cmd_fams2_flip fams2_flip;
Signature · 1 line
2.34.1
PATCH 11/11 drm/amd/display: Promote DAL to 3.2.334
In reply to Tom ChungFrom: Taimur Hassan <[email protected]>
This version brings along following update:
-Support external tunneling feature
-Modify DCN401 DMUB reset & halt sequence
-Fix the typo in dcn401 Hubp block
-Skip backend validation for virtual monitors
--- 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
@@ -53,7 +53,7 @@ struct aux_payload;struct set_config_cmd_payload ;struct dmub_notification ; -#define DC_VER "3.2.333" +#define DC_VER "3.2.334"/** * MAX_SURFACES - representative of the upper bound of surfaces that can be piped to a single CRTC
Signature · 1 line
2.34.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
* 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
The patchset consists of the amd-staging-drm-next branch (Head commit - 93731cdc105ab89f796a826b52a524a3be4b6f4d -> drm/amdgpu: implement get_retire_flip_bits for UMC v12) with new patches added on top of it.
Tested on Ubuntu 24.04.1, 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
Facebook | Twitter | amd.com
-----Original Message-----
From: Tom Chung <[email protected]>
Sent: Tuesday, May 13, 2025 7:24 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]>; Hung, Alex <[email protected]>
Subject: [PATCH 00/11] DC Patches May 19 2025
This DC patchset brings improvements in multiple areas. In summary, we highlight:
-Support external tunneling feature
-Modify DCN401 DMUB reset & halt sequence -Fix the typo in dcn401 Hubp block -Skip backend validation for virtual monitors
Chiawen Huang (1):
drm/amd/display: Skip backend validation for virtual monitors
Cruise Hung (1):
drm/amd/display: Support external tunneling feature
Dillon Varone (1):
drm/amd/display: Modify DCN401 DMUB reset & halt sequence
Karthi Kandasamy (1):
drm/amd/display: Move mcache allocation programming from DML to
resource
Nevenko Stupar (1):
drm/amd/display: Fix the typo in dcn401 Hubp block
Ovidiu Bunea (1):
drm/amd/display: Add GPINT retries to ips_query_residency_info
Samson Tam (1):
drm/amd/display: add support for 2nd sharpening range
Taimur Hassan (2):
drm/amd/display: [FW Promotion] Release 0.1.11.0 drm/amd/display: Promote DAL to 3.2.334
Tomasz Siemek (1):
drm/amd/display: Extend dc_plane_get_status with flags
Yihan Zhu (1):
drm/amd/display: init local variable to fix format errors
drivers/gpu/drm/amd/display/dc/core/dc.c | 10 ++- .../gpu/drm/amd/display/dc/core/dc_resource.c | 13 ++++ .../gpu/drm/amd/display/dc/core/dc_surface.c | 8 ++- drivers/gpu/drm/amd/display/dc/dc.h | 2 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 14 ++-- drivers/gpu/drm/amd/display/dc/dc_dp_types.h | 21 ++++++ drivers/gpu/drm/amd/display/dc/dc_plane.h | 10 ++- .../dc/dml2/dml21/dml21_translation_helper.c | 2 +- .../dc/dml2/dml21/dml21_translation_helper.h | 2 + .../amd/display/dc/dml2/dml21/dml21_wrapper.c | 40 +++++++++++ .../amd/display/dc/dml2/dml21/dml21_wrapper.h | 64 +++++++++++++++++ .../drm/amd/display/dc/dml2/dml2_wrapper.h | 2 + .../amd/display/dc/hubp/dcn401/dcn401_hubp.c | 2 +- .../amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 2 +- .../amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 16 ++--- .../gpu/drm/amd/display/dc/inc/core_types.h | 5 ++ drivers/gpu/drm/amd/display/dc/inc/link.h | 3 + drivers/gpu/drm/amd/display/dc/inc/resource.h | 8 +++ .../drm/amd/display/dc/link/link_detection.c | 21 ++---- .../gpu/drm/amd/display/dc/link/link_dpms.c | 6 +- .../drm/amd/display/dc/link/link_factory.c | 1 + .../dc/link/protocols/link_dp_capability.c | 8 +-- .../display/dc/link/protocols/link_dp_dpia.c | 54 ++++++++++++-- .../display/dc/link/protocols/link_dp_dpia.h | 6 ++ .../dc/link/protocols/link_dp_dpia_bw.c | 70 +++++++------------ .../dc/link/protocols/link_dp_dpia_bw.h | 4 +- .../dc/link/protocols/link_dp_irq_handler.c | 4 +- .../drm/amd/display/dc/sspl/dc_spl_types.h | 4 ++ .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 34 ++++++++- .../drm/amd/display/dmub/src/dmub_dcn401.c | 16 ++--- 30 files changed, 337 insertions(+), 115 deletions(-)
--
2.34.1