DC Patches January 10, 2020
Subsystems (3)
This new DC version brings improvements in the following areas:
- FW promotion to 0.0.97
- DSC fixes for supported Docks
- Fixes eDP display issue
- Vendor LTTR workarounds
- Fixes Tiled display audio issue
Anthony Koo (1):
drm/amd/display: [FW Promotion] Release 0.0.97
Aric Cyr (1):
drm/amd/display: 3.2.166
Eric Bernstein (1):
drm/amd/display: ODM + MPO window on only one half of ODM
Martin Leung (1):
drm/amd/display: implement dc_mode_memclk
Michael Strauss (1):
drm/amd/display: Force det buf size to 192KB with 3+ streams and
upscaling
Mikita Lipski (1):
drm/amd/display: parse and check PSR SU caps
Nicholas Kazlauskas (2):
drm/amd/display: Set exit_optimized_pwr_state for DCN31 drm/amd/display: Reset DMCUB before HW init
Solomon Chiu (1):
drm/amd/display: Add src/ext ID info for dummy service
Wayne Lin (1):
drm/amd/display: Add debugfs entry for ILR
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 + .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 134 ++++++++++++++++++ .../drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 101 +++++++++++-- .../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c | 44 +++++- drivers/gpu/drm/amd/display/dc/core/dc.c | 92 ++++++++++++ .../gpu/drm/amd/display/dc/core/dc_resource.c | 81 ++++++++--- drivers/gpu/drm/amd/display/dc/dc.h | 5 +- drivers/gpu/drm/amd/display/dc/dc_dp_types.h | 9 ++ drivers/gpu/drm/amd/display/dc/dc_types.h | 1 + .../gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c | 14 +- .../gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h | 1 + .../drm/amd/display/dc/dcn20/dcn20_hwseq.c | 10 ++ .../drm/amd/display/dc/dcn20/dcn20_hwseq.h | 4 + .../gpu/drm/amd/display/dc/dcn30/dcn30_hubp.c | 1 + .../drm/amd/display/dc/dcn30/dcn30_hwseq.c | 11 ++ .../drm/amd/display/dc/dcn30/dcn30_hwseq.h | 5 +- .../gpu/drm/amd/display/dc/dcn30/dcn30_init.c | 1 + .../drm/amd/display/dc/dcn30/dcn30_resource.c | 11 ++ .../gpu/drm/amd/display/dc/dcn31/dcn31_init.c | 1 + .../drm/amd/display/dc/dcn31/dcn31_resource.c | 8 ++ .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 7 + drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h | 1 + .../gpu/drm/amd/display/dc/inc/hw_sequencer.h | 1 + .../dc/irq/dce110/irq_service_dce110.c | 10 +- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 +- 25 files changed, 514 insertions(+), 48 deletions(-)
Signature · 3 lines
2.32.0 Cc: Daniel Wheeler <[email protected]>
PATCH 1/10 drm/amd/display: Set exit_optimized_pwr_state for DCN31
From: Nicholas Kazlauskas <[email protected]>
[Why]
SMU now respects the PHY refclk disable request from driver.
This causes a hang during hotplug when PHY refclk was disabled because it's not being re-enabled and the transmitter control starts on dc_link_detect.
[How]
We normally would re-enable the clk with exit_optimized_pwr_state but this is only set on DCN21 and DCN301. Set it for dcn31 as well.
This fixes DMCUB timeouts in the PHY.
--- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_init.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_init.c +1 -0
@@ -101,6 +101,7 @@ static const struct hw_sequencer_funcs dcn31_funcs = { .z10_restore = dcn31_z10_restore, .z10_save_init = dcn31_z10_save_init, .set_disp_pattern_generator = dcn30_set_disp_pattern_generator, + .exit_optimized_pwr_state = dcn21_exit_optimized_pwr_state, .update_visual_confirm_color = dcn20_update_visual_confirm_color, };
Signature · 1 line
2.32.0
PATCH 2/10 drm/amd/display: Add debugfs entry for ILR
In reply to Pavle KotaracFrom: Wayne Lin <[email protected]>
[Why & How]
In order to know the intermediate link rates supported by the eDP panel and test to select the optimized link rate to save power, create a new debugfs entry "ilr_setting" for
setting ILR.
--- .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 134 ++++++++++++++++++ 1 file changed, 134 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +134 -0
@@ -2755,6 +2755,138 @@ static const struct { {"internal_display", &internal_display_fops} }; +/* +* Returns supported customized link rates by this eDP panel. +* Example usage: cat /sys/kernel/debug/dri/0/eDP-x/ilr_setting +*/ +static int edp_ilr_show (struct seq_file *m,void *unused) +{ +struct amdgpu_dm_connector *aconnector =to_amdgpu_dm_connector (m->private); +struct dc_link *link = aconnector->dc_link; +uint8_t supported_link_rates[16 ]; +uint32_t link_rate_in_khz; +uint32_t entry =0 ; +uint8_t dpcd_rev; + +memset (supported_link_rates,0 ,sizeof (supported_link_rates)); +dm_helpers_dp_read_dpcd (link->ctx, link,DP_SUPPORTED_LINK_RATES , + supported_link_rates,sizeof (supported_link_rates)); + + dpcd_rev = link->dpcd_caps.dpcd_rev.raw; + +if (dpcd_rev >=DP_DPCD_REV_13 && + (supported_link_rates[entry+1 ] !=0 || supported_link_rates[entry] !=0 )) { + +for (entry =0 ; entry <16 ; entry +=2 ) { + link_rate_in_khz = (supported_link_rates[entry+1 ] *0x100 + + supported_link_rates[entry]) *200 ; +seq_printf (m,"[%d] %d kHz\n" , entry/2 , link_rate_in_khz); + } + }else { +seq_printf (m,"ILR is not supported by this eDP panel.\n" ); + } + +return 0 ; +} + +/* +* Set supported customized link rate to eDP panel. +* +* echo <lane_count> <link_rate option> > ilr_setting +* +* for example, supported ILR : [0] 1620000 kHz [1] 2160000 kHz [2] 2430000 kHz ... +* echo 4 1 > /sys/kernel/debug/dri/0/eDP-x/ilr_setting +* to set 4 lanes and 2.16 GHz +*/ +static ssize_t edp_ilr_write (struct file *f,const char __user *buf, +size_t size,loff_t *pos) +{ +struct amdgpu_dm_connector *connector =file_inode (f)->i_private; +struct dc_link *link = connector->dc_link; +struct amdgpu_device *adev =drm_to_adev (connector->base.dev); +struct dc *dc = (struct dc *)link->dc; +struct dc_link_settings prefer_link_settings; +char *wr_buf =NULL ; +const uint32_t wr_buf_size =40 ; +/* 0: lane_count; 1: link_rate */ +int max_param_num =2 ; +uint8_t param_nums =0 ; +long param[2 ]; +bool valid_input = true; + +if (size ==0 ) +return -EINVAL ; + + wr_buf =kcalloc (wr_buf_size,sizeof (char ),GFP_KERNEL ); +if (!wr_buf) +return -ENOMEM ; + +if (parse_write_buffer_into_params (wr_buf, wr_buf_size, + (long *)param, buf, + max_param_num, + ¶m_nums)) { +kfree (wr_buf); +return -EINVAL ; + } + +if (param_nums <=0 ) { +kfree (wr_buf); +return -EINVAL ; + } + +switch (param[0 ]) { +case LANE_COUNT_ONE : +case LANE_COUNT_TWO : +case LANE_COUNT_FOUR : +break ; +default : + valid_input = false; +break ; + } + +if (param[1 ] >= link->dpcd_caps.edp_supported_link_rates_count) + valid_input = false; + +if (!valid_input) { +kfree (wr_buf); +DRM_DEBUG_DRIVER ("Invalid Input value. No HW will be programmed\n" ); + prefer_link_settings.use_link_rate_set = false; +dc_link_set_preferred_training_settings (dc,NULL ,NULL , link, true); +return size; + } + +/* save user force lane_count, link_rate to preferred settings +* spread spectrum will not be changed +*/ + prefer_link_settings.link_spread = link->cur_link_settings.link_spread; + prefer_link_settings.lane_count = param[0 ]; + prefer_link_settings.use_link_rate_set = true; + prefer_link_settings.link_rate_set = param[1 ]; + prefer_link_settings.link_rate = link->dpcd_caps.edp_supported_link_rates[param[1 ]]; + +mutex_lock (&adev->dm.dc_lock); +dc_link_set_preferred_training_settings (dc, &prefer_link_settings, +NULL , link, false); +mutex_unlock (&adev->dm.dc_lock); + +kfree (wr_buf); +return size; +} + +static int edp_ilr_open (struct inode *inode,struct file *file) +{ +return single_open (file, edp_ilr_show, inode->i_private); +} + +static const struct file_operations edp_ilr_debugfs_fops = { + .owner =THIS_MODULE , + .open = edp_ilr_open, + .read = seq_read, + .llseek = seq_lseek, + .release = single_release, + .write = edp_ilr_write +}; +void connector_debugfs_init (struct amdgpu_dm_connector *connector) {int i;
@@ -2775,6 +2907,8 @@ void connector_debugfs_init(struct amdgpu_dm_connector *connector) ¤t_backlight_fops);debugfs_create_file ("amdgpu_target_backlight_pwm" ,0444 , dir, connector, &target_backlight_fops); +debugfs_create_file ("ilr_setting" ,0644 , dir, connector, + &edp_ilr_debugfs_fops); }for (i =0 ; i <ARRAY_SIZE (connector_debugfs_entries); i++) {
Signature · 1 line
2.32.0
PATCH 3/10 drm/amd/display: Add src/ext ID info for dummy service
In reply to Pavle KotaracFrom: Solomon Chiu <[email protected]>
[Why]
Current error log of dummy irq service doesn't have src/ext ID info in the log.
[How]
Add src/ext ID in ack/set of dummy irq service.
--- .../drm/amd/display/dc/irq/dce110/irq_service_dce110.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/irq/dce110/irq_service_dce110.c +6 -4
@@ -185,16 +185,18 @@ bool dal_irq_service_dummy_set(struct irq_service *irq_service, const struct irq_source_info *info, bool enable) { - DC_LOG_ERROR("%s: called for non-implemented irq source\n", - __func__); + DC_LOG_ERROR("%s: called for non-implemented irq source, src_id=%u, ext_id=%u\n", + __func__, info->src_id, info->ext_id); +return false; }bool dal_irq_service_dummy_ack (struct irq_service *irq_service,const struct irq_source_info *info) { -DC_LOG_ERROR ("%s: called for non-implemented irq source\n" , - __func__); +DC_LOG_ERROR ("%s: called for non-implemented irq source, src_id=%u, ext_id=%u\n" , + __func__, info->src_id, info->ext_id); +return false; }
Signature · 1 line
2.32.0
PATCH 4/10 drm/amd/display: parse and check PSR SU caps
In reply to Pavle KotaracFrom: Mikita Lipski <[email protected]>
[why]
Adding a function to read PSR capabilities
and ALPM capabilities.
Also adding a helper function to validate if
the sink and the driver support PSR SU.
[how]
- isolated all PSR and ALPM reading calls to a separate funciton
- set all required PSR caps
- added a helper function to check if PSR SU is supported by sink and the driver
--- .../drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 101 +++++++++++++++--- drivers/gpu/drm/amd/display/dc/dc_dp_types.h | 9 ++ drivers/gpu/drm/amd/display/dc/dc_types.h | 1 + 3 files changed, 98 insertions(+), 13 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c +88 -13
@@ -26,6 +26,73 @@#include "amdgpu_dm_psr.h" #include "dc.h" #include "dm_helpers.h" +#include "amdgpu_dm.h" + +static bool link_get_psr_caps (struct dc_link *link) +{ +uint8_t psr_dpcd_data[EDP_PSR_RECEIVER_CAP_SIZE ]; +uint8_t edp_rev_dpcd_data; + + + +if (!dm_helpers_dp_read_dpcd (NULL , link,DP_PSR_SUPPORT , + psr_dpcd_data,sizeof (psr_dpcd_data))) +return false; + +if (!dm_helpers_dp_read_dpcd (NULL , link,DP_EDP_DPCD_REV , + &edp_rev_dpcd_data,sizeof (edp_rev_dpcd_data))) +return false; + + link->dpcd_caps.psr_caps.psr_version = psr_dpcd_data[0 ]; + link->dpcd_caps.psr_caps.edp_revision = edp_rev_dpcd_data; + +#ifdef CONFIG_DRM_AMD_DC_DCN +if (link->dpcd_caps.psr_caps.psr_version >0x1 ) { +uint8_t alpm_dpcd_data; +uint8_t su_granularity_dpcd_data; + +if (!dm_helpers_dp_read_dpcd (NULL , link,DP_RECEIVER_ALPM_CAP , + &alpm_dpcd_data,sizeof (alpm_dpcd_data))) +return false; + +if (!dm_helpers_dp_read_dpcd (NULL , link,DP_PSR2_SU_Y_GRANULARITY , + &su_granularity_dpcd_data,sizeof (su_granularity_dpcd_data))) +return false; + + link->dpcd_caps.psr_caps.y_coordinate_required = psr_dpcd_data[1 ] &DP_PSR2_SU_Y_COORDINATE_REQUIRED ; + link->dpcd_caps.psr_caps.su_granularity_required = psr_dpcd_data[1 ] &DP_PSR2_SU_GRANULARITY_REQUIRED ; + + link->dpcd_caps.psr_caps.alpm_cap = alpm_dpcd_data &DP_ALPM_CAP ; + link->dpcd_caps.psr_caps.standby_support = alpm_dpcd_data & (1 <<1 ); + + link->dpcd_caps.psr_caps.su_y_granularity = su_granularity_dpcd_data; + } +#endif +return true; +} + +#ifdef CONFIG_DRM_AMD_DC_DCN +static bool link_supports_psrsu (struct dc_link *link) +{ +struct dc *dc = link->ctx->dc; + +if (!dc->caps.dmcub_support) +return false; + +if (dc->ctx->dce_version <DCN_VERSION_3_1 ) +return false; + +if (!link->dpcd_caps.psr_caps.alpm_cap || + !link->dpcd_caps.psr_caps.y_coordinate_required) +return false; + +if (link->dpcd_caps.psr_caps.su_granularity_required && + !link->dpcd_caps.psr_caps.su_y_granularity) +return false; + +return true; +} +#endif /* * amdgpu_dm_set_psr_caps() - set link psr capabilities
@@ -34,26 +101,34 @@*/ void amdgpu_dm_set_psr_caps (struct dc_link *link) { -uint8_t dpcd_data[EDP_PSR_RECEIVER_CAP_SIZE ]; -if (!(link->connector_signal &SIGNAL_TYPE_EDP ))return ; +if (link->type == dc_connection_none)return ; -if (dm_helpers_dp_read_dpcd (NULL , link,DP_PSR_SUPPORT , - dpcd_data,sizeof (dpcd_data))) { - link->dpcd_caps.psr_caps.psr_version = dpcd_data[0 ]; - -if (dpcd_data[0 ] ==0 ) { - link->psr_settings.psr_version =DC_PSR_VERSION_UNSUPPORTED ; - link->psr_settings.psr_feature_enabled = false; - }else { + +if (!link_get_psr_caps (link)) { +DRM_ERROR ("amdgpu: Failed to read PSR Caps!\n" ); +return ; + } + +if (link->dpcd_caps.psr_caps.psr_version ==0 ) { + link->psr_settings.psr_version =DC_PSR_VERSION_UNSUPPORTED ; + link->psr_settings.psr_feature_enabled = false; + + }else { +#ifdef CONFIG_DRM_AMD_DC_DCN +if (link_supports_psrsu (link)) + link->psr_settings.psr_version =DC_PSR_VERSION_SU_1 ; + else +#endif link->psr_settings.psr_version =DC_PSR_VERSION_1 ; - link->psr_settings.psr_feature_enabled = true; - } -DRM_INFO ("PSR support:%d\n" , link->psr_settings.psr_feature_enabled); + link->psr_settings.psr_feature_enabled = true; } + +DRM_INFO ("PSR support:%d\n" , link->psr_settings.psr_feature_enabled); + }/*
drivers/gpu/drm/amd/display/dc/dc_dp_types.h +9 -0
@@ -883,6 +883,15 @@ struct psr_caps {unsigned char psr_version;unsigned int psr_rfb_setup_time;bool psr_exit_link_training_required; +unsigned char edp_revision; +unsigned char support_ver; +bool su_granularity_required; +bool y_coordinate_required; +uint8_t su_y_granularity; +bool alpm_cap; +bool standby_support; +uint8_t rate_control_caps; +unsigned int psr_power_opt_flag; };/* Length of router topology ID read from DPCD in bytes. */
drivers/gpu/drm/amd/display/dc/dc_types.h +1 -0
@@ -951,6 +951,7 @@ enum dc_gpu_mem_alloc_type {enum dc_psr_version {DC_PSR_VERSION_1 =0 , +DC_PSR_VERSION_SU_1 =1 ,DC_PSR_VERSION_UNSUPPORTED =0xFFFFFFFF , };
Signature · 1 line
2.32.0
PATCH 5/10 drm/amd/display: Force det buf size to 192KB with 3+ streams and upscaling
In reply to Pavle KotaracFrom: Michael Strauss <[email protected]>
[WHY]
This workaround resolves underflow caused by incorrect DST_Y_PREFETCH. Overriding to 192KB DET buf size until the DST_Y_PREFETCH calc is fixed.
--- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c +8 -0
@@ -1770,6 +1770,7 @@ static int dcn31_populate_dml_pipes_from_context(int i, pipe_cnt;struct resource_context *res_ctx = &context->res_ctx;struct pipe_ctx *pipe; +bool upscaled = false;dcn20_populate_dml_pipes_from_context (dc, context, pipes, fast_validate);
@@ -1781,6 +1782,11 @@ static int dcn31_populate_dml_pipes_from_context( pipe = &res_ctx->pipe_ctx[i]; timing = &pipe->stream->timing; +if (pipe->plane_state && + (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || + pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) + upscaled = true; +/* * Immediate flip can be set dynamically after enabling the plane. * We need to require support for immediate flip or underflow can be
@@ -1828,6 +1834,8 @@ static int dcn31_populate_dml_pipes_from_context( }else if (context->stream_count >= dc->debug.crb_alloc_policy_min_disp_count && dc->debug.crb_alloc_policy >DET_SIZE_DEFAULT ) { context->bw_ctx.dml.ip.det_buffer_size_kbytes = dc->debug.crb_alloc_policy *64 ; + }else if (context->stream_count >=3 && upscaled) { + context->bw_ctx.dml.ip.det_buffer_size_kbytes =192 ; }return pipe_cnt;
Signature · 1 line
2.32.0
PATCH 6/10 drm/amd/display: [FW Promotion] Release 0.0.97
In reply to Pavle KotaracFrom: Anthony Koo <[email protected]>
--- drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +2 -2
@@ -47,10 +47,10 @@/* Firmware versioning. */ #ifdef DMUB_EXPOSE_VERSION -#define DMUB_FW_VERSION_GIT_HASH 0xbb1f0cda +#define DMUB_FW_VERSION_GIT_HASH 0xc99a4517#define DMUB_FW_VERSION_MAJOR 0#define DMUB_FW_VERSION_MINOR 0 -#define DMUB_FW_VERSION_REVISION 96 +#define DMUB_FW_VERSION_REVISION 97#define DMUB_FW_VERSION_TEST 0#define DMUB_FW_VERSION_VBIOS 0#define DMUB_FW_VERSION_HOTFIX 0
Signature · 1 line
2.32.0
PATCH 7/10 drm/amd/display: Reset DMCUB before HW init
In reply to Pavle KotaracFrom: Nicholas Kazlauskas <[email protected]>
[Why]
If the firmware wasn't reset by PSP or HW and is currently running then the firmware will hang or perform underfined behavior when we modify its firmware state underneath it.
[How]
Reset DMCUB before setting up cache windows and performing HW init.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5 -0
@@ -1050,6 +1050,11 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)return 0 ; } +/* Reset DMCUB if it was previously running - before we overwrite its memory. */ + status =dmub_srv_hw_reset (dmub_srv); +if (status !=DMUB_STATUS_OK ) +DRM_WARN ("Error resetting DMUB HW: %d\n" , status); + hdr = (const struct dmcub_firmware_header_v1_0 *)dmub_fw->data; fw_inst_const = dmub_fw->data +
Signature · 1 line
2.32.0
PATCH 8/10 drm/amd/display: ODM + MPO window on only one half of ODM
In reply to Pavle KotaracFrom: Eric Bernstein <[email protected]>
[Why]
For ODM + MPO window on one half of ODM, only 3 pipes should be allocated and scaling parameters adjusted to handle this case
[How]
Fix pipe allocation when MPO viewport is only on one side of ODM split, and modify scaling paramters.
Added diags test cases for ODM + windows MPO, where MPO window is on right half, left half, and both halves or ODM.
--- .../gpu/drm/amd/display/dc/core/dc_resource.c | 81 ++++++++++++++----- .../drm/amd/display/dc/dcn30/dcn30_resource.c | 11 +++ 2 files changed, 71 insertions(+), 21 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +60 -21
@@ -734,6 +734,10 @@ static void calculate_split_count_and_index(struct pipe_ctx *pipe_ctx, int *spli (*split_idx)++; split_pipe = split_pipe->top_pipe; } + +/* MPO window on right side of ODM split */ +if (split_pipe && split_pipe->prev_odm_pipe && !pipe_ctx->prev_odm_pipe) + (*split_idx)++; }else {/*Get odm split index*/ struct pipe_ctx *split_pipe = pipe_ctx->prev_odm_pipe;
@@ -780,7 +784,11 @@ static void calculate_recout(struct pipe_ctx *pipe_ctx)/* * Only the leftmost ODM pipe should be offset by a nonzero distance */ -if (!pipe_ctx->prev_odm_pipe || split_idx == split_count) { +if (pipe_ctx->top_pipe && pipe_ctx->top_pipe->prev_odm_pipe && !pipe_ctx->prev_odm_pipe) { +/* MPO window on right side of ODM split */ + data->recout.x = stream->dst.x + (surf_clip.x - stream->dst.width/2 ) * + stream->dst.width / stream->src.width; + }else if (!pipe_ctx->prev_odm_pipe || split_idx == split_count) { data->recout.x = stream->dst.x;if (stream->src.x < surf_clip.x) data->recout.x += (surf_clip.x - stream->src.x) * stream->dst.width
@@ -978,6 +986,8 @@ static void calculate_inits_and_viewports(struct pipe_ctx *pipe_ctx) * stream->dst.height / stream->src.height;if (pipe_ctx->prev_odm_pipe && split_idx) ro_lb = data->h_active * split_idx - recout_full_x; +else if (pipe_ctx->top_pipe && pipe_ctx->top_pipe->prev_odm_pipe) + ro_lb = data->h_active * split_idx - recout_full_x + data->recout.x;else ro_lb = data->recout.x - recout_full_x; ro_tb = data->recout.y - recout_full_y;
@@ -1076,6 +1086,9 @@ bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx) timing->v_border_top + timing->v_border_bottom;if (pipe_ctx->next_odm_pipe || pipe_ctx->prev_odm_pipe) pipe_ctx->plane_res.scl_data.h_active /=get_num_odm_splits (pipe_ctx) +1 ; +/* ODM + windows MPO, where window is on either right or left ODM half */ +else if (pipe_ctx->top_pipe && (pipe_ctx->top_pipe->next_odm_pipe || pipe_ctx->top_pipe->prev_odm_pipe)) + pipe_ctx->plane_res.scl_data.h_active /=get_num_odm_splits (pipe_ctx->top_pipe) +1 ;/* depends on h_active */ calculate_recout (pipe_ctx);
@@ -1084,11 +1097,6 @@ bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx)/* depends on scaling ratios and recout, does not calculate offset yet */ calculate_viewport_size (pipe_ctx); -/* Stopgap for validation of ODM + MPO on one side of screen case */ -if (pipe_ctx->plane_res.scl_data.viewport.height <1 || - pipe_ctx->plane_res.scl_data.viewport.width <1 ) -return false; -/* * LB calculations depend on vp size, h/v_active and scaling ratios * Setting line buffer pixel depth to 24bpp yields banding
@@ -1437,23 +1445,54 @@ bool dc_add_plane_to_context(if (head_pipe != free_pipe) { tail_pipe =resource_get_tail_pipe (&context->res_ctx, head_pipe);ASSERT (tail_pipe); - free_pipe->stream_res.tg = tail_pipe->stream_res.tg; - free_pipe->stream_res.abm = tail_pipe->stream_res.abm; - free_pipe->stream_res.opp = tail_pipe->stream_res.opp; - free_pipe->stream_res.stream_enc = tail_pipe->stream_res.stream_enc; - free_pipe->stream_res.audio = tail_pipe->stream_res.audio; - free_pipe->clock_source = tail_pipe->clock_source; - free_pipe->top_pipe = tail_pipe; - tail_pipe->bottom_pipe = free_pipe; -if (!free_pipe->next_odm_pipe && tail_pipe->next_odm_pipe && tail_pipe->next_odm_pipe->bottom_pipe) { - free_pipe->next_odm_pipe = tail_pipe->next_odm_pipe->bottom_pipe; - tail_pipe->next_odm_pipe->bottom_pipe->prev_odm_pipe = free_pipe; - } -if (!free_pipe->prev_odm_pipe && tail_pipe->prev_odm_pipe && tail_pipe->prev_odm_pipe->bottom_pipe) { - free_pipe->prev_odm_pipe = tail_pipe->prev_odm_pipe->bottom_pipe; - tail_pipe->prev_odm_pipe->bottom_pipe->next_odm_pipe = free_pipe; + +/* ODM + window MPO, where MPO window is on right half only */ +if (free_pipe->plane_state && + (free_pipe->plane_state->clip_rect.x >= free_pipe->stream->src.width/2 ) && + tail_pipe->next_odm_pipe) { + free_pipe->stream_res.tg = tail_pipe->next_odm_pipe->stream_res.tg; + free_pipe->stream_res.abm = tail_pipe->next_odm_pipe->stream_res.abm; + free_pipe->stream_res.opp = tail_pipe->next_odm_pipe->stream_res.opp; + free_pipe->stream_res.stream_enc = tail_pipe->next_odm_pipe->stream_res.stream_enc; + free_pipe->stream_res.audio = tail_pipe->next_odm_pipe->stream_res.audio; + free_pipe->clock_source = tail_pipe->next_odm_pipe->clock_source; + + free_pipe->top_pipe = tail_pipe->next_odm_pipe; + tail_pipe->next_odm_pipe->bottom_pipe = free_pipe; + }else { + free_pipe->stream_res.tg = tail_pipe->stream_res.tg; + free_pipe->stream_res.abm = tail_pipe->stream_res.abm; + free_pipe->stream_res.opp = tail_pipe->stream_res.opp; + free_pipe->stream_res.stream_enc = tail_pipe->stream_res.stream_enc; + free_pipe->stream_res.audio = tail_pipe->stream_res.audio; + free_pipe->clock_source = tail_pipe->clock_source; + + free_pipe->top_pipe = tail_pipe; + tail_pipe->bottom_pipe = free_pipe; + +if (!free_pipe->next_odm_pipe && tail_pipe->next_odm_pipe && tail_pipe->next_odm_pipe->bottom_pipe) { + free_pipe->next_odm_pipe = tail_pipe->next_odm_pipe->bottom_pipe; + tail_pipe->next_odm_pipe->bottom_pipe->prev_odm_pipe = free_pipe; + } +if (!free_pipe->prev_odm_pipe && tail_pipe->prev_odm_pipe && tail_pipe->prev_odm_pipe->bottom_pipe) { + free_pipe->prev_odm_pipe = tail_pipe->prev_odm_pipe->bottom_pipe; + tail_pipe->prev_odm_pipe->bottom_pipe->next_odm_pipe = free_pipe; + } } } + +/* ODM + window MPO, where MPO window is on left half only */ +if (free_pipe->plane_state && + (free_pipe->plane_state->clip_rect.x + free_pipe->plane_state->clip_rect.width <= + free_pipe->stream->src.x + free_pipe->stream->src.width/2 )) { +break ; + } +/* ODM + window MPO, where MPO window is on right half only */ +if (free_pipe->plane_state && + (free_pipe->plane_state->clip_rect.x >= free_pipe->stream->src.width/2 )) { +break ; + } + head_pipe = head_pipe->next_odm_pipe; }/* assign new surfaces*/
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c +11 -0
@@ -1763,6 +1763,17 @@ static bool dcn30_split_stream_for_mpc_or_odm(int pipe_idx = sec_pipe->pipe_idx;const struct resource_pool *pool = dc->res_pool; +if (pri_pipe->plane_state) { +/* ODM + window MPO, where MPO window is on left half only */ +if (pri_pipe->plane_state->clip_rect.x + pri_pipe->plane_state->clip_rect.width <= + pri_pipe->stream->src.x + pri_pipe->stream->src.width/2 ) +return true; + +/* ODM + window MPO, where MPO window is on right half only */ +if (pri_pipe->plane_state->clip_rect.x >= pri_pipe->stream->src.width/2 ) +return true; + } + *sec_pipe = *pri_pipe; sec_pipe->pipe_idx = pipe_idx;
Signature · 1 line
2.32.0
PATCH 9/10 drm/amd/display: implement dc_mode_memclk
In reply to Pavle KotaracFrom: Martin Leung <[email protected]>
why:
Need interface to lower clocks when in dc (power save) mode. Must be able to work with p_state unsupported cases Can cause flicker when OS notifies us of dc state change
how:
added dal3 interface for KMD
added pathway to query smu for this softmax
added blank before clock change to override underflow added logic to change clk based on pstatesupport and softmax added logic in prepare/optimize_bw to conform while changing clocks
--- .../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c | 44 ++++++++- drivers/gpu/drm/amd/display/dc/core/dc.c | 92 +++++++++++++++++++ drivers/gpu/drm/amd/display/dc/dc.h | 3 + .../gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c | 14 ++- .../gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h | 1 + .../drm/amd/display/dc/dcn20/dcn20_hwseq.c | 10 ++ .../drm/amd/display/dc/dcn20/dcn20_hwseq.h | 4 + .../gpu/drm/amd/display/dc/dcn30/dcn30_hubp.c | 1 + .../drm/amd/display/dc/dcn30/dcn30_hwseq.c | 11 +++ .../drm/amd/display/dc/dcn30/dcn30_hwseq.h | 5 +- .../gpu/drm/amd/display/dc/dcn30/dcn30_init.c | 1 + .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 7 ++ drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h | 1 + .../gpu/drm/amd/display/dc/inc/hw_sequencer.h | 1 + 14 files changed, 188 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c +41 -3
@@ -252,6 +252,7 @@ static void dcn3_update_clocks(struct clk_mgr *clk_mgr_base,bool update_dispclk = false;bool enter_display_off = false;bool dpp_clock_lowered = false; +bool update_pstate_unsupported_clk = false;struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu;bool force_reset = false;bool update_uclk = false;
@@ -299,13 +300,28 @@ static void dcn3_update_clocks(struct clk_mgr *clk_mgr_base, clk_mgr_base->clks.prev_p_state_change_support = clk_mgr_base->clks.p_state_change_support; total_plane_count =clk_mgr_helper_get_active_plane_cnt (dc, context); p_state_change_support = new_clocks->p_state_change_support || (total_plane_count ==0 ); -if (should_update_pstate_support (safe_to_lower, p_state_change_support, clk_mgr_base->clks.p_state_change_support)) { + +// invalidate the current P-State forced min in certain dc_mode_softmax situations +if (dc->clk_mgr->dc_mode_softmax_enabled && safe_to_lower && !p_state_change_support) { +if ((new_clocks->dramclk_khz <= dc->clk_mgr->bw_params->dc_mode_softmax_memclk *1000 ) != + (clk_mgr_base->clks.dramclk_khz <= dc->clk_mgr->bw_params->dc_mode_softmax_memclk *1000 )) + update_pstate_unsupported_clk = true; + } + +if (should_update_pstate_support (safe_to_lower, p_state_change_support, clk_mgr_base->clks.p_state_change_support) || + update_pstate_unsupported_clk) { clk_mgr_base->clks.p_state_change_support = p_state_change_support;/* to disable P-State switching, set UCLK min = max */ -if (!clk_mgr_base->clks.p_state_change_support) -dcn30_smu_set_hard_min_by_freq (clk_mgr,PPCLK_UCLK , +if (!clk_mgr_base->clks.p_state_change_support) { +if (dc->clk_mgr->dc_mode_softmax_enabled && + new_clocks->dramclk_khz <= dc->clk_mgr->bw_params->dc_mode_softmax_memclk *1000 ) +dcn30_smu_set_hard_min_by_freq (clk_mgr,PPCLK_UCLK , + dc->clk_mgr->bw_params->dc_mode_softmax_memclk); +else +dcn30_smu_set_hard_min_by_freq (clk_mgr,PPCLK_UCLK , clk_mgr_base->bw_params->clk_table.entries[clk_mgr_base->bw_params->clk_table.num_entries -1 ].memclk_mhz); + } }/* Always update saved value, even if new value not set due to P-State switching unsupported */
@@ -421,6 +437,24 @@ static void dcn3_set_hard_max_memclk(struct clk_mgr *clk_mgr_base) clk_mgr_base->bw_params->clk_table.entries[clk_mgr_base->bw_params->clk_table.num_entries - 1].memclk_mhz); } +static void dcn3_set_max_memclk (struct clk_mgr *clk_mgr_base,unsigned int memclk_mhz) +{ +struct clk_mgr_internal *clk_mgr =TO_CLK_MGR_INTERNAL (clk_mgr_base); + +if (!clk_mgr->smu_present) +return ; + +dcn30_smu_set_hard_max_by_freq (clk_mgr,PPCLK_UCLK , memclk_mhz); +} +static void dcn3_set_min_memclk (struct clk_mgr *clk_mgr_base,unsigned int memclk_mhz) +{ +struct clk_mgr_internal *clk_mgr =TO_CLK_MGR_INTERNAL (clk_mgr_base); + +if (!clk_mgr->smu_present) +return ; +dcn30_smu_set_hard_min_by_freq (clk_mgr,PPCLK_UCLK , memclk_mhz); +} +/* Get current memclk states, update bounding box */ static void dcn3_get_memclk_states_from_smu (struct clk_mgr *clk_mgr_base) {
@@ -436,6 +470,8 @@ static void dcn3_get_memclk_states_from_smu(struct clk_mgr *clk_mgr_base) &num_levels); clk_mgr_base->bw_params->clk_table.num_entries = num_levels ? num_levels :1 ; + clk_mgr_base->bw_params->dc_mode_softmax_memclk =dcn30_smu_get_dc_mode_max_dpm_freq (clk_mgr,PPCLK_UCLK ); +/* Refresh bounding box */ clk_mgr_base->ctx->dc->res_pool->funcs->update_bw_bounding_box ( clk_mgr->base.ctx->dc, clk_mgr_base->bw_params);
@@ -505,6 +541,8 @@ static struct clk_mgr_funcs dcn3_funcs = { .notify_wm_ranges = dcn3_notify_wm_ranges, .set_hard_min_memclk = dcn3_set_hard_min_memclk, .set_hard_max_memclk = dcn3_set_hard_max_memclk, + .set_max_memclk = dcn3_set_max_memclk, + .set_min_memclk = dcn3_set_min_memclk, .get_memclk_states_from_smu = dcn3_get_memclk_states_from_smu, .are_clock_states_equal = dcn3_are_clock_states_equal, .enable_pme_wa = dcn3_enable_pme_wa,
drivers/gpu/drm/amd/display/dc/core/dc.c +92 -0
98 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dc.h +3 -0
@@ -1432,6 +1432,9 @@ void dc_unlock_memory_clock_frequency(struct dc *dc);*/ void dc_lock_memory_clock_frequency (struct dc *dc); +/* set soft max for memclk, to be used for AC/DC switching clock limitations */ +void dc_enable_dcmode_clk_limit (struct dc *dc,bool enable); +/* cleanup on driver unload */ void dc_hardware_release (struct dc *dc);
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c +11 -3
@@ -929,6 +929,16 @@ bool hubp2_is_flip_pending(struct hubp *hubp) }void hubp2_set_blank (struct hubp *hubp,bool blank) +{ +hubp2_set_blank_regs (hubp, blank); + +if (blank) { + hubp->mpcc_id =0xf ; + hubp->opp_id =OPP_ID_INVALID ; + } +} + +void hubp2_set_blank_regs (struct hubp *hubp,bool blank) {struct dcn20_hubp *hubp2 =TO_DCN20_HUBP (hubp);uint32_t blank_en = blank ?1 :0 ;
@@ -951,9 +961,6 @@ void hubp2_set_blank(struct hubp *hubp, bool blank)HUBP_NO_OUTSTANDING_REQ ,1 , 1, 200); } - - hubp->mpcc_id =0xf ; - hubp->opp_id =OPP_ID_INVALID ; } }
@@ -1603,6 +1610,7 @@ static struct hubp_funcs dcn20_hubp_funcs = { .hubp_setup_interdependent = hubp2_setup_interdependent, .hubp_set_vm_system_aperture_settings = hubp2_set_vm_system_aperture_settings, .set_blank = hubp2_set_blank, + .set_blank_regs = hubp2_set_blank_regs, .dcc_control = hubp2_dcc_control, .mem_program_viewport = min_set_viewport, .set_cursor_attributes = hubp2_cursor_set_attributes,
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h +1 -0
@@ -330,6 +330,7 @@ void hubp2_program_surface_config(bool hubp2_is_flip_pending (struct hubp *hubp);void hubp2_set_blank (struct hubp *hubp,bool blank); +void hubp2_set_blank_regs (struct hubp *hubp,bool blank); void hubp2_cursor_set_position( struct hubp *hubp,
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +10 -0
@@ -615,6 +615,11 @@ void dcn20_disable_plane(struct dc *dc, struct pipe_ctx *pipe_ctx) pipe_ctx->pipe_idx); } +void dcn20_disable_pixel_data (struct dc *dc,struct pipe_ctx *pipe_ctx,bool blank) +{ +dcn20_blank_pixel_data (dc, pipe_ctx, blank); +} +static int calc_mpc_flow_ctrl_cnt (const struct dc_stream_state *stream,int opp_cnt) {
@@ -1842,6 +1847,11 @@ void dcn20_optimize_bandwidth( dc->res_pool->ref_clocks.dchub_ref_clock_inKhz /1000 , true); +if (dc->clk_mgr->dc_mode_softmax_enabled) +if (dc->clk_mgr->clks.dramclk_khz > dc->clk_mgr->bw_params->dc_mode_softmax_memclk *1000 && + context->bw_ctx.bw.dcn.clk.dramclk_khz <= dc->clk_mgr->bw_params->dc_mode_softmax_memclk *1000 ) + dc->clk_mgr->funcs->set_max_memclk (dc->clk_mgr, dc->clk_mgr->bw_params->dc_mode_softmax_memclk); + dc->clk_mgr->funcs->update_clocks( dc->clk_mgr, context,
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.h +4 -0
@@ -53,6 +53,10 @@ void dcn20_enable_stream(struct pipe_ctx *pipe_ctx);void dcn20_unblank_stream (struct pipe_ctx *pipe_ctx,struct dc_link_settings *link_settings);void dcn20_disable_plane (struct dc *dc,struct pipe_ctx *pipe_ctx); +void dcn20_disable_pixel_data ( +struct dc *dc, +struct pipe_ctx *pipe_ctx, +bool blank); void dcn20_blank_pixel_data( struct dc *dc, struct pipe_ctx *pipe_ctx,
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hubp.c +1 -0
@@ -490,6 +490,7 @@ static struct hubp_funcs dcn30_hubp_funcs = { .hubp_setup_interdependent = hubp2_setup_interdependent, .hubp_set_vm_system_aperture_settings = hubp3_set_vm_system_aperture_settings, .set_blank = hubp2_set_blank, + .set_blank_regs = hubp2_set_blank_regs, .dcc_control = hubp3_dcc_control, .mem_program_viewport = min_set_viewport, .set_cursor_attributes = hubp2_cursor_set_attributes,
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c +11 -0
@@ -344,6 +344,17 @@ void dcn30_enable_writeback( dwb->funcs->enable (dwb, &wb_info->dwb_params); } +void dcn30_prepare_bandwidth (struct dc *dc, +struct dc_state *context) +{ +if (dc->clk_mgr->dc_mode_softmax_enabled) +if (dc->clk_mgr->clks.dramclk_khz <= dc->clk_mgr->bw_params->dc_mode_softmax_memclk *1000 && + context->bw_ctx.bw.dcn.clk.dramclk_khz > dc->clk_mgr->bw_params->dc_mode_softmax_memclk *1000 ) + dc->clk_mgr->funcs->set_max_memclk (dc->clk_mgr, dc->clk_mgr->bw_params->clk_table.entries[dc->clk_mgr->bw_params->clk_table.num_entries -1 ].memclk_mhz); + +dcn20_prepare_bandwidth (dc, context); +} +void dcn30_disable_writeback (struct dc *dc,unsigned int dwb_pipe_inst)
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.h +4 -1
@@ -27,7 +27,7 @@#define __DC_HWSS_DCN30_H__#include "hw_sequencer_private.h" - +#include "dcn20/dcn20_hwseq.h" struct dc ;void dcn30_init_hw (struct dc *dc);
@@ -47,6 +47,9 @@ void dcn30_disable_writeback(struct dc *dc, unsigned int dwb_pipe_inst); +void dcn30_prepare_bandwidth (struct dc *dc, +struct dc_state *context); + bool dcn30_mmhubbub_warmup( struct dc *dc, unsigned int num_dwb,
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_init.c +1 -0
@@ -53,6 +53,7 @@ static const struct hw_sequencer_funcs dcn30_funcs = { .enable_audio_stream = dce110_enable_audio_stream, .disable_audio_stream = dce110_disable_audio_stream, .disable_plane = dcn20_disable_plane, + .disable_pixel_data = dcn20_disable_pixel_data, .pipe_control_lock = dcn20_pipe_control_lock, .interdependent_update_lock = dcn10_lock_all_pipes, .cursor_lock = dcn10_cursor_lock,
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h +7 -0
@@ -211,6 +211,8 @@ struct dummy_pstate_entry {struct clk_bw_params {unsigned int vram_type;unsigned int num_channels; +unsigned int dispclk_vco_khz; +unsigned int dc_mode_softmax_memclk;struct clk_limit_table clk_table;struct wm_table wm_table;struct dummy_pstate_entry dummy_pstate_table[4 ];
@@ -261,6 +263,10 @@ struct clk_mgr_funcs {/* Send message to PMFW to set hard max memclk frequency to highest DPM */ void (*set_hard_max_memclk)(struct clk_mgr *clk_mgr); +/* Custom set a memclk freq range*/ +void (*set_max_memclk)(struct clk_mgr *clk_mgr,unsigned int memclk_mhz); +void (*set_min_memclk)(struct clk_mgr *clk_mgr,unsigned int memclk_mhz); +/* Get current memclk states from PMFW, update relevant structures */ void (*get_memclk_states_from_smu)(struct clk_mgr *clk_mgr);
@@ -274,6 +280,7 @@ struct clk_mgr {struct dc_clocks clks;bool psr_allow_active_cache;bool force_smu_not_present; +bool dc_mode_softmax_enabled;int dprefclk_khz;// Used by program pixel clock in clock source funcs, need to figureout where this goes int dentist_vco_freq_khz;struct clk_state_registers_and_bypass boot_snapshot;
drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h +1 -0
@@ -139,6 +139,7 @@ struct hubp_funcs {bool (*hubp_is_flip_pending)(struct hubp *hubp);void (*set_blank)(struct hubp *hubp,bool blank); +void (*set_blank_regs)(struct hubp *hubp,bool blank);void (*set_hubp_blank_en)(struct hubp *hubp,bool blank); void (*set_cursor_attributes)(
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h +1 -0
@@ -64,6 +64,7 @@ struct hw_sequencer_funcs {enum dc_status (*apply_ctx_to_hw)(struct dc *dc,struct dc_state *context);void (*disable_plane)(struct dc *dc,struct pipe_ctx *pipe_ctx); +void (*disable_pixel_data)(struct dc *dc,struct pipe_ctx *pipe_ctx,bool blank);void (*apply_ctx_for_surface)(struct dc *dc,const struct dc_stream_state *stream,int num_planes,struct dc_state *context);
Signature · 1 line
2.32.0
PATCH 10/10 drm/amd/display: 3.2.166
In reply to Pavle KotaracFrom: 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
@@ -47,7 +47,7 @@ struct aux_payload;struct set_config_cmd_payload ;struct dmub_notification ; -#define DC_VER "3.2.164" +#define DC_VER "3.2.166"#define MAX_SURFACES 3#define MAX_PLANES 6
Signature · 1 line
2.32.0
Wheeler, Daniel
Tested-by[Public]
Hi all,
This week this patchset was tested on the following systems:
HP Envy 360, with Ryzen 5 4500U, with the following display types: eDP 1080p 60hz, 4k 60hz (via USB-C to DP/HDMI), 1440p 144hz (via USB-C to DP/HDMI), 1680*1050 60hz (via USB-C to DP and then DP to DVI/VGA)
Lenovo Thinkpad T14s Gen2 with AMD Ryzen 5 5650U, with the following display types: eDP 1080p 60hz, 4k 60hz (via USB-C to DP/HDMI), 1440p 144hz (via USB-C to DP/HDMI), 1680*1050 60hz (via USB-C to DP and then DP to DVI/VGA)
Sapphire Pulse RX5700XT with the following display types:
4k 60hz (via DP/HDMI), 1440p 144hz (via DP/HDMI), 1680*1050 60hz (via DP to DVI/VGA)
Reference AMD RX6800 with the following display types:
4k 60hz (via DP/HDMI and USB-C to DP/HDMI), 1440p 144hz (via USB-C to DP/HDMI and USB-C to DP/HDMI), 1680*1050 60hz (via DP to DVI/VGA)
Included testing using a Startech DP 1.4 MST hub at 2x 4k 60hz, and 3x 1080p 60hz on all systems. Also tested DSC via USB-C to DP DSC Hub with 3x 4k 60hz on Ryzen 9 5900h and Ryzen 5 4500u.
Tested on Ubuntu 20.04.3 with Kernel Version 5.13 and ChromeOS
Thank you,
Dan Wheeler
Technologist | AMD
SW Display
------------------------------------------------------------------------------------------------------------------
1 Commerce Valley Dr E, Thornhill, ON L3T 7X6
Facebook | Twitter | amd.com
-----Original Message-----
From: Kotarac, Pavle <[email protected]>
Sent: December 10, 2021 6:04 PM
To: [email protected]
Cc: Wentland, Harry <[email protected]>; Li, Sun peng (Leo) <[email protected]>; Lakha, Bhawanpreet <[email protected]>; Siqueira, Rodrigo <[email protected]>; Pillai, Aurabindo <[email protected]>; Zhuo, Qingqing (Lillian) <[email protected]>; Lipski, Mikita <[email protected]>; Li, Roman <[email protected]>; [email protected]; Lin, Wayne <[email protected]>; Wang, Chao-kai (Stylon) <[email protected]>; Chiu, Solomon <[email protected]>; Kotarac, Pavle <[email protected]>; Gutierrez, Agustin <[email protected]>; Kotarac, Pavle <[email protected]>; Wheeler, Daniel <[email protected]>
Subject: DC Patches January 10, 2020
This new DC version brings improvements in the following areas:
- FW promotion to 0.0.97
- DSC fixes for supported Docks
- Fixes eDP display issue
- Vendor LTTR workarounds
- Fixes Tiled display audio issue
Anthony Koo (1):
drm/amd/display: [FW Promotion] Release 0.0.97
Aric Cyr (1):
drm/amd/display: 3.2.166
Eric Bernstein (1):
drm/amd/display: ODM + MPO window on only one half of ODM
Martin Leung (1):
drm/amd/display: implement dc_mode_memclk
Michael Strauss (1):
drm/amd/display: Force det buf size to 192KB with 3+ streams and
upscaling
Mikita Lipski (1):
drm/amd/display: parse and check PSR SU caps
Nicholas Kazlauskas (2):
drm/amd/display: Set exit_optimized_pwr_state for DCN31 drm/amd/display: Reset DMCUB before HW init
Solomon Chiu (1):
drm/amd/display: Add src/ext ID info for dummy service
Wayne Lin (1):
drm/amd/display: Add debugfs entry for ILR
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 + .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 134 ++++++++++++++++++ .../drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 101 +++++++++++-- .../display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c | 44 +++++- drivers/gpu/drm/amd/display/dc/core/dc.c | 92 ++++++++++++ .../gpu/drm/amd/display/dc/core/dc_resource.c | 81 ++++++++--- drivers/gpu/drm/amd/display/dc/dc.h | 5 +- drivers/gpu/drm/amd/display/dc/dc_dp_types.h | 9 ++ drivers/gpu/drm/amd/display/dc/dc_types.h | 1 + .../gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c | 14 +- .../gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h | 1 + .../drm/amd/display/dc/dcn20/dcn20_hwseq.c | 10 ++ .../drm/amd/display/dc/dcn20/dcn20_hwseq.h | 4 + .../gpu/drm/amd/display/dc/dcn30/dcn30_hubp.c | 1 + .../drm/amd/display/dc/dcn30/dcn30_hwseq.c | 11 ++ .../drm/amd/display/dc/dcn30/dcn30_hwseq.h | 5 +- .../gpu/drm/amd/display/dc/dcn30/dcn30_init.c | 1 + .../drm/amd/display/dc/dcn30/dcn30_resource.c | 11 ++ .../gpu/drm/amd/display/dc/dcn31/dcn31_init.c | 1 + .../drm/amd/display/dc/dcn31/dcn31_resource.c | 8 ++ .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 7 + drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h | 1 + .../gpu/drm/amd/display/dc/inc/hw_sequencer.h | 1 + .../dc/irq/dce110/irq_service_dce110.c | 10 +- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 4 +- 25 files changed, 514 insertions(+), 48 deletions(-)
--
2.32.0