DC Patches January 18, 2024
Subsystems (3)
cover DC Patches January 18, 2024
From: Roman Li <[email protected]>
This DC patchset brings improvements in multiple areas. In summary, we highlight:
* Add power_state/pme_pending flag/usb4_bw_alloc_support flags
* Add GART memory support
* Improvements for HDMI, IPS, DML2 and others
Allen Pan (1):
drm/amd/display: Add NULL-checks in dml2 assigned pipe search
Anthony Koo (1):
drm/amd/display: [FW Promotion] Release 0.0.201.0
Aric Cyr (2):
drm/amd/display: Promote DAL to 3.2.268
drm/amd/display: Promote DAL to 3.2.269
Charlene Liu (1):
drm/amd/display: Revert "Rework DC Z10 restore"
ChunTao Tso (1):
drm/amd/display: Replay + IPS + ABM in Full Screen VPB
Fudongwang (1):
drm/amd/display: Add GART memory support for dmcub
Leo (Hanghong) Ma (1):
drm/amd/display: Fix timing bandwidth calculation for HDMI
Muhammad Ahmed (1):
drm/amd/display: add power_state and pme_pending flag
Peichen Huang (1):
drm/amd/display: Add usb4_bw_alloc_support flag
Roman Li (1):
drm/amd/display: Add IPS checks before dcn register access
Wenjing Liu (1):
drm/amd/display: turn off windowed Mpo ODM feature for dcn321
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 29 +++-- drivers/gpu/drm/amd/display/dc/core/dc.c | 11 +- .../gpu/drm/amd/display/dc/core/dc_stream.c | 9 +- drivers/gpu/drm/amd/display/dc/dc.h | 4 +- drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 1 + drivers/gpu/drm/amd/display/dc/dc_types.h | 5 + .../display/dc/dml2/dml2_dc_resource_mgmt.c | 19 ++-- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 5 + .../amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 2 + .../amd/display/dc/inc/hw/clk_mgr_internal.h | 1 + .../drm/amd/display/dc/link/link_detection.c | 18 +++ .../gpu/drm/amd/display/dc/link/link_dpms.c | 58 ++++++++++ .../dc/resource/dcn321/dcn321_resource.c | 1 + drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 19 +++- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 59 ++++++++-- .../gpu/drm/amd/display/dmub/src/dmub_srv.c | 106 ++++++++---------- .../amd/display/modules/power/power_helpers.c | 5 + .../amd/display/modules/power/power_helpers.h | 1 + 18 files changed, 244 insertions(+), 109 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/12 drm/amd/display: Fix timing bandwidth calculation for HDMI
From: "Leo (Hanghong) Ma" <[email protected]>
[Why && How]
The current bandwidth calculation for timing doesn't account for certain HDMI modes overhead which leads to DSC can't be enabled. Add support to calculate the actual bandwidth for these HDMI modes.
--- drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 1 + drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 5 +++++ 2 files changed, 6 insertions(+)
drivers/gpu/drm/amd/display/dc/dc_hw_types.h +1 -0
@@ -942,6 +942,7 @@ struct dc_crtc_timing {uint32_t hdmi_vic;uint32_t rid;uint32_t fr_index; +uint32_t frl_uncompressed_video_bandwidth_in_kbps;enum dc_timing_3d_format timing_3d_format;enum dc_color_depth display_color_depth;enum dc_pixel_encoding pixel_encoding;
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c +5 -0
@@ -137,6 +137,11 @@ uint32_t dc_bandwidth_in_kbps_from_timing(if (link_encoding == DC_LINK_ENCODING_DP_128b_132b) kbps =apply_128b_132b_stream_overhead (timing, kbps); +if (link_encoding ==DC_LINK_ENCODING_HDMI_FRL && + timing->vic ==0 && timing->hdmi_vic ==0 && + timing->frl_uncompressed_video_bandwidth_in_kbps !=0 ) + kbps = timing->frl_uncompressed_video_bandwidth_in_kbps; +return kbps; }
Signature · 1 line
2.34.1
PATCH 2/12 drm/amd/display: Promote DAL to 3.2.268
In reply to [email protected]From: Aric Cyr <[email protected]>
--- 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
@@ -51,7 +51,7 @@ struct aux_payload;struct set_config_cmd_payload ;struct dmub_notification ; -#define DC_VER "3.2.267" +#define DC_VER "3.2.268"#define MAX_SURFACES 3#define MAX_PLANES 6
Signature · 1 line
2.34.1
PATCH 3/12 drm/amd/display: Add usb4_bw_alloc_support flag
In reply to [email protected]From: Peichen Huang <[email protected]>
[Why]
dc should have a flag for DM to enable usb4_bw_alloc in dptx
[How]
- Add usb4_bw_alloc_support flag in dc_config
--- drivers/gpu/drm/amd/display/dc/dc.h | 1 + .../drm/amd/display/dc/link/link_detection.c | 18 ++++++ .../gpu/drm/amd/display/dc/link/link_dpms.c | 58 +++++++++++++++++++ 3 files changed, 77 insertions(+)
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -435,6 +435,7 @@ struct dc_config {bool enable_auto_dpm_test_logs;unsigned int disable_ips;unsigned int disable_ips_in_vpb; +bool usb4_bw_alloc_support; };enum visual_confirm {
drivers/gpu/drm/amd/display/dc/link/link_detection.c +18 -0
@@ -41,6 +41,7 @@#include "protocols/link_dp_dpia.h" #include "protocols/link_dp_phy.h" #include "protocols/link_dp_training.h" +#include "protocols/link_dp_dpia_bw.h" #include "accessories/link_dp_trace.h" #include "link_enc_cfg.h"
@@ -991,6 +992,23 @@ static bool detect_link_and_local_sink(struct dc_link *link,if (link->ep_type ==DISPLAY_ENDPOINT_USB4_DPIA && 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; + } + } + }break ; }
drivers/gpu/drm/amd/display/dc/link/link_dpms.c +58 -0
64 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH 4/12 drm/amd/display: Add NULL-checks in dml2 assigned pipe search
In reply to [email protected]From: Allen Pan <[email protected]>
[Why]
NULL-deref regression after:
"drm/amd/display: Fix dml2 assigned pipe search"
[How]
Add verification for potential NULLs
--- .../display/dc/dml2/dml2_dc_resource_mgmt.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c +12 -7
@@ -146,19 +146,24 @@ static unsigned int find_pipes_assigned_to_plane(struct dml2_context *ctx,for (i =0 ; i < ctx->config.dcn_pipe_count; i++) {struct pipe_ctx *pipe = &state->res_ctx.pipe_ctx[i]; -if (!pipe->stream) +if (!pipe->plane_state || !pipe->stream)continue ;get_plane_id (ctx, state, pipe->plane_state, pipe->stream->stream_id, ctx->v20.scratch.dml_to_dc_pipe_mapping.dml_pipe_idx_to_plane_index[pipe->pipe_idx], &plane_id_assigned_to_pipe); -if (pipe->plane_state && plane_id_assigned_to_pipe == plane_id && !pipe->top_pipe && !pipe->prev_odm_pipe) { +if (plane_id_assigned_to_pipe == plane_id && !pipe->prev_odm_pipe + && (!pipe->top_pipe || pipe->top_pipe->plane_state != pipe->plane_state)) {while (pipe) { -struct pipe_ctx *mpo_pipe = pipe; - -while (mpo_pipe) { - pipes[num_found++] = mpo_pipe->pipe_idx; - mpo_pipe = mpo_pipe->bottom_pipe; +struct pipe_ctx *mpc_pipe = pipe; + +while (mpc_pipe) { + pipes[num_found++] = mpc_pipe->pipe_idx; + mpc_pipe = mpc_pipe->bottom_pipe; +if (!mpc_pipe) +break ; +if (mpc_pipe->plane_state != pipe->plane_state) + mpc_pipe =NULL ; } pipe = pipe->next_odm_pipe; }
Signature · 1 line
2.34.1
PATCH 5/12 drm/amd/display: Add IPS checks before dcn register access
In reply to [email protected]From: Roman Li <[email protected]>
[Why]
With IPS enabled a system hangs once PSR is active. PSR active triggers transition to IPS2 state.
While in IPS2 an access to dcn registers results in hard hang. Existing check doesn't cover for PSR sequence.
[How]
Safeguard register access by disabling idle optimization in atomic commit and crtc scanout. It will be re-enabled on next vblank.
--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +6 -10
@@ -272,6 +272,7 @@ static int dm_crtc_get_scanoutpos(struct amdgpu_device *adev, int crtc, {u32 v_blank_start, v_blank_end, h_position, v_position;struct amdgpu_crtc *acrtc =NULL ; +struct dc *dc = adev->dm.dc;if ((crtc <0 ) || (crtc >= adev->mode_info.num_crtc))return -EINVAL ;
@@ -284,6 +285,9 @@ static int dm_crtc_get_scanoutpos(struct amdgpu_device *adev, int crtc,return 0 ; } +if (dc && dc->caps.ips_support && dc->idle_optimizations_allowed) +dc_allow_idle_optimizations (dc, false); +/* * TODO rework base driver to use values directly. * for now parse it back into reg-format
@@ -9010,16 +9014,8 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state)trace_amdgpu_dm_atomic_commit_tail_begin (state); -if (dm->dc->caps.ips_support) { -for_each_oldnew_connector_in_state (state, connector, old_con_state, new_con_state, i) { -if (new_con_state->crtc && - new_con_state->crtc->state->active && -drm_atomic_crtc_needs_modeset (new_con_state->crtc->state)) { -dc_dmub_srv_apply_idle_power_optimizations (dm->dc, false); -break ; - } - } - } +if (dm->dc->caps.ips_support && dm->dc->idle_optimizations_allowed) +dc_allow_idle_optimizations (dm->dc, false);drm_atomic_helper_update_legacy_modeset_state (dev, state);drm_dp_mst_atomic_wait_for_dependencies (state);
Signature · 1 line
2.34.1
PATCH 6/12 drm/amd/display: add power_state and pme_pending flag
In reply to [email protected]From: Muhammad Ahmed <[email protected]>
[what]
Adding power_state to dc.h and pme_pending flag to clk_mgr_internal.h
--- drivers/gpu/drm/amd/display/dc/dc.h | 1 + drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h | 1 + 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -1069,6 +1069,7 @@ struct dc { } scratch;struct dml2_configuration_options dml2_options; +enum dc_acpi_cm_power_state power_state; };enum frame_buffer_mode {
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h +1 -0
@@ -356,6 +356,7 @@ struct clk_mgr_internal {long long wm_range_table_addr;bool dpm_present; +bool pme_trigger_pending; };struct clk_mgr_internal_funcs {
Signature · 1 line
2.34.1
PATCH 7/12 drm/amd/display: Revert "Rework DC Z10 restore"
In reply to [email protected]From: Charlene Liu <[email protected]>
This reverts commit 080a7e9d7dc5a18401d0569a36d55e133ed10cf8.
It caused intermittent hangs when enabling IPS on static screen.
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 11 +---------- drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 9 ++++----- .../gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 2 ++ 3 files changed, 7 insertions(+), 15 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +1 -10
@@ -1836,8 +1836,8 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *cstruct dc_state *old_state;bool subvp_prev_use = false; -dc_allow_idle_optimizations (dc, false);dc_z10_restore (dc); +dc_allow_idle_optimizations (dc, false);for (i =0 ; i < dc->res_pool->pipe_count; i++) {struct pipe_ctx *old_pipe = &dc->current_state->res_ctx.pipe_ctx[i];
@@ -3376,9 +3376,6 @@ static void commit_planes_for_stream_fast(struct dc *dc,int i, j;struct pipe_ctx *top_pipe_to_program =NULL ;struct dc_stream_status *stream_status =NULL ; -if (dc->caps.ips_support) -dc_allow_idle_optimizations (dc, false); -dc_z10_restore (dc); top_pipe_to_program = resource_get_otg_master_for_stream(
@@ -3506,9 +3503,6 @@ static void commit_planes_for_stream(struct dc *dc,// dc->current_state anymore, so we have to cache it before we apply // the new SubVP context subvp_prev_use = false; -if (dc->caps.ips_support) -dc_allow_idle_optimizations (dc, false); -dc_z10_restore (dc);if (update_type ==UPDATE_TYPE_FULL )wait_for_outstanding_hw_updates (dc, context);
@@ -4692,9 +4686,6 @@ void dc_set_power_state(case DC_ACPI_CM_POWER_STATE_D0 :dc_state_construct (dc, dc->current_state); -if (dc->caps.ips_support) -dc_allow_idle_optimizations (dc, false); -dc_z10_restore (dc); dc->hwss.init_hw (dc);
drivers/gpu/drm/amd/display/dc/core/dc_stream.c +4 -5
@@ -309,6 +309,7 @@ bool dc_stream_set_cursor_attributes( stream->cursor_attributes = *attributes; +dc_z10_restore (dc);/* disable idle optimizations while updating cursor */ if (dc->idle_optimizations_allowed) {dc_allow_idle_optimizations (dc, false);
@@ -380,14 +381,12 @@ bool dc_stream_set_cursor_position( } dc = stream->ctx->dc; +dc_z10_restore (dc);/* disable idle optimizations if enabling cursor */ -if (dc->idle_optimizations_allowed && - (!stream->cursor_position.enable || dc->debug.exit_idle_opt_for_cursor_updates || - dc->caps.ips_support) && - position->enable) { +if (dc->idle_optimizations_allowed && (!stream->cursor_position.enable || dc->debug.exit_idle_opt_for_cursor_updates) + && position->enable) {dc_allow_idle_optimizations (dc, false); -dc_z10_restore (dc); reset_idle_optimizations = true; }
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c +2 -0
@@ -708,6 +708,8 @@ void dcn35_z10_restore(const struct dc *dc)if (dc->debug.disable_z10)return ; +dc_dmub_srv_apply_idle_power_optimizations (dc, false); +dcn31_z10_restore (dc); }
Signature · 1 line
2.34.1
PATCH 8/12 drm/amd/display: Add GART memory support for dmcub
In reply to [email protected]From: Fudongwang <[email protected]>
[Why]
In dump file, GART memory can be accessed while frame buffer cannot.
[How]
Add GART memory support for dmcub.
--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 13 ++- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 19 +++- .../gpu/drm/amd/display/dmub/src/dmub_srv.c | 106 ++++++++---------- 3 files changed, 71 insertions(+), 67 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +12 -1
@@ -2120,6 +2120,16 @@ static int dm_dmub_sw_init(struct amdgpu_device *adev)const struct dmcub_firmware_header_v1_0 *hdr;enum dmub_asic dmub_asic;enum dmub_status status; +static enum dmub_window_memory_type window_memory_type[DMUB_WINDOW_TOTAL ] = { +DMUB_WINDOW_MEMORY_TYPE_FB ,//DMUB_WINDOW_0_INST_CONST +DMUB_WINDOW_MEMORY_TYPE_FB ,//DMUB_WINDOW_1_STACK +DMUB_WINDOW_MEMORY_TYPE_FB ,//DMUB_WINDOW_2_BSS_DATA +DMUB_WINDOW_MEMORY_TYPE_FB ,//DMUB_WINDOW_3_VBIOS +DMUB_WINDOW_MEMORY_TYPE_FB ,//DMUB_WINDOW_4_MAILBOX +DMUB_WINDOW_MEMORY_TYPE_FB ,//DMUB_WINDOW_5_TRACEBUFF +DMUB_WINDOW_MEMORY_TYPE_FB ,//DMUB_WINDOW_6_FW_STATE +DMUB_WINDOW_MEMORY_TYPE_FB //DMUB_WINDOW_7_SCRATCH_MEM + };int r;switch (amdgpu_ip_version (adev,DCE_HWIP ,0 )) {
@@ -2217,7 +2227,7 @@ static int dm_dmub_sw_init(struct amdgpu_device *adev) adev->dm.dmub_fw->data +le32_to_cpu (hdr->header.ucode_array_offset_bytes) +PSP_HEADER_BYTES ; - region_params.is_mailbox_in_inbox = false; + region_params.window_memory_type = window_memory_type; status =dmub_srv_calc_region_info (dmub_srv, ®ion_params, ®ion_info);
@@ -2245,6 +2255,7 @@ static int dm_dmub_sw_init(struct amdgpu_device *adev) memory_params.cpu_fb_addr = adev->dm.dmub_bo_cpu_addr; memory_params.gpu_fb_addr = adev->dm.dmub_bo_gpu_addr; memory_params.region_info = ®ion_info; + memory_params.window_memory_type = window_memory_type; adev->dm.dmub_fb_info =kzalloc (sizeof (*adev->dm.dmub_fb_info),GFP_KERNEL );
drivers/gpu/drm/amd/display/dmub/dmub_srv.h +15 -4
@@ -78,6 +78,16 @@ struct dmub_srv_dcn31_regs;struct dmcub_trace_buf_entry ; +struct dmcub_inbox1_buf { +union dmub_rb_cmd cmd[DMUB_RB_MAX_ENTRY ]; +}; + +/* enum dmub_window_memory_type - memory location type specification for windows */ +enum dmub_window_memory_type { +DMUB_WINDOW_MEMORY_TYPE_FB =0 , +DMUB_WINDOW_MEMORY_TYPE_GART +}; +/* enum dmub_status - return code for dmcub functions */ enum dmub_status {DMUB_STATUS_OK =0 ,
@@ -203,7 +213,7 @@ struct dmub_srv_region_params {uint32_t vbios_size;const uint8_t *fw_inst_const;const uint8_t *fw_bss_data; -bool is_mailbox_in_inbox; +const enum dmub_window_memory_type *window_memory_type; };/**
@@ -223,7 +233,7 @@ struct dmub_srv_region_params {*/ struct dmub_srv_region_info {uint32_t fb_size; -uint32_t inbox_size; +uint32_t gart_size;uint8_t num_regions;struct dmub_region regions[DMUB_WINDOW_TOTAL ]; };
@@ -239,9 +249,10 @@ struct dmub_srv_region_info {struct dmub_srv_memory_params {const struct dmub_srv_region_info *region_info;void *cpu_fb_addr; -void *cpu_inbox_addr; +void *cpu_gart_addr;uint64_t gpu_fb_addr; -uint64_t gpu_inbox_addr; +uint64_t gpu_gart_addr; +const enum dmub_window_memory_type *window_memory_type; };/**
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c +44 -62
148 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH 9/12 drm/amd/display: turn off windowed Mpo ODM feature for dcn321
In reply to [email protected]From: Wenjing Liu <[email protected]>
[why]
It has been found a regression caused by enabling this feature during ODM to MPC combine switch when user is resizing video window. The transition is only needed when the feature is enabled. During the transition driver will temporary switch to use max dppclk level through SMU set hard min interface. The interface times out and fail to configure the max dpp clock level, which caused system issue as the desired clock can't be set. We will continue investigating the issue and root cause the issue where max dppclk level can't be reached. But for now we have to disable this feature as this feature will cause us to hit this problem in common use cases during video playback unfortunately. The issue is dcn321 specific so it won't impact other dcn revisions.
--- drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c +1 -0
@@ -1760,6 +1760,7 @@ static bool dcn321_resource_construct( dc->caps.color.mpc.ocsc =1 ; dc->config.dc_mode_clk_limit_support = true; + dc->config.enable_windowed_mpo_odm = false;/* read VBIOS LTTPR caps */ {if (ctx->dc_bios->funcs->get_lttpr_caps) {
Signature · 1 line
2.34.1
PATCH 10/12 drm/amd/display: Replay + IPS + ABM in Full Screen VPB
In reply to [email protected]From: ChunTao Tso <[email protected]>
[Why]
Because ABM will wait VStart to start getting histogram data,
it will cause we can't enter IPS while full screnn video playing.
[How]
Modify the panel refresh rate to the maximun multiple of current
refresh rate.
--- drivers/gpu/drm/amd/display/dc/dc_types.h | 5 ++ .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 46 +++++++++++++++++++ .../amd/display/modules/power/power_helpers.c | 5 ++ .../amd/display/modules/power/power_helpers.h | 1 + 4 files changed, 57 insertions(+)
drivers/gpu/drm/amd/display/dc/dc_types.h +5 -0
@@ -1034,6 +1034,7 @@ enum replay_FW_Message_type { Replay_Msg_Not_Support =-1 , Replay_Set_Timing_Sync_Supported, Replay_Set_Residency_Frameupdate_Timer, + Replay_Set_Pseudo_VTotal, }; union replay_error_status {
@@ -1089,6 +1090,10 @@ struct replay_settings {uint16_t coasting_vtotal_table[PR_COASTING_TYPE_NUM ];/* Maximum link off frame count */ enum replay_link_off_frame_count_level link_off_frame_count_level; +/* Replay pseudo vtotal for abm + ips on full screen video which can improve ips residency */ +uint16_t abm_with_ips_on_full_screen_video_pseudo_vtotal; +/* Replay last pseudo vtotal set to DMUB */ +uint16_t last_pseudo_vtotal; };/* To split out "global" and "per-panel" config settings.
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +46 -0
76 lines not on this page · raw message
drivers/gpu/drm/amd/display/modules/power/power_helpers.c +5 -0
@@ -980,6 +980,11 @@ void set_replay_coasting_vtotal(struct dc_link *link, link->replay_settings.coasting_vtotal_table[type] = vtotal; } +void set_replay_ips_full_screen_video_src_vtotal (struct dc_link *link,uint16_t vtotal) +{ + link->replay_settings.abm_with_ips_on_full_screen_video_pseudo_vtotal = vtotal; +} +void calculate_replay_link_off_frame_count (struct dc_link *link,uint16_t vtotal,uint16_t htotal) {
drivers/gpu/drm/amd/display/modules/power/power_helpers.h +1 -0
@@ -57,6 +57,7 @@ void init_replay_config(struct dc_link *link, struct replay_config *pr_config);void set_replay_coasting_vtotal (struct dc_link *link,enum replay_coasting_vtotal_type type,uint16_t vtotal); +void set_replay_ips_full_screen_video_src_vtotal (struct dc_link *link,uint16_t vtotal);void calculate_replay_link_off_frame_count (struct dc_link *link,uint16_t vtotal,uint16_t htotal);
Signature · 1 line
2.34.1
PATCH 11/12 drm/amd/display: [FW Promotion] Release 0.0.201.0
In reply to [email protected]From: Anthony Koo <[email protected]>
- Add debug flag for Replay IPS visual confirm
- Remove unused debug flags that should not
be controlled inside Replay FSM
--- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +4 -9
@@ -403,17 +403,12 @@ union replay_debug_flags {/** * 0x400 (bit 10) -* @force_disable_ips1: Force disable IPS1 state +* @enable_ips_visual_confirm: Enable IPS visual confirm when entering IPS +* If we enter IPS2, the Visual confirm bar will change to yellow */ - uint32_t force_disable_ips1 : 1; + uint32_t enable_ips_visual_confirm : 1; -/** -* 0x800 (bit 11) -* @force_disable_ips2: Force disable IPS2 state -*/ - uint32_t force_disable_ips2 : 1; - - uint32_t reserved : 20; + uint32_t reserved : 21; } bitfields;uint32_t u32All;
Signature · 1 line
2.34.1
PATCH 12/12 drm/amd/display: Promote DAL to 3.2.269
In reply to [email protected]From: Aric Cyr <[email protected]>
- FW Release 0.0.201.0
- Fix resizing video window for dcn321
- Fix timing bandwidth calculation for HDMI
- Fix null-deref in dml2 assigned pipe search
- Add GART memory support for dmcub
- Add power_state and pme_pending flag
- Add usb4_bw_alloc_support flag
- Revert "Rework DC Z10 restore
--- 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
@@ -51,7 +51,7 @@ struct aux_payload;struct set_config_cmd_payload ;struct dmub_notification ; -#define DC_VER "3.2.268" +#define DC_VER "3.2.269"#define MAX_SURFACES 3#define MAX_PLANES 6
Signature · 1 line
2.34.1
[Public]
Hi all,
This week this patchset was tested on the following systems:
* Lenovo ThinkBook T13s Gen4 with AMD Ryzen 5 6600U
* MSI Gaming X Trio RX 6800
* Gigabyte Gaming OC RX 7900 XTX
These systems were tested on the following display/connection types:
* eDP, (1080p 60hz [5650U]) (1920x1200 60hz [6600U]) (2560x1600 120hz[6600U])
* VGA and DVI (1680x1050 60hz [DP to VGA/DVI, USB-C to VGA/DVI])
* DP/HDMI/USB-C (1440p 170hz, 4k 60hz, 4k 144hz, 4k 240hz [Includes USB-C to DP/HDMI adapters])
* Thunderbolt (LG Ultrafine 5k)
* MST (Startech MST14DP123DP [DP to 3x DP] and 2x 4k 60Hz displays)
* DSC (with Cable Matters 101075 [DP to 3x DP] with 3x 4k60 displays, and HP Hook G2 with 1 4k60 display)
* USB 4 (Kensington SD5700T and 1x 4k 60Hz display)
* PCON (Club3D CAC-1085 and 1x 4k 144Hz display [at 4k 120HZ, as that is the max the adapter supports])
The testing is a mix of automated and manual tests. Manual testing includes (but is not limited to):
* Changing display configurations and settings
* Benchmark testing
* Feature testing (Freesync, etc.)
Automated testing includes (but is not limited to):
* Script testing (scripts to automate some of the manual checks)
* IGT testing
The patchset consists of the amd-staging-drm-next branch (Head commit - 00263633aa58 drm/amd/display: Fix timing bandwidth calculation for HDMI) with new patches added on top of it.
Tested on Ubuntu 22.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: amd-gfx <[email protected]> On Behalf Of [email protected]
Sent: Thursday, January 18, 2024 9:34 AM
To: [email protected]
Cc: Chung, ChiaHsuan (Tom) <[email protected]>; Li, Sun peng (Leo) <[email protected]>; Siqueira, Rodrigo <[email protected]>; Li, Roman <[email protected]>; Zuo, Jerry <[email protected]>; Pillai, Aurabindo <[email protected]>; Wu, Hersen <[email protected]>; Lin, Wayne <[email protected]>; Wentland, Harry <[email protected]>; Gutierrez, Agustin <[email protected]>
Subject: [PATCH 00/12] DC Patches January 18, 2024
From: Roman Li <[email protected]>
This DC patchset brings improvements in multiple areas. In summary, we highlight:
* Add power_state/pme_pending flag/usb4_bw_alloc_support flags
* Add GART memory support
* Improvements for HDMI, IPS, DML2 and others
Allen Pan (1):
drm/amd/display: Add NULL-checks in dml2 assigned pipe search
Anthony Koo (1):
drm/amd/display: [FW Promotion] Release 0.0.201.0
Aric Cyr (2):
drm/amd/display: Promote DAL to 3.2.268
drm/amd/display: Promote DAL to 3.2.269
Charlene Liu (1):
drm/amd/display: Revert "Rework DC Z10 restore"
ChunTao Tso (1):
drm/amd/display: Replay + IPS + ABM in Full Screen VPB
Fudongwang (1):
drm/amd/display: Add GART memory support for dmcub
Leo (Hanghong) Ma (1):
drm/amd/display: Fix timing bandwidth calculation for HDMI
Muhammad Ahmed (1):
drm/amd/display: add power_state and pme_pending flag
Peichen Huang (1):
drm/amd/display: Add usb4_bw_alloc_support flag
Roman Li (1):
drm/amd/display: Add IPS checks before dcn register access
Wenjing Liu (1):
drm/amd/display: turn off windowed Mpo ODM feature for dcn321
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 29 +++-- drivers/gpu/drm/amd/display/dc/core/dc.c | 11 +- .../gpu/drm/amd/display/dc/core/dc_stream.c | 9 +- drivers/gpu/drm/amd/display/dc/dc.h | 4 +- drivers/gpu/drm/amd/display/dc/dc_hw_types.h | 1 + drivers/gpu/drm/amd/display/dc/dc_types.h | 5 + .../display/dc/dml2/dml2_dc_resource_mgmt.c | 19 ++-- drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 5 + .../amd/display/dc/hwss/dcn35/dcn35_hwseq.c | 2 + .../amd/display/dc/inc/hw/clk_mgr_internal.h | 1 + .../drm/amd/display/dc/link/link_detection.c | 18 +++ .../gpu/drm/amd/display/dc/link/link_dpms.c | 58 ++++++++++ .../dc/resource/dcn321/dcn321_resource.c | 1 + drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 19 +++- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 59 ++++++++-- .../gpu/drm/amd/display/dmub/src/dmub_srv.c | 106 ++++++++---------- .../amd/display/modules/power/power_helpers.c | 5 + .../amd/display/modules/power/power_helpers.h | 1 + 18 files changed, 244 insertions(+), 109 deletions(-)
--
2.34.1