DC Patches Feburary 26, 2022
Subsystems (3)
cover DC Patches Feburary 26, 2022
This DC patchset brings improvements in multiple areas. In summary, we have:
* Removing legacy invalid code.
* Fixes in DC, DCE110.
* Enhancements in DMUB.
* Improvements on DCN10, DCN31.
* Firmware promotion.
drm/amd/display: 3.2.175
This version brings along following fixes:
- Remove invalid RDPCS Programming in DAL
- Make functional resource functions non-static
- Reset VIC if HDMI_VIC is present
- Add frame alternate 3D & restrict HW packed on dongles
- Reg to turn on/off PSR Power seq in FSM
- Modify plane removal sequence to avoid hangs
- Pass HostVM enable flag into DCN3.1 DML
- DC Validation failures
- Program OPP before ODM
- Refactor fixed VS w/a for PHY tests
- Pass deep sleep disabled allow info to dmub fw
- Refine the EDID override
- [FW Promotion] Release 0.0.106.0
- Add verify_link_cap back for hdmi
Anthony Koo (1):
drm/amd/display: [FW Promotion] Release 0.0.106.0
Aric Cyr (1):
drm/amd/display: 3.2.175
Charlene Liu (1):
drm/amd/display: add verify_link_cap back for hdmi
Chris Park (1):
drm/amd/display: Reset VIC if HDMI_VIC is present
Dillon Varone (2):
drm/amd/display: Add frame alternate 3D & restrict HW packed on
dongles
drm/amd/display: Modify plane removal sequence to avoid hangs.
Hansen Dsouza (1):
drm/amd/display: Remove invalid RDPCS Programming in DAL
Michael Strauss (1):
drm/amd/display: Pass HostVM enable flag into DCN3.1 DML
Nicholas Kazlauskas (1):
drm/amd/display: Make functional resource functions non-static
Robin Chen (1):
drm/amd/display: Pass deep sleep disabled allow info to dmub fw
Shah, Dharati (1):
drm/amd/display: Adding a dc_debug option and dmub setting to use PHY
FSM for PSR
Shen, George (1):
drm/amd/display: Refactor fixed VS w/a for PHY tests
Wesley Chalmers (1):
drm/amd/display: Program OPP before ODM
jinzh (1):
drm/amd/display: refine the EDID override
drivers/gpu/drm/amd/display/dc/core/dc_link.c | 14 +++++- .../gpu/drm/amd/display/dc/core/dc_link_dp.c | 16 ++++-- .../gpu/drm/amd/display/dc/core/dc_resource.c | 2 + drivers/gpu/drm/amd/display/dc/dc.h | 4 +- drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 1 + .../display/dc/dce110/dce110_hw_sequencer.c | 49 ++++++++++--------- .../amd/display/dc/dcn10/dcn10_hw_sequencer.c | 5 +- .../gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c | 21 ++------ .../display/dc/dcn31/dcn31_dio_link_encoder.c | 9 ---- .../drm/amd/display/dc/dcn31/dcn31_resource.c | 5 +- .../drm/amd/display/dc/dcn31/dcn31_resource.h | 5 ++ .../amd/display/dc/dcn315/dcn315_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dm_helpers.h | 3 ++ .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 12 +++-- 14 files changed, 83 insertions(+), 64 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/14 drm/amd/display: Remove invalid RDPCS Programming in DAL
From: Hansen Dsouza <[email protected]>
RDPCS programming is done in DMUB remove legacy invalid code
--- .../drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c +0 -9
@@ -240,18 +240,9 @@ static void enc31_hw_init(struct link_encoder *enc)// 100MHz -> 0x32 // 48MHz -> 0x18 -#ifdef CLEANUP_FIXME -/*from display_init*/ -REG_WRITE (RDPCSTX_DEBUG_CONFIG ,0 ); -#endif -// Set TMDS_CTL0 to 1. This is a legacy setting. REG_UPDATE (TMDS_CTL_BITS ,TMDS_CTL0 ,1 ); -/*HW default is 5*/ -REG_UPDATE (RDPCSTX_CNTL , -RDPCS_TX_FIFO_RD_START_DELAY ,4 ); -dcn10_aux_initialize (enc10); }
Signature · 1 line
2.25.1
PATCH 2/14 drm/amd/display: Make functional resource functions non-static
In reply to Alan LiuFrom: Nicholas Kazlauskas <[email protected]>
[Why & How]
To align coding style for how we use this across DCN. The resource creation ones can remain static, however.
--- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c | 4 ++-- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.h | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c +2 -2
@@ -1777,7 +1777,7 @@ static bool is_dual_plane(enum surface_pixel_format format)return format >=SURFACE_PIXEL_FORMAT_VIDEO_BEGIN || format ==SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA ; } -static int dcn31_populate_dml_pipes_from_context ( +int dcn31_populate_dml_pipes_from_context (struct dc *dc,struct dc_state *context,display_e2e_pipe_params_st *pipes,bool fast_validate)
@@ -2068,7 +2068,7 @@ static struct dc_cap_funcs cap_funcs = { .get_dcc_compression_cap = dcn20_get_dcc_compression_cap }; -static void dcn31_update_bw_bounding_box (struct dc *dc,struct clk_bw_params *bw_params) +void dcn31_update_bw_bounding_box (struct dc *dc,struct clk_bw_params *bw_params) {struct clk_limit_table *clk_table = &bw_params->clk_table;struct _vcs_dpi_voltage_scaling_st clock_limits[DC__VOLTAGE_STATES ];
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.h +5 -0
@@ -43,6 +43,11 @@ void dcn31_calculate_wm_and_dlg(display_e2e_pipe_params_st *pipes, int pipe_cnt, int vlevel); +int dcn31_populate_dml_pipes_from_context ( +struct dc *dc,struct dc_state *context, +display_e2e_pipe_params_st *pipes, +bool fast_validate); +void dcn31_update_bw_bounding_box (struct dc *dc,struct clk_bw_params *bw_params);void dcn31_update_soc_for_wm_a (struct dc *dc,struct dc_state *context); struct resource_pool *dcn31_create_resource_pool(
Signature · 1 line
2.25.1
PATCH 3/14 drm/amd/display: Reset VIC if HDMI_VIC is present
In reply to Alan LiuFrom: Chris Park <[email protected]>
[Why]
HDMI Compliance requires VIC to be set to 0 on 2D mode if HDMI_VIC is present.
[How]
When VIC and HDMI_VIC is both present, reset VIC to 0.
--- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +2 -0
@@ -2615,6 +2615,8 @@ static void set_avi_info_frame( hdmi_info.bits.YQ0_YQ1 =YYC_QUANTIZATION_LIMITED_RANGE ;///VIC +if (pipe_ctx->stream->timing.hdmi_vic !=0 ) + vic =0 ; format = stream->timing.timing_3d_format;/*todo, add 3DStereo support*/ if (format !=TIMING_3D_FORMAT_NONE ) {
Signature · 1 line
2.25.1
PATCH 4/14 drm/amd/display: Add frame alternate 3D & restrict HW packed on dongles
In reply to Alan LiuFrom: Dillon Varone <[email protected]>
[WHY?]
Some projectors support frame alternate 3D modes at 120Hz, but DAL3 does not create timings. Most active DP to HDMI dongles do not translate infoframes properly to use HW packing stereo mode.
[HOW?]
Create frame alternate 3D timings for displays that support it. Disable HW packing 3D mode on DP active dongles.
--- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 11 +++++++++++ .../gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 3 ++- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c | 11 ----------- 3 files changed, 13 insertions(+), 12 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +11 -0
@@ -2801,6 +2801,17 @@ static bool dp_active_dongle_validate_timing(return false; } +/* Check 3D format */ +switch (timing->timing_3d_format) { +case TIMING_3D_FORMAT_NONE : +case TIMING_3D_FORMAT_FRAME_ALTERNATE : +/*Only frame alternate 3D is supported on active dongle*/ +break ; +default : +/*other 3D formats are not supported due to bad infoframe translation */ +return false; + } +#if defined(CONFIG_DRM_AMD_DC_DCN )if (dongle_caps->dp_hdmi_frl_max_link_bw_in_kbps >0 ) {// DP to HDMI FRL converter struct dc_crtc_timing outputTiming = *timing;
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +2 -1
@@ -3093,7 +3093,8 @@ static void dcn10_config_stereo_parameters( flags->PROGRAM_STEREO =1 ; flags->PROGRAM_POLARITY =1 ; -if (timing_3d_format ==TIMING_3D_FORMAT_INBAND_FA || +if (timing_3d_format ==TIMING_3D_FORMAT_FRAME_ALTERNATE || + timing_3d_format ==TIMING_3D_FORMAT_INBAND_FA || timing_3d_format ==TIMING_3D_FORMAT_DP_HDMI_INBAND_FA || timing_3d_format ==TIMING_3D_FORMAT_SIDEBAND_FA ) { enum display_dongle_type dongle = \
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c +0 -11
@@ -707,17 +707,6 @@ bool hubp2_program_surface_flip_and_addr(REG_UPDATE (VMID_SETTINGS_0 ,VMID , address->vmid); -if (address->type ==PLN_ADDR_TYPE_GRPH_STEREO ) { -REG_UPDATE (DCSURF_FLIP_CONTROL ,SURFACE_FLIP_MODE_FOR_STEREOSYNC ,0x1 ); -REG_UPDATE (DCSURF_FLIP_CONTROL ,SURFACE_FLIP_IN_STEREOSYNC ,0x1 ); - - }else { -// turn off stereo if not in stereo -REG_UPDATE (DCSURF_FLIP_CONTROL ,SURFACE_FLIP_MODE_FOR_STEREOSYNC ,0x0 ); -REG_UPDATE (DCSURF_FLIP_CONTROL ,SURFACE_FLIP_IN_STEREOSYNC ,0x0 ); - } - -/* HW automatically latch rest of address register on write to * DCSURF_PRIMARY_SURFACE_ADDRESS if SURFACE_UPDATE_LOCK is not used
Signature · 1 line
2.25.1
PATCH 5/14 drm/amd/display: Adding a dc_debug option and dmub setting to use PHY FSM for PSR
In reply to Alan LiuFrom: "Shah, Dharati" <[email protected]>
[Why]
PSR Power on/off is done in PSR. Add a dc_debug option and dmub setting to use PHY implementation of this instead.
[How]
Add a dc_debug option and dmub setting to use PHY FSM Power up/down for PSR.
--- drivers/gpu/drm/amd/display/dc/dc.h | 1 + drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 1 + drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c | 1 + drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 8 ++++++-- 4 files changed, 9 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -710,6 +710,7 @@ struct dc_debug_options {#endif bool apply_vendor_specific_lttpr_wa;bool ignore_dpref_ss; +uint8_t psr_power_use_phy_fsm; };struct gpu_info_soc_bounding_box_v1_0 ;
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c +1 -0
@@ -320,6 +320,7 @@ static bool dmub_psr_copy_settings(struct dmub_psr *dmub, copy_settings_data->otg_inst =0 ;// Misc + copy_settings_data->use_phy_fsm = link->ctx->dc->debug.psr_power_use_phy_fsm; copy_settings_data->psr_level = psr_context->psr_level.u32all; copy_settings_data->smu_optimizations_en = psr_context->allow_smu_optimizations; copy_settings_data->multi_disp_optimizations_en = psr_context->allow_multi_disp_optimizations;
drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c +1 -0
@@ -1034,6 +1034,7 @@ static const struct dc_debug_options debug_defaults_drv = { }, .optimize_edp_link_rate = true, .enable_sw_cntl_psr = true, + .psr_power_use_phy_fsm = 0, };static const struct dc_debug_options debug_defaults_diags = {
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +6 -2
@@ -1560,10 +1560,14 @@ struct dmub_cmd_psr_copy_settings_data {* DSC enable status in driver */ uint8_t dsc_enable_status; +/* +* Use FSM state for PSR power up/down +*/ +uint8_t use_phy_fsm;/** -* Explicit padding to 3 byte boundary. +* Explicit padding to 2 byte boundary. */ -uint8_t pad3[3 ]; +uint8_t pad3[2 ]; };/**
Signature · 1 line
2.25.1
PATCH 6/14 drm/amd/display: Modify plane removal sequence to avoid hangs.
In reply to Alan LiuFrom: Dillon Varone <[email protected]>
--- .../gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +1 -1
@@ -107,7 +107,7 @@ void dcn10_lock_all_pipes(struct dc *dc,* (un)locking. Also skip if pipe is disabled. */ if (pipe_ctx->top_pipe || - !pipe_ctx->stream || !pipe_ctx->plane_state || + !pipe_ctx->stream || !tg->funcs->is_tg_enabled (tg))continue ;
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c +5 -5
@@ -931,10 +931,6 @@ 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 ; -REG_UPDATE_2 (DCHUBP_CNTL , -HUBP_BLANK_EN , blank_en, -HUBP_TTU_DISABLE , blank_en); -if (blank) {uint32_t reg_val =REG_READ (DCHUBP_CNTL );
@@ -947,9 +943,13 @@ void hubp2_set_blank_regs(struct hubp *hubp, bool blank)*/ REG_WAIT (DCHUBP_CNTL ,HUBP_NO_OUTSTANDING_REQ ,1 , -1 ,200 ); +1 ,100000 ); } } + +REG_UPDATE_2 (DCHUBP_CNTL , +HUBP_BLANK_EN , blank_en, +HUBP_TTU_DISABLE ,0 ); } void hubp2_cursor_set_position(
Signature · 1 line
2.25.1
PATCH 7/14 drm/amd/display: Pass HostVM enable flag into DCN3.1 DML
In reply to Alan LiuFrom: Michael Strauss <[email protected]>
[WHY]
Calculations differ with HostVM enabled/disabled, causing underflow in configs with high refresh displays + scaling due to lower available BW
[HOW]
Check riommu_active in order to pass correct HostVM enablement to DML
--- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c +1 -0
@@ -1810,6 +1810,7 @@ int dcn31_populate_dml_pipes_from_context( pipes[pipe_cnt].pipe.src.immediate_flip = true; pipes[pipe_cnt].pipe.src.unbounded_req_mode = false; + pipes[pipe_cnt].pipe.src.hostvm = dc->res_pool->hubbub->riommu_active; pipes[pipe_cnt].pipe.src.gpuvm = true; pipes[pipe_cnt].pipe.src.dcc_fraction_of_zs_req_luma =0 ; pipes[pipe_cnt].pipe.src.dcc_fraction_of_zs_req_chroma =0 ;
Signature · 1 line
2.25.1
PATCH 8/14 drm/amd/display: Program OPP before ODM
In reply to Alan LiuFrom: Wesley Chalmers <[email protected]>
[WHY]
HW expects OPP to be configured before ODM is enabled. Failure to do so can cause errors.
--- .../display/dc/dce110/dce110_hw_sequencer.c | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-)
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +25 -24
@@ -1509,6 +1509,31 @@ static enum dc_status apply_single_controller_ctx_to_hw(if (!pipe_ctx->stream->apply_seamless_boot_optimization && dc->config.use_pipe_ctx_sync_logic)check_syncd_pipes_for_disabled_master_pipe (dc, context, pipe_ctx->pipe_idx); + pipe_ctx->stream_res.opp->funcs->opp_program_fmt ( + pipe_ctx->stream_res.opp, + &stream->bit_depth_params, + &stream->clamping); + + pipe_ctx->stream_res.opp->funcs->opp_set_dyn_expansion ( + pipe_ctx->stream_res.opp, +COLOR_SPACE_YCBCR601 , + stream->timing.display_color_depth, + stream->signal); + +while (odm_pipe) { + odm_pipe->stream_res.opp->funcs->opp_set_dyn_expansion ( + odm_pipe->stream_res.opp, +COLOR_SPACE_YCBCR601 , + stream->timing.display_color_depth, + stream->signal); + + odm_pipe->stream_res.opp->funcs->opp_program_fmt ( + odm_pipe->stream_res.opp, + &stream->bit_depth_params, + &stream->clamping); + odm_pipe = odm_pipe->next_odm_pipe; + } +/* DCN3.1 FPGA Workaround * Need to enable HPO DP Stream Encoder before setting OTG master enable. * To do so, move calling function enable_stream_timing to only be done AFTER calling
@@ -1548,30 +1573,6 @@ static enum dc_status apply_single_controller_ctx_to_hw(if (dc_is_dp_signal (pipe_ctx->stream->signal))dp_source_sequence_trace (link,DPCD_SOURCE_SEQ_AFTER_CONNECT_DIG_FE_OTG ); - pipe_ctx->stream_res.opp->funcs->opp_set_dyn_expansion ( - pipe_ctx->stream_res.opp, -COLOR_SPACE_YCBCR601 , - stream->timing.display_color_depth, - stream->signal); - - pipe_ctx->stream_res.opp->funcs->opp_program_fmt ( - pipe_ctx->stream_res.opp, - &stream->bit_depth_params, - &stream->clamping); -while (odm_pipe) { - odm_pipe->stream_res.opp->funcs->opp_set_dyn_expansion ( - odm_pipe->stream_res.opp, -COLOR_SPACE_YCBCR601 , - stream->timing.display_color_depth, - stream->signal); - - odm_pipe->stream_res.opp->funcs->opp_program_fmt ( - odm_pipe->stream_res.opp, - &stream->bit_depth_params, - &stream->clamping); - odm_pipe = odm_pipe->next_odm_pipe; - } -if (!stream->dpms_off)core_link_enable_stream (context, pipe_ctx);
Signature · 1 line
2.25.1
PATCH 9/14 drm/amd/display: Refactor fixed VS w/a for PHY tests
In reply to Alan LiuFrom: "Shen, George" <[email protected]>
[Why/How]
Refactor original w/a to unify naming and simplify logic. This also re-enables the code that was previously skipped due to the disabling of the previous workaround logic.
--- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +11 -5
@@ -505,17 +505,24 @@ static void vendor_specific_lttpr_wa_four( } } -static void vendor_specific_lttpr_wa_five ( +static void dp_fixed_vs_pe_set_retimer_lane_settings (struct dc_link *link,const union dpcd_training_lane dpcd_lane_adjust[LANE_COUNT_DP_MAX ],uint8_t lane_count) { -const uint32_t vendor_lttpr_write_address =0xF004F ; +const uint8_t offset =dp_convert_to_count ( + link->dpcd_caps.lttpr_caps.phy_repeater_cnt);const uint8_t vendor_lttpr_write_data_reset[4 ] = {0x1 ,0x50 ,0x63 ,0xFF }; +uint32_t vendor_lttpr_write_address =0xF004F ;uint8_t vendor_lttpr_write_data_vs[4 ] = {0x1 ,0x51 ,0x63 ,0x0 };uint8_t vendor_lttpr_write_data_pe[4 ] = {0x1 ,0x52 ,0x63 ,0x0 };uint8_t lane =0 ; +if (offset !=0xFF ) { + vendor_lttpr_write_address += + ((DP_REPEATER_CONFIGURATION_AND_STATUS_SIZE ) * (offset -1 )); + } +for (lane =0 ; lane < lane_count; lane++) { vendor_lttpr_write_data_vs[3 ] |= dpcd_lane_adjust[lane].bits.VOLTAGE_SWING_SET << (2 * lane);
@@ -5989,15 +5996,14 @@ bool dc_link_dp_set_test_pattern(if (link->dc->debug.apply_vendor_specific_lttpr_wa && (link->chip_caps &EXT_DISPLAY_PATH_CAPS__DP_FIXED_VS_EN ) && link->lttpr_mode ==LTTPR_MODE_TRANSPARENT ) { -dpcd_set_lane_settings (link, p_link_settings,DPRX ); -vendor_specific_lttpr_wa_five ( +dp_fixed_vs_pe_set_retimer_lane_settings ( link, p_link_settings->dpcd_lane_settings, p_link_settings->link_settings.lane_count); }else {dp_set_hw_lane_settings (link, &pipe_ctx->link_res, p_link_settings,DPRX ); -dpcd_set_lane_settings (link, p_link_settings,DPRX ); } +dpcd_set_lane_settings (link, p_link_settings,DPRX ); }/* Blank stream if running test pattern */
Signature · 1 line
2.25.1
PATCH 10/14 drm/amd/display: Pass deep sleep disabled allow info to dmub fw
In reply to Alan LiuFrom: Robin Chen <[email protected]>
[Why]
The deep sleep mode need to be disabled in some PSR scenario.
--- drivers/gpu/drm/amd/display/dc/dc.h | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -354,6 +354,7 @@ enum dc_psr_power_opts { psr_power_opt_invalid =0x0 , psr_power_opt_smu_opt_static_screen =0x1 , psr_power_opt_z10_static_screen =0x10 , + psr_power_opt_ds_disable_allow = 0x100, }; enum dcc_option {
Signature · 1 line
2.25.1
PATCH 11/14 drm/amd/display: refine the EDID override
In reply to Alan LiuFrom: jinzh <[email protected]>
[Why]
We already get the SBIOS EDID via ACPI on KMD,
but after that, we just use the monitor EDID to set it HDR caps
[How]
Make the SBIOS EDID override to read_edid() That can change the read EDID caps from the right EDID
--- drivers/gpu/drm/amd/display/dc/dm_helpers.h | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/display/dc/dm_helpers.h +3 -0
@@ -184,4 +184,7 @@ int dm_helpers_dmub_set_config_sync(struct dc_context *ctx,const struct dc_link *link, struct set_config_cmd_payload *payload, enum set_config_status *operation_result); + +enum dc_edid_status dm_helpers_get_sbios_edid (struct dc_link *link,struct dc_edid *edid); +#endif /* __DM_HELPERS__ */
Signature · 1 line
2.25.1
PATCH 12/14 drm/amd/display: [FW Promotion] Release 0.0.106.0
In reply to Alan LiuFrom: 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
@@ -46,10 +46,10 @@/* Firmware versioning. */ #ifdef DMUB_EXPOSE_VERSION -#define DMUB_FW_VERSION_GIT_HASH 0x1422ef84 +#define DMUB_FW_VERSION_GIT_HASH 0x082bd4c8#define DMUB_FW_VERSION_MAJOR 0#define DMUB_FW_VERSION_MINOR 0 -#define DMUB_FW_VERSION_REVISION 104 +#define DMUB_FW_VERSION_REVISION 106#define DMUB_FW_VERSION_TEST 0#define DMUB_FW_VERSION_VBIOS 0#define DMUB_FW_VERSION_HOTFIX 0
Signature · 1 line
2.25.1
PATCH 13/14 drm/amd/display: add verify_link_cap back for hdmi
In reply to Alan LiuFrom: Charlene Liu <[email protected]>
[why]
hdmi specific: add verify link cap after retrive link cap.
Change-Id: Ifd7b72e4f1f4ba4501e1ca30785ce4abf3b857dc
--- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +2 -1
@@ -981,7 +981,8 @@ static bool should_verify_link_capability_destructively(struct dc_link *link, destrictive = false; } } - } + }else if (dc_is_hdmi_signal (link->local_sink->sink_signal)) + destrictive = true;return destrictive; }
Signature · 1 line
2.25.1
PATCH 14/14 drm/amd/display: 3.2.175
In reply to Alan LiuFrom: Aric Cyr <[email protected]>
drm/amd/display: 3.2.175
This version brings along following fixes:
- Remove invalid RDPCS Programming in DAL
- Make functional resource functions non-static
- Reset VIC if HDMI_VIC is present
- Add frame alternate 3D & restrict HW packed on dongles
- Reg to turn on/off PSR Power seq in FSM
- Modify plane removal sequence to avoid hangs
- Pass HostVM enable flag into DCN3.1 DML
- DC Validation failures
- Program OPP before ODM
- Refactor fixed VS w/a for PHY tests
- Pass deep sleep disabled allow info to dmub fw
- Refine the EDID override
- [FW Promotion] Release 0.0.106.0
- Add verify_link_cap back for hdmi
--- 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.174" +#define DC_VER "3.2.175"#define MAX_SURFACES 3#define MAX_PLANES 6
Signature · 1 line
2.25.1
[Public]
Hi all,
This week this patchset was tested on the following systems:
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: amd-gfx <[email protected]> On Behalf Of Alan Liu
Sent: February 26, 2022 6:41 PM
To: [email protected]
Cc: Wang, Chao-kai (Stylon) <[email protected]>; Liu, HaoPing (Alan) <[email protected]>; Li, Sun peng (Leo) <[email protected]>; Wentland, Harry <[email protected]>; Zhuo, Qingqing (Lillian) <[email protected]>; Siqueira, Rodrigo <[email protected]>; Li, Roman <[email protected]>; Chiu, Solomon <[email protected]>; Pillai, Aurabindo <[email protected]>; Lin, Wayne <[email protected]>; Lakha, Bhawanpreet <[email protected]>; Gutierrez, Agustin <[email protected]>; Kotarac, Pavle <[email protected]>
Subject: [PATCH 00/14] DC Patches Feburary 26, 2022
This DC patchset brings improvements in multiple areas. In summary, we have:
* Removing legacy invalid code.
* Fixes in DC, DCE110.
* Enhancements in DMUB.
* Improvements on DCN10, DCN31.
* Firmware promotion.
drm/amd/display: 3.2.175
This version brings along following fixes:
- Remove invalid RDPCS Programming in DAL
- Make functional resource functions non-static
- Reset VIC if HDMI_VIC is present
- Add frame alternate 3D & restrict HW packed on dongles
- Reg to turn on/off PSR Power seq in FSM
- Modify plane removal sequence to avoid hangs
- Pass HostVM enable flag into DCN3.1 DML
- DC Validation failures
- Program OPP before ODM
- Refactor fixed VS w/a for PHY tests
- Pass deep sleep disabled allow info to dmub fw
- Refine the EDID override
- [FW Promotion] Release 0.0.106.0
- Add verify_link_cap back for hdmi
Anthony Koo (1):
drm/amd/display: [FW Promotion] Release 0.0.106.0
Aric Cyr (1):
drm/amd/display: 3.2.175
Charlene Liu (1):
drm/amd/display: add verify_link_cap back for hdmi
Chris Park (1):
drm/amd/display: Reset VIC if HDMI_VIC is present
Dillon Varone (2):
drm/amd/display: Add frame alternate 3D & restrict HW packed on
dongles
drm/amd/display: Modify plane removal sequence to avoid hangs.
Hansen Dsouza (1):
drm/amd/display: Remove invalid RDPCS Programming in DAL
Michael Strauss (1):
drm/amd/display: Pass HostVM enable flag into DCN3.1 DML
Nicholas Kazlauskas (1):
drm/amd/display: Make functional resource functions non-static
Robin Chen (1):
drm/amd/display: Pass deep sleep disabled allow info to dmub fw
Shah, Dharati (1):
drm/amd/display: Adding a dc_debug option and dmub setting to use PHY
FSM for PSR
Shen, George (1):
drm/amd/display: Refactor fixed VS w/a for PHY tests
Wesley Chalmers (1):
drm/amd/display: Program OPP before ODM
jinzh (1):
drm/amd/display: refine the EDID override
drivers/gpu/drm/amd/display/dc/core/dc_link.c | 14 +++++- .../gpu/drm/amd/display/dc/core/dc_link_dp.c | 16 ++++-- .../gpu/drm/amd/display/dc/core/dc_resource.c | 2 + drivers/gpu/drm/amd/display/dc/dc.h | 4 +- drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 1 + .../display/dc/dce110/dce110_hw_sequencer.c | 49 ++++++++++--------- .../amd/display/dc/dcn10/dcn10_hw_sequencer.c | 5 +- .../gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c | 21 ++------ .../display/dc/dcn31/dcn31_dio_link_encoder.c | 9 ---- .../drm/amd/display/dc/dcn31/dcn31_resource.c | 5 +- .../drm/amd/display/dc/dcn31/dcn31_resource.h | 5 ++ .../amd/display/dc/dcn315/dcn315_resource.c | 1 + drivers/gpu/drm/amd/display/dc/dm_helpers.h | 3 ++ .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 12 +++-- 14 files changed, 83 insertions(+), 64 deletions(-)
--
2.25.1