DC Patches September 13, 2020
cover DC Patches September 13, 2020
This DC patchset brings improvements in multiple areas. In summary, we highlight:
- Use optc32 instead of optc30 in DC
- Optimize OLED T7 delay
- Multiple fixes for MST, register mas, and others
- Update driver and IPS interop
- Improve z8 watermark mask
- DCN35 updates
- Enable replay for DCN35
- Temporarily disable clock gating
Thanks
Siqueira
Agustin Gutierrez (1):
drm/amd/display: Optimize OLED T7 delay
Anthony Koo (1):
drm/amd/display: [FW Promotion] Release 0.0.183.0
Aric Cyr (2):
drm/amd/display: 3.2.251
drm/amd/display: 3.2.252
Artem Grishin (1):
drm/amd/display: STREAM_MAPPER_CONTROL register offset on DCN35
Charlene Liu (4):
drm/amd/display: Temporarily disable clock gating drm/amd/display: Add z8_marks related in dml for DCN35 drm/amd/display: Correct z8 watermark mask drm/amd/display: fix some non-initialized register mask and setting
Duncan Ma (2):
drm/amd/display: Fix dig register undefined
drm/amd/display: Update driver and IPS interop
Gabe Teeger (1):
drm/amd/display: Add option to flip ODM optimization
Muhammad Ahmed (6):
drm/amd/display: disable clock gating logic drm/amd/display: Enable DCLK_DS from driver by default drm/amd/display: disable IPS
drm/amd/display: Fix MST recognizes connected displays as one drm/amd/display: Expand DML to better support replay drm/amd/display: Enable DCN low mem power by default
Mustapha Ghaddar (1):
drm/amd/display: Add DPIA Link Encoder Assignment Fix for DCN35
Ovidiu Bunea (1):
drm/amd/display: Use optc32 instead of optc30 in DC
Qingqing Zhuo (1):
drm/amd/display: Add DCN35 case for dc_clk_mgr_create
Rodrigo Siqueira (1):
drm/amd/display: Drop unused code
Roman Li (1):
drm/amd/display: Enable replay for dcn35
Sung Joon Kim (2):
drm/amd/display: Add pointer check before function call drm/amd/display: Add IPS control flag
Sung-huai Wang (1):
drm/amd/display: fix static screen detection setting for DCN35
Taimur Hassan (1):
drm/amd/display: Add reset for SYMCLKC_FE_SRC_SEL
Wenjing Liu (1):
drm/amd/display: Update pipe resource interfaces for DCN35
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + .../drm/amd/display/dc/bios/bios_parser2.c | 9 -- .../gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 13 ++ .../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 24 ++- .../amd/display/dc/clk_mgr/dcn35/dcn35_smu.c | 16 +- .../amd/display/dc/clk_mgr/dcn35/dcn35_smu.h | 1 + drivers/gpu/drm/amd/display/dc/dc.h | 3 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 4 + .../display/dc/dce110/dce110_hw_sequencer.c | 3 +- .../drm/amd/display/dc/dcn10/dcn10_hubbub.h | 8 +- .../gpu/drm/amd/display/dc/dcn30/dcn30_optc.c | 2 +- .../gpu/drm/amd/display/dc/dcn32/dcn32_optc.c | 2 +- .../gpu/drm/amd/display/dc/dcn32/dcn32_optc.h | 2 + .../gpu/drm/amd/display/dc/dcn35/dcn35_dccg.c | 114 +++++++++---- .../drm/amd/display/dc/dcn35/dcn35_hubbub.c | 62 +++++-- .../drm/amd/display/dc/dcn35/dcn35_hubbub.h | 9 +- .../gpu/drm/amd/display/dc/dcn35/dcn35_hubp.h | 4 +- .../drm/amd/display/dc/dcn35/dcn35_hwseq.c | 2 + .../gpu/drm/amd/display/dc/dcn35/dcn35_init.c | 2 +- .../gpu/drm/amd/display/dc/dcn35/dcn35_optc.c | 2 +- .../gpu/drm/amd/display/dc/dcn35/dcn35_optc.h | 151 +----------------- .../drm/amd/display/dc/dcn35/dcn35_pg_cntl.c | 53 +++--- .../drm/amd/display/dc/dcn35/dcn35_resource.c | 50 +++++- .../drm/amd/display/dc/dcn35/dcn35_resource.h | 3 +- .../drm/amd/display/dc/dml/dcn35/dcn35_fpu.c | 47 ++++++ .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 1 + drivers/gpu/drm/amd/display/dc/link/Makefile | 4 +- .../display/dc/link/accessories/link_fpga.c | 95 ----------- .../display/dc/link/accessories/link_fpga.h | 30 ---- .../gpu/drm/amd/display/dc/link/link_dpms.c | 1 - .../drm/amd/display/dc/link/link_factory.c | 1 - .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 31 ++++ 32 files changed, 359 insertions(+), 391 deletions(-) delete mode 100644 drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.c delete mode 100644 drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.h
Signature · 1 line
2.40.1
PATCH 1/28 drm/amd/display: Add reset for SYMCLKC_FE_SRC_SEL
From: Taimur Hassan <[email protected]>
[Why & How]
To prevent confusion after symclk has already been disabled.
--- .../gpu/drm/amd/display/dc/dcn35/dcn35_dccg.c | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_dccg.c +15 -10
@@ -641,24 +641,29 @@ static void dccg35_disable_symclk_se(struct dccg *dccg, uint32_t stream_enc_instswitch (stream_enc_inst) {case 0 : -REG_UPDATE (SYMCLKA_CLOCK_ENABLE , -SYMCLKA_FE_EN ,0 ); +REG_UPDATE_2 (SYMCLKA_CLOCK_ENABLE , +SYMCLKA_FE_EN ,0 , +SYMCLKA_FE_SRC_SEL ,0 );break ;case 1 : -REG_UPDATE (SYMCLKB_CLOCK_ENABLE , -SYMCLKB_FE_EN ,0 ); +REG_UPDATE_2 (SYMCLKB_CLOCK_ENABLE , +SYMCLKB_FE_EN ,0 , +SYMCLKB_FE_SRC_SEL ,0 );break ;case 2 : -REG_UPDATE (SYMCLKC_CLOCK_ENABLE , -SYMCLKC_FE_EN ,0 ); +REG_UPDATE_2 (SYMCLKC_CLOCK_ENABLE , +SYMCLKC_FE_EN ,0 , +SYMCLKC_FE_SRC_SEL ,0 );break ;case 3 : -REG_UPDATE (SYMCLKD_CLOCK_ENABLE , -SYMCLKD_FE_EN ,0 ); +REG_UPDATE_2 (SYMCLKD_CLOCK_ENABLE , +SYMCLKD_FE_EN ,0 , +SYMCLKD_FE_SRC_SEL ,0 );break ;case 4 : -REG_UPDATE (SYMCLKE_CLOCK_ENABLE , -SYMCLKE_FE_EN ,0 ); +REG_UPDATE_2 (SYMCLKE_CLOCK_ENABLE , +SYMCLKE_FE_EN ,0 , +SYMCLKE_FE_SRC_SEL ,0 );break ; }
Signature · 1 line
2.40.1
PATCH 2/28 drm/amd/display: disable clock gating logic
In reply to Rodrigo SiqueiraFrom: Muhammad Ahmed <[email protected]>
Disable clock gating logic.
--- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hubbub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hubbub.c +2 -2
@@ -484,8 +484,8 @@ static void hubbub35_init(struct hubbub *hubbub)/*REG_UPDATE(DCFCLK_CNTL, DCFCLK_GATE_DIS, 0);*/ REG_UPDATE_2 (DCHUBBUB_CLOCK_CNTL , -DISPCLK_R_DCHUBBUB_GATE_DIS ,0 , -DCFCLK_R_DCHUBBUB_GATE_DIS ,0 ); +DISPCLK_R_DCHUBBUB_GATE_DIS ,1 , +DCFCLK_R_DCHUBBUB_GATE_DIS ,1 ); }hubbub35_set_fgcg (hubbub2, hubbub->ctx->dc->debug.enable_fine_grain_clock_gating
Signature · 1 line
2.40.1
PATCH 3/28 drm/amd/display: Temporarily disable clock gating
In reply to Rodrigo SiqueiraFrom: Charlene Liu <[email protected]>
Temporarily disable dchubbub clock gating, registers:
.DISPCLK_R_DCHUBBUB_GATE_DIS .DCFCLK_R_DCHUBBUB_GATE_DIS
need to follow up with sequence issue.
--- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c +1 -0
@@ -685,6 +685,7 @@ static const struct dc_debug_options debug_defaults_drv = { .disable_dcc = DCC_ENABLE, .disable_dpp_power_gate = true, .disable_hubp_power_gate = true, + .disable_clock_gate = true, .disable_dsc_power_gate = true, .vsr_support = true, .performance_trace = false,
Signature · 1 line
2.40.1
PATCH 4/28 drm/amd/display: Fix dig register undefined
In reply to Rodrigo SiqueiraFrom: Duncan Ma <[email protected]>
[Why]
Some of the stream encoder registers have register offset address 0. It is causing no display in some scenarios due to DIG_FE was not setup correctly and was not enabled.
[How]
Fix stream encoder register define list.
--- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c +1 -1
@@ -308,7 +308,7 @@ static const struct dcn31_apg_mask apg_mask = { };#define stream_enc_regs_init (id)\ - SE_DCN32_REG_LIST_RI(id) + SE_DCN35_REG_LIST_RI(id)static struct dcn10_stream_enc_registers stream_enc_regs[5 ];
Signature · 1 line
2.40.1
PATCH 5/28 drm/amd/display: Add z8_marks related in dml for DCN35
In reply to Rodrigo SiqueiraFrom: Charlene Liu <[email protected]>
Add z8 watermarks to struct for DCN35.
--- .../drm/amd/display/dc/dcn35/dcn35_hubbub.c | 34 +++++++++++++++++++ .../drm/amd/display/dc/dcn35/dcn35_resource.c | 3 +- 2 files changed, 36 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hubbub.c +34 -0
@@ -379,6 +379,17 @@ static void hubbub35_init_watermarks(struct hubbub *hubbub)REG_WRITE (DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_B , reg);REG_WRITE (DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_C , reg);REG_WRITE (DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_D , reg); + + reg =REG_READ (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_A ); +REG_WRITE (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_B , reg); +REG_WRITE (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_C , reg); +REG_WRITE (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_D , reg); + + reg =REG_READ (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_A ); +REG_WRITE (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_B , reg); +REG_WRITE (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_C , reg); +REG_WRITE (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D , reg); + } static void hubbub35_wm_read_state(struct hubbub *hubbub,
@@ -409,6 +420,11 @@ static void hubbub35_wm_read_state(struct hubbub *hubbub,REG_GET (DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_A ,DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_A , &s->fclk_pstate_change); +REG_GET (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_A , +DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_A , &s->sr_enter_exit_Z8); + +REG_GET (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_A , +DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_A , &s->sr_enter_Z8); s = &wm->sets[1 ]; s->wm_set =1 ; REG_GET(DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_B,
@@ -429,6 +445,12 @@ static void hubbub35_wm_read_state(struct hubbub *hubbub,REG_GET (DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_B ,DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_B , &s->fclk_pstate_change); +REG_GET (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_B , +DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_B , &s->sr_enter_exit_Z8); + +REG_GET (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_B , +DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_B , &s->sr_enter_Z8); + s = &wm->sets[2 ]; s->wm_set =2 ; REG_GET(DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_C,
@@ -449,6 +471,12 @@ static void hubbub35_wm_read_state(struct hubbub *hubbub,REG_GET (DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_C ,DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_C , &s->fclk_pstate_change); +REG_GET (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_C , +DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_C , &s->sr_enter_exit_Z8); + +REG_GET (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_C , +DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_C , &s->sr_enter_Z8); + s = &wm->sets[3 ]; s->wm_set =3 ; REG_GET(DCHUBBUB_ARB_DATA_URGENCY_WATERMARK_D,
@@ -468,6 +496,12 @@ static void hubbub35_wm_read_state(struct hubbub *hubbub,REG_GET (DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_D ,DCHUBBUB_ARB_FCLK_PSTATE_CHANGE_WATERMARK_D , &s->fclk_pstate_change); + +REG_GET (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D , +DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D , &s->sr_enter_exit_Z8); + +REG_GET (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_D , +DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_D , &s->sr_enter_Z8); }static void hubbub35_set_fgcg (struct dcn20_hubbub *hubbub2,bool enable)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c +2 -1
@@ -1677,6 +1677,7 @@ static bool dcn35_validate_bandwidth(struct dc *dc,return out; } +static struct resource_funcs dcn35_res_pool_funcs = { .destroy = dcn35_destroy_resource_pool, .link_enc_create = dcn35_link_encoder_create,
@@ -1685,7 +1686,7 @@ static struct resource_funcs dcn35_res_pool_funcs = { .link_enc_unassign = link_enc_cfg_link_enc_unassign, .panel_cntl_create = dcn31_panel_cntl_create, .validate_bandwidth = dcn35_validate_bandwidth, - .calculate_wm_and_dlg = dcn31_calculate_wm_and_dlg, + .calculate_wm_and_dlg = NULL, .update_soc_for_wm_a = dcn31_update_soc_for_wm_a, .populate_dml_pipes = dcn35_populate_dml_pipes_from_context_fpu, .acquire_free_pipe_as_secondary_dpp_pipe = dcn20_acquire_free_pipe_for_layer,
Signature · 1 line
2.40.1
PATCH 6/28 drm/amd/display: Add DCN35 case for dc_clk_mgr_create
In reply to Rodrigo SiqueiraFrom: Qingqing Zhuo <[email protected]>
Add DCN35 case for dc_clk_mgr_create.
--- drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c +13 -0
@@ -355,6 +355,19 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *p }break ; +case AMDGPU_FAMILY_GC_11_5_0 : { +struct clk_mgr_dcn35 *clk_mgr =kzalloc (sizeof (*clk_mgr),GFP_KERNEL ); + +if (clk_mgr ==NULL ) { +BREAK_TO_DEBUGGER (); +return NULL ; + } + +dcn35_clk_mgr_construct (ctx, clk_mgr, pp_smu, dccg); +return &clk_mgr->base.base; + } +break ; +#endif /* CONFIG_DRM_AMD_DC_FP - Family RV */ default :ASSERT (0 );/* Unknown Asic */
Signature · 1 line
2.40.1
PATCH 7/28 drm/amd/display: Enable DCLK_DS from driver by default
In reply to Rodrigo SiqueiraFrom: Muhammad Ahmed <[email protected]>
[Why]
pmfw ungate this feature, this can be enabled now
--- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_smu.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_smu.c +0 -3
@@ -230,9 +230,6 @@ int dcn35_smu_set_min_deep_sleep_dcfclk(struct clk_mgr_internal *clk_mgr, int re {int actual_min_ds_dcfclk_mhz =-1 ; -if (!clk_mgr->base.ctx->dc->debug.pstate_enabled) -return -1 ; -if (!clk_mgr->smu_present)return requested_min_ds_dcfclk_khz;
Signature · 1 line
2.40.1
PATCH 8/28 drm/amd/display: Add pointer check before function call
In reply to Rodrigo SiqueiraFrom: Sung Joon Kim <[email protected]>
[Why & How]
Call to immediate_disable_crtc was not checked before calling, exposing a potential null pointer hang. Fix it.
--- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c +3 -1
@@ -128,7 +128,9 @@ static void dcn35_disable_otg_wa(struct clk_mgr *clk_mgr_base, struct dc_state *if (stream_enc && stream_enc->funcs->disable_fifo) pipe->stream_res.stream_enc->funcs->disable_fifo (stream_enc); - pipe->stream_res.tg->funcs->immediate_disable_crtc (pipe->stream_res.tg); +if (pipe->stream_res.tg && pipe->stream_res.tg->funcs->immediate_disable_crtc) + pipe->stream_res.tg->funcs->immediate_disable_crtc (pipe->stream_res.tg); +reset_sync_context_for_pipe (dc, context, i); }else { pipe->stream_res.tg->funcs->enable_crtc (pipe->stream_res.tg);
Signature · 1 line
2.40.1
PATCH 9/28 drm/amd/display: fix static screen detection setting for DCN35
In reply to Rodrigo SiqueiraFrom: Sung-huai Wang <[email protected]>
[Why & How]set_static_screen_control has been updated for DCN3 series. Update it for DCN35.
--- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_init.c +1 -1
@@ -68,7 +68,7 @@ static const struct hw_sequencer_funcs dcn35_funcs = { .update_bandwidth = dcn20_update_bandwidth, .set_drr = dcn10_set_drr, .get_position = dcn10_get_position, - .set_static_screen_control = dcn10_set_static_screen_control, + .set_static_screen_control = dcn30_set_static_screen_control, .setup_stereo = dcn10_setup_stereo, .set_avmute = dcn30_set_avmute, .log_hw_state = dcn10_log_hw_state,
Signature · 1 line
2.40.1
PATCH 10/28 drm/amd/display: Add DPIA Link Encoder Assignment Fix for DCN35
In reply to Rodrigo SiqueiraFrom: Mustapha Ghaddar <[email protected]>
[HOW & WHY]
For DPIA we should have preferred DIG assignment based on DPIA selected as per the ASIC design
--- .../drm/amd/display/dc/dcn35/dcn35_resource.c | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c +23 -0
@@ -863,6 +863,28 @@ static const struct dce_i2c_mask i2c_masks = { I2C_COMMON_MASK_SH_LIST_DCN35(_MASK) }; +/* ========================================================== */ + +/* +* DPIA index | Preferred Encoder | Host Router +* 0 | C | 0 +* 1 | First Available | 0 +* 2 | D | 1 +* 3 | First Available | 1 +*/ +/* ========================================================== */ +static const enum engine_id dpia_to_preferred_enc_id_table[] = { +ENGINE_ID_DIGC , +ENGINE_ID_DIGC , +ENGINE_ID_DIGD , +ENGINE_ID_DIGD +}; + +static enum engine_id dcn35_get_preferred_eng_id_dpia (unsigned int dpia_index) +{ +return dpia_to_preferred_enc_id_table[dpia_index]; +} +static struct dce_i2c_hw *dcn31_i2c_hw_create (struct dc_context *ctx,uint32_t inst)
@@ -1701,6 +1723,7 @@ static struct resource_funcs dcn35_res_pool_funcs = { .update_bw_bounding_box = dcn35_update_bw_bounding_box_fpu, .patch_unknown_plane_state = dcn20_patch_unknown_plane_state, .get_panel_config_defaults = dcn35_get_panel_config_defaults, + .get_preferred_eng_id_dpia = dcn35_get_preferred_eng_id_dpia, }; static bool dcn35_resource_construct(
Signature · 1 line
2.40.1
PATCH 11/28 drm/amd/display: Update pipe resource interfaces for DCN35
In reply to Rodrigo SiqueiraFrom: Wenjing Liu <[email protected]>
Pipe resource interfaces were changed.
--- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c +1 -0
@@ -1712,6 +1712,7 @@ static struct resource_funcs dcn35_res_pool_funcs = { .update_soc_for_wm_a = dcn31_update_soc_for_wm_a, .populate_dml_pipes = dcn35_populate_dml_pipes_from_context_fpu, .acquire_free_pipe_as_secondary_dpp_pipe = dcn20_acquire_free_pipe_for_layer, + .release_pipe = dcn20_release_pipe, .add_stream_to_ctx = dcn30_add_stream_to_ctx, .add_dsc_to_stream_resource = dcn20_add_dsc_to_stream_resource, .remove_stream_from_ctx = dcn20_remove_stream_from_ctx,
Signature · 1 line
2.40.1
PATCH 12/28 drm/amd/display: STREAM_MAPPER_CONTROL register offset on DCN35
In reply to Rodrigo SiqueiraFrom: Artem Grishin <[email protected]>
[Why]
The STREAM_MAPPER_CONTROL register offset was left uninitialized, causing warning in the driver log at runtime
[How]
A temporary solution to add it into dcn35_create_resource_pool.
[TODO]
Remove duplication between SE_DCN35_REG_LIST_RI in dcn35_resource.h and SE_DCN35_REG_LIST in dcn35_dio_stream_encoder.h
--- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.h +2 -1
@@ -137,7 +137,8 @@ struct resource_pool *dcn35_create_resource_pool(SRI_ARR (DIG_FE_EN_CNTL ,DIG , id), \SRI_ARR (DIG_FE_CLK_CNTL ,DIG , id), \SRI_ARR (DIG_CLOCK_PATTERN ,DIG , id), \ - SRI_ARR(DIG_FIFO_CTRL0, DIG, id) +SRI_ARR (DIG_FIFO_CTRL0 ,DIG , id), \ + SRI_ARR(STREAM_MAPPER_CONTROL, DIG, id)#define LE_DCN35_REG_LIST_RI (id)\ LE_DCN3_REG_LIST_RI(id),\
Signature · 1 line
2.40.1
PATCH 13/28 drm/amd/display: Correct z8 watermark mask
In reply to Rodrigo SiqueiraFrom: Charlene Liu <[email protected]>
Correct z8_watermark mask from 16bit to 20bit. Also, do not set dcn35 dprefclk in clk_mgr_construct.
--- .../amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 2 -- .../gpu/drm/amd/display/dc/dcn35/dcn35_hubbub.c | 16 ++++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c +0 -2
@@ -930,8 +930,6 @@ void dcn35_clk_mgr_construct(/*when clk src is from FCH, it could have ss, same clock src as DPREF clk*/ dcn35_read_ss_info_from_lut (&clk_mgr->base); - clk_mgr->base.base.dprefclk_khz = -dce_adjust_dp_ref_freq_for_ss (&clk_mgr->base, clk_mgr->base.base.dprefclk_khz); clk_mgr->base.base.bw_params = &dcn35_bw_params;
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hubbub.c +8 -8
@@ -124,7 +124,7 @@ static bool hubbub35_program_stutter_z8_watermarks( watermarks->a.cstate_pstate.cstate_enter_plus_exit_z8_ns; prog_wm_value =convert_and_clamp ( watermarks->a.cstate_pstate.cstate_enter_plus_exit_z8_ns, - refclk_mhz,0xffff ); + refclk_mhz,0xfffff );REG_SET (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_A ,0 ,DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_A , prog_wm_value); DC_LOG_BANDWIDTH_CALCS("SR_ENTER_WATERMARK_Z8_A calculated =%d\n"
@@ -140,7 +140,7 @@ static bool hubbub35_program_stutter_z8_watermarks( watermarks->a.cstate_pstate.cstate_exit_z8_ns; prog_wm_value =convert_and_clamp ( watermarks->a.cstate_pstate.cstate_exit_z8_ns, - refclk_mhz,0xffff ); + refclk_mhz,0xfffff );REG_SET (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_A ,0 ,DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_A , prog_wm_value); DC_LOG_BANDWIDTH_CALCS("SR_EXIT_WATERMARK_Z8_A calculated =%d\n"
@@ -158,7 +158,7 @@ static bool hubbub35_program_stutter_z8_watermarks( watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns; prog_wm_value =convert_and_clamp ( watermarks->b.cstate_pstate.cstate_enter_plus_exit_z8_ns, - refclk_mhz,0xffff ); + refclk_mhz,0xfffff );REG_SET (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_B ,0 ,DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_B , prog_wm_value); DC_LOG_BANDWIDTH_CALCS("SR_ENTER_WATERMARK_Z8_B calculated =%d\n"
@@ -174,7 +174,7 @@ static bool hubbub35_program_stutter_z8_watermarks( watermarks->b.cstate_pstate.cstate_exit_z8_ns; prog_wm_value =convert_and_clamp ( watermarks->b.cstate_pstate.cstate_exit_z8_ns, - refclk_mhz,0xffff ); + refclk_mhz,0xfffff );REG_SET (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_B ,0 ,DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_B , prog_wm_value); DC_LOG_BANDWIDTH_CALCS("SR_EXIT_WATERMARK_Z8_B calculated =%d\n"
@@ -191,7 +191,7 @@ static bool hubbub35_program_stutter_z8_watermarks( watermarks->c.cstate_pstate.cstate_enter_plus_exit_z8_ns; prog_wm_value =convert_and_clamp ( watermarks->c.cstate_pstate.cstate_enter_plus_exit_z8_ns, - refclk_mhz,0xffff ); + refclk_mhz,0xfffff );REG_SET (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_C ,0 ,DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_C , prog_wm_value); DC_LOG_BANDWIDTH_CALCS("SR_ENTER_WATERMARK_Z8_C calculated =%d\n"
@@ -207,7 +207,7 @@ static bool hubbub35_program_stutter_z8_watermarks( watermarks->c.cstate_pstate.cstate_exit_z8_ns; prog_wm_value =convert_and_clamp ( watermarks->c.cstate_pstate.cstate_exit_z8_ns, - refclk_mhz,0xffff ); + refclk_mhz,0xfffff );REG_SET (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_C ,0 ,DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_C , prog_wm_value); DC_LOG_BANDWIDTH_CALCS("SR_EXIT_WATERMARK_Z8_C calculated =%d\n"
@@ -224,7 +224,7 @@ static bool hubbub35_program_stutter_z8_watermarks( watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns; prog_wm_value =convert_and_clamp ( watermarks->d.cstate_pstate.cstate_enter_plus_exit_z8_ns, - refclk_mhz,0xffff ); + refclk_mhz,0xfffff );REG_SET (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_D ,0 ,DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_D , prog_wm_value); DC_LOG_BANDWIDTH_CALCS("SR_ENTER_WATERMARK_Z8_D calculated =%d\n"
@@ -240,7 +240,7 @@ static bool hubbub35_program_stutter_z8_watermarks( watermarks->d.cstate_pstate.cstate_exit_z8_ns; prog_wm_value =convert_and_clamp ( watermarks->d.cstate_pstate.cstate_exit_z8_ns, - refclk_mhz,0xffff ); + refclk_mhz,0xfffff );REG_SET (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D ,0 ,DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D , prog_wm_value); DC_LOG_BANDWIDTH_CALCS("SR_EXIT_WATERMARK_Z8_D calculated =%d\n"
Signature · 1 line
2.40.1
PATCH 14/28 drm/amd/display: Update driver and IPS interop
In reply to Rodrigo SiqueiraFrom: Duncan Ma <[email protected]>
[Why]
Two issues fixed:
1. Currently, driver does not allow idle prior to PSR entry. Once PSR1+IPS is enabled, there is intermittent hang due to DCN access
from IrqMgr during IPS2.
2. Driver is sending multiple commands to PMFW and dmcub to exit IPS even during IPS0.
[How]
1. Set driver allow optimization prior to entering PSR mode with the condition for eDP display only. Unregister all interrupts before allowing driver idle and re-register interrupts when exiting from idle. This will prevent IrqMgr to access DCN during IPS2.
2. Block sending PMFW and dmcub exit low power state commands when driver is not in idle state.
--- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 4 ++++ drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hwseq.c | 2 ++ 2 files changed, 6 insertions(+)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c +4 -0
@@ -1110,6 +1110,10 @@ void dc_dmub_srv_exit_low_power_state(const struct dc *dc) {if (dc->debug.dmcub_emulation)return ; + +if (!dc->idle_optimizations_allowed) +return ; +// Tell PMFW to exit low power state if (dc->clk_mgr->funcs->exit_low_power_state) dc->clk_mgr->funcs->exit_low_power_state (dc->clk_mgr);
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hwseq.c +2 -0
@@ -651,6 +651,8 @@ bool dcn35_apply_idle_power_optimizations(struct dc *dc, bool enable)// Tell PMFW to exit low power state if (dc->clk_mgr->funcs->exit_low_power_state) dc->clk_mgr->funcs->exit_low_power_state (dc->clk_mgr); + +dc_dmub_srv_is_hw_pwr_up (dc->ctx->dmub_srv, true); }dc_dmub_srv_notify_idle (dc, enable);
Signature · 1 line
2.40.1
PATCH 15/28 drm/amd/display: Add IPS control flag
In reply to Rodrigo SiqueiraFrom: Sung Joon Kim <[email protected]>
[why]
Currently, driver is not aware if IPS is supported. After PMFW helps implement new message query functionality, driver will set IPS capability flag.
[how]
Create new SMU hook function to query IPS capability. Based on the cap, set appropriate flags to false for power-gating purposes. This will avoid keeping SMU busy and offloading tasks to DMUB/driver.
--- .../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 18 +++++++ .../amd/display/dc/clk_mgr/dcn35/dcn35_smu.c | 13 ++++- .../amd/display/dc/clk_mgr/dcn35/dcn35_smu.h | 1 + .../drm/amd/display/dc/dcn35/dcn35_pg_cntl.c | 53 +++++++------------ .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 1 + 5 files changed, 51 insertions(+), 35 deletions(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c +18 -0
@@ -747,6 +747,16 @@ static void dcn35_exit_low_power_state(struct clk_mgr *clk_mgr_base) } +static bool dcn35_is_ips_supported (struct clk_mgr *clk_mgr_base) +{ +struct clk_mgr_internal *clk_mgr =TO_CLK_MGR_INTERNAL (clk_mgr_base); +bool ips_supported = true; + + ips_supported =dcn35_smu_get_ips_supported (clk_mgr) ? true : false; + +return ips_supported; +} +static void dcn35_init_clocks_fpga (struct clk_mgr *clk_mgr) {dcn35_init_clocks (clk_mgr);
@@ -833,6 +843,7 @@ static struct clk_mgr_funcs dcn35_funcs = { .notify_wm_ranges = dcn35_notify_wm_ranges, .set_low_power_state = dcn35_set_low_power_state, .exit_low_power_state = dcn35_exit_low_power_state, + .is_ips_supported = dcn35_is_ips_supported, };struct clk_mgr_funcs dcn35_fpga_funcs = {
@@ -988,6 +999,13 @@ void dcn35_clk_mgr_construct(dm_helpers_free_gpu_mem (clk_mgr->base.base.ctx,DC_MEM_ALLOC_TYPE_FRAME_BUFFER , smu_dpm_clks.dpm_clks); +if (dcn35_smu_get_ips_supported (&clk_mgr->base)) { + ctx->dc->debug.ignore_pg = false; + ctx->dc->debug.dmcub_emulation = false; + ctx->dc->debug.disable_dpp_power_gate = false; + ctx->dc->debug.disable_hubp_power_gate = false; + ctx->dc->debug.disable_dsc_power_gate = false; + } }void dcn35_clk_mgr_destroy (struct clk_mgr_internal *clk_mgr_int)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_smu.c +12 -1
@@ -86,7 +86,10 @@#define VBIOSSMC_MSG_SetDtbClk 0x17#define VBIOSSMC_MSG_DispPsrEntry 0x18 ///< Display PSR entry, DMU#define VBIOSSMC_MSG_DispPsrExit 0x19 ///< Display PSR exit, DMU -#define VBIOSSMC_Message_Count 0x1A +#define VBIOSSMC_MSG_DisableLSdma 0x1A ///< Disable LSDMA; only sent by VBIOS +#define VBIOSSMC_MSG_DpControllerPhyStatus 0x1B ///< Inform PMFW about the pre conditions for turning SLDO2 on/off . bit[0]==1 precondition is met, bit[1-2] are for DPPHY number +#define VBIOSSMC_MSG_QueryIPS2Support 0x1C ///< Return 1: support; else not supported +#define VBIOSSMC_Message_Count 0x1D#define VBIOSSMC_Status_BUSY 0x0#define VBIOSSMC_Result_OK 0x1
@@ -448,3 +451,11 @@ void dcn35_smu_exit_low_power_state(struct clk_mgr_internal *clk_mgr) VBIOSSMC_MSG_DispPsrExit, 0); } + +int dcn35_smu_get_ips_supported (struct clk_mgr_internal *clk_mgr) +{ +return dcn35_smu_send_msg_with_param ( + clk_mgr, + VBIOSSMC_MSG_QueryIPS2Support, +0 ); +}
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_smu.h +1 -0
@@ -175,6 +175,7 @@ void dcn35_smu_set_dtbclk(struct clk_mgr_internal *clk_mgr, bool enable);void dcn35_vbios_smu_enable_48mhz_tmdp_refclk_pwrdwn (struct clk_mgr_internal *clk_mgr,bool enable);void dcn35_smu_exit_low_power_state (struct clk_mgr_internal *clk_mgr); +int dcn35_smu_get_ips_supported (struct clk_mgr_internal *clk_mgr);int dcn35_smu_get_dtbclk (struct clk_mgr_internal *clk_mgr);int dcn35_smu_get_dprefclk (struct clk_mgr_internal *clk_mgr);#endif /* DAL_DC_35_SMU_H_ */
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_pg_cntl.c +19 -34
131 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h +1 -0
@@ -261,6 +261,7 @@ struct clk_mgr_funcs {void (*set_low_power_state)(struct clk_mgr *clk_mgr);void (*exit_low_power_state)(struct clk_mgr *clk_mgr); +bool (*is_ips_supported)(struct clk_mgr *clk_mgr);void (*init_clocks)(struct clk_mgr *clk_mgr);
Signature · 1 line
2.40.1
PATCH 16/28 drm/amd/display: disable IPS
In reply to Rodrigo SiqueiraFrom: Muhammad Ahmed <[email protected]>
Disable IPS by default till it is ready.
--- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c +1 -0
@@ -749,6 +749,7 @@ static const struct dc_debug_options debug_defaults_drv = { .disable_mem_low_power = true, .ignore_pg = true, .psp_disabled_wa = true, + .disable_ips = true, };static const struct dc_panel_config panel_config_defaults = {
Signature · 1 line
2.40.1
PATCH 17/28 drm/amd/display: Add option to flip ODM optimization
In reply to Rodrigo SiqueiraFrom: Gabe Teeger <[email protected]>
[Why & How]
Add a config option to disable odm dispclk optimization for debug purpose.
--- drivers/gpu/drm/amd/display/dc/dc.h | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -420,6 +420,7 @@ struct dc_config {int sdpif_request_limit_words_per_umc;bool use_old_fixed_vs_sequence;bool dc_mode_clk_limit_support; +bool DisableMinDispClkODM;bool enable_auto_dpm_test_logs; };
Signature · 1 line
2.40.1
PATCH 18/28 drm/amd/display: Enable replay for dcn35
In reply to Rodrigo SiqueiraFrom: Roman Li <[email protected]>
[Why]
DCN35 supports replay.
[How]
Setup replay config for dcn35 on device init.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -0
@@ -4476,6 +4476,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)case IP_VERSION (3 ,1 ,6 ):case IP_VERSION (3 ,2 ,0 ):case IP_VERSION (3 ,2 ,1 ): +case IP_VERSION (3 ,5 ,0 ): replay_feature_enabled = true;break ;default :
Signature · 1 line
2.40.1
PATCH 19/28 drm/amd/display: fix some non-initialized register mask and setting
In reply to Rodrigo SiqueiraFrom: Charlene Liu <[email protected]>
[why]
fix some non-initialized register mask and update goldn setting
--- .../drm/amd/display/dc/dcn10/dcn10_hubbub.h | 8 +- .../drm/amd/display/dc/dcn35/dcn35_hubbub.c | 8 +- .../drm/amd/display/dc/dcn35/dcn35_hubbub.h | 9 +- .../gpu/drm/amd/display/dc/dcn35/dcn35_hubp.h | 4 +- .../gpu/drm/amd/display/dc/dcn35/dcn35_optc.h | 151 +----------------- .../drm/amd/display/dc/dcn35/dcn35_resource.c | 13 +- 6 files changed, 33 insertions(+), 160 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.h +5 -3
@@ -177,6 +177,7 @@ struct dcn_hubbub_registers {uint32_t DCHUBBUB_SDPIF_CFG1 ;uint32_t DCHUBBUB_CLOCK_CNTL ;uint32_t DCHUBBUB_MEM_PWR_MODE_CTRL ; +uint32_t DCHUBBUB_ARB_QOS_FORCE ; };#define HUBBUB_REG_FIELD_LIST_DCN32 (type) \
@@ -199,8 +200,9 @@ struct dcn_hubbub_registers {type MALL_PREFETCH_COMPLETE ;\ type MALL_IN_USE -#define HUBBUB_REG_FIELD_LIST_DCN35 (type) \ - type DCHUBBUB_FGCG_REP_DIS +#define HUBBUB_REG_FIELD_LIST_DCN35 (type) \ + type DCHUBBUB_FGCG_REP_DIS;\ + type DCHUBBUB_ARB_ALLOW_CSTATE_DEEPSLEEP_LEGACY_MODE/* set field name */ #define HUBBUB_SF (reg_name, field_name, post_fix)\
@@ -396,7 +398,7 @@ struct dcn_hubbub_mask {HUBBUB_HVM_REG_FIELD_LIST (uint32_t);HUBBUB_RET_REG_FIELD_LIST (uint32_t);HUBBUB_REG_FIELD_LIST_DCN32 (uint32_t); -HUBBUB_REG_FIELD_LIST_DCN35 (uint8_t); +HUBBUB_REG_FIELD_LIST_DCN35 (uint32_t); };struct dc ;
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hubbub.c +5 -3
@@ -66,7 +66,7 @@ static void dcn35_init_crb(struct hubbub *hubbub)REG_SET_2 (COMPBUF_RESERVED_SPACE ,0 ,COMPBUF_RESERVED_SPACE_64B , hubbub2->pixel_chunk_size /32 ,COMPBUF_RESERVED_SPACE_ZS , hubbub2->pixel_chunk_size /128 ); -REG_UPDATE (DCHUBBUB_DEBUG_CTRL_0 ,DET_DEPTH ,0x47F ); +REG_UPDATE (DCHUBBUB_DEBUG_CTRL_0 ,DET_DEPTH ,0x5FF ); }static void dcn35_program_compbuf_size (struct hubbub *hubbub,unsigned int compbuf_size_kb,bool safe_to_increase)
@@ -319,8 +319,10 @@ static bool hubbub35_program_watermarks(REG_SET (DCHUBBUB_ARB_SAT_LEVEL ,0 ,DCHUBBUB_ARB_SAT_LEVEL ,60 * refclk_mhz); -REG_UPDATE (DCHUBBUB_ARB_DF_REQ_OUTSTAND , -DCHUBBUB_ARB_MIN_REQ_OUTSTAND ,0xFF );/*hw delta*/ +REG_UPDATE_2 (DCHUBBUB_ARB_DF_REQ_OUTSTAND , +DCHUBBUB_ARB_MIN_REQ_OUTSTAND ,0xFF , +DCHUBBUB_ARB_MIN_REQ_OUTSTAND_COMMIT_THRESHOLD ,0xA );/*hw delta*/ +REG_UPDATE (DCHUBBUB_ARB_HOSTVM_CNTL ,DCHUBBUB_ARB_MAX_QOS_COMMIT_THRESHOLD ,0xF );hubbub1_allow_self_refresh_control (hubbub, !hubbub->ctx->dc->debug.disable_stutter);
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hubbub.h +7 -2
@@ -104,7 +104,9 @@SR (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_C ),\SR (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_C ),\SR (DCHUBBUB_ARB_ALLOW_SR_ENTER_WATERMARK_Z8_D ),\ - SR(DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D) +SR (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D ),\ + SR(DCHUBBUB_ARB_QOS_FORCE) +#define HUBBUB_MASK_SH_LIST_DCN35 (mask_sh)\ HUBBUB_MASK_SH_LIST_DCN32(mask_sh), \
@@ -135,7 +137,10 @@HUBBUB_SF (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_A ,DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_A , mask_sh), \HUBBUB_SF (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_B ,DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_B , mask_sh), \HUBBUB_SF (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_C ,DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_C , mask_sh), \ - HUBBUB_SF(DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D, DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D, mask_sh) +HUBBUB_SF (DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D ,DCHUBBUB_ARB_ALLOW_SR_EXIT_WATERMARK_Z8_D , mask_sh), \ +HUBBUB_SF (DCHUBBUB_ARB_DRAM_STATE_CNTL ,DCHUBBUB_ARB_ALLOW_CSTATE_DEEPSLEEP_LEGACY_MODE , mask_sh), \ +HUBBUB_SF (DCHUBBUB_ARB_HOSTVM_CNTL ,DCHUBBUB_ARB_MAX_QOS_COMMIT_THRESHOLD , mask_sh),\ + HUBBUB_SF(DCHUBBUB_ARB_DF_REQ_OUTSTAND, DCHUBBUB_ARB_MIN_REQ_OUTSTAND_COMMIT_THRESHOLD, mask_sh) void hubbub35_construct(struct dcn20_hubbub *hubbub2, struct dc_context *ctx,
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_hubp.h +2 -2
@@ -26,9 +26,9 @@#define __DC_HUBP_DCN35_H__#include "dcn31/dcn31_hubp.h" - +#include "dcn32/dcn32_hubp.h" #define HUBP_MASK_SH_LIST_DCN35 (mask_sh)\ - HUBP_MASK_SH_LIST_DCN31(mask_sh),\ + HUBP_MASK_SH_LIST_DCN32(mask_sh),\ HUBP_SF(HUBP0_HUBP_CLK_CNTL, HUBP_FGCG_REP_DIS, mask_sh)#define DCN35_HUBP_REG_FIELD_VARIABLE_LIST (type) \
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_optc.h +2 -149
171 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c +12 -1
@@ -579,6 +579,14 @@ static struct dce_hwseq_registers hwseq_reg; HWS_SF(, DOMAIN18_PG_CONFIG, DOMAIN_POWER_GATE, mask_sh), \ HWS_SF(, DOMAIN19_PG_CONFIG, DOMAIN_POWER_FORCEON, mask_sh), \ HWS_SF(, DOMAIN19_PG_CONFIG, DOMAIN_POWER_GATE, mask_sh), \ + HWS_SF(, DOMAIN22_PG_CONFIG, DOMAIN_POWER_FORCEON, mask_sh), \ + HWS_SF(, DOMAIN22_PG_CONFIG, DOMAIN_POWER_GATE, mask_sh), \ + HWS_SF(, DOMAIN23_PG_CONFIG, DOMAIN_POWER_FORCEON, mask_sh), \ + HWS_SF(, DOMAIN23_PG_CONFIG, DOMAIN_POWER_GATE, mask_sh), \ + HWS_SF(, DOMAIN24_PG_CONFIG, DOMAIN_POWER_FORCEON, mask_sh), \ + HWS_SF(, DOMAIN24_PG_CONFIG, DOMAIN_POWER_GATE, mask_sh), \ + HWS_SF(, DOMAIN25_PG_CONFIG, DOMAIN_POWER_FORCEON, mask_sh), \ + HWS_SF(, DOMAIN25_PG_CONFIG, DOMAIN_POWER_GATE, mask_sh), \ HWS_SF(, DOMAIN0_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ HWS_SF(, DOMAIN1_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ HWS_SF(, DOMAIN2_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \
@@ -587,6 +595,10 @@ static struct dce_hwseq_registers hwseq_reg; HWS_SF(, DOMAIN17_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ HWS_SF(, DOMAIN18_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ HWS_SF(, DOMAIN19_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ + HWS_SF(, DOMAIN22_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ + HWS_SF(, DOMAIN23_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ + HWS_SF(, DOMAIN24_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ + HWS_SF(, DOMAIN25_PG_STATUS, DOMAIN_PGFSM_PWR_STATUS, mask_sh), \ HWS_SF(, DC_IP_REQUEST_CNTL, IP_REQUEST_EN, mask_sh), \ HWS_SF(, AZALIA_AUDIO_DTO, AZALIA_AUDIO_DTO_MODULE, mask_sh), \ HWS_SF(, HPO_TOP_CLOCK_CONTROL, HPO_HDMISTREAMCLK_G_GATE_DIS, mask_sh), \
@@ -1834,7 +1846,6 @@ static bool dcn35_resource_construct(/* Use pipe context based otg sync logic */ dc->config.use_pipe_ctx_sync_logic = true; -/* read VBIOS LTTPR caps */ {if (ctx->dc_bios->funcs->get_lttpr_caps) {
Signature · 1 line
2.40.1
PATCH 20/28 drm/amd/display: Fix MST recognizes connected displays as one
In reply to Rodrigo SiqueiraFrom: Muhammad Ahmed <[email protected]>
[What]
MST now recognizes both connected displays
--- .../gpu/drm/amd/display/dc/dcn35/dcn35_dccg.c | 95 +++++++++++++++---- .../drm/amd/display/dc/dcn35/dcn35_resource.c | 4 - 2 files changed, 74 insertions(+), 25 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_dccg.c +74 -21
@@ -635,8 +635,55 @@ static void dccg35_enable_symclk_se(struct dccg *dccg, uint32_t stream_enc_inst, } } +/*get other front end connected to this backend*/ +static uint8_t dccg35_get_other_enabled_symclk_fe (struct dccg *dccg,uint32_t stream_enc_inst,uint32_t link_enc_inst) +{ +uint8_t num_enabled_symclk_fe =0 ; +uint32_t be_clk_en =0 , fe_clk_en[5 ] = {0 }, be_clk_sel[5 ] = {0 }; +struct dcn_dccg *dccg_dcn =TO_DCN_DCCG (dccg); + +switch (link_enc_inst) { +case 0 : +REG_GET_3 (SYMCLKA_CLOCK_ENABLE ,SYMCLKA_CLOCK_ENABLE , &be_clk_en, +SYMCLKA_FE_EN , &fe_clk_en[0 ], +SYMCLKA_FE_SRC_SEL , &be_clk_sel[0 ]); +break ; +case 1 : +REG_GET_3 (SYMCLKB_CLOCK_ENABLE ,SYMCLKB_CLOCK_ENABLE , &be_clk_en, +SYMCLKB_FE_EN , &fe_clk_en[1 ], +SYMCLKB_FE_SRC_SEL , &be_clk_sel[1 ]); +break ; +case 2 : +REG_GET_3 (SYMCLKC_CLOCK_ENABLE ,SYMCLKC_CLOCK_ENABLE , &be_clk_en, +SYMCLKC_FE_EN , &fe_clk_en[2 ], +SYMCLKC_FE_SRC_SEL , &be_clk_sel[2 ]); +break ; +case 3 : +REG_GET_3 (SYMCLKD_CLOCK_ENABLE ,SYMCLKD_CLOCK_ENABLE , &be_clk_en, +SYMCLKD_FE_EN , &fe_clk_en[3 ], +SYMCLKD_FE_SRC_SEL , &be_clk_sel[3 ]); +break ; +case 4 : +REG_GET_3 (SYMCLKE_CLOCK_ENABLE ,SYMCLKE_CLOCK_ENABLE , &be_clk_en, +SYMCLKE_FE_EN , &fe_clk_en[4 ], +SYMCLKE_FE_SRC_SEL , &be_clk_sel[4 ]); +break ; + } +if (be_clk_en) { +/* for DPMST, this backend could be used by multiple front end. +only disable the backend if this stream_enc_ins is the last active stream enc connected to this back_end*/ +uint8_t i; +for (i =0 ; i != link_enc_inst && i <sizeof (fe_clk_en); i++) { +if (fe_clk_en[i] && be_clk_sel[i] == link_enc_inst) + num_enabled_symclk_fe++; + } + } +return num_enabled_symclk_fe; +} +static void dccg35_disable_symclk_se (struct dccg *dccg,uint32_t stream_enc_inst,uint32_t link_enc_inst) { +uint8_t num_enabled_symclk_fe =0 ;struct dcn_dccg *dccg_dcn =TO_DCN_DCCG (dccg);switch (stream_enc_inst) {
@@ -667,27 +714,33 @@ static void dccg35_disable_symclk_se(struct dccg *dccg, uint32_t stream_enc_instbreak ; } -switch (link_enc_inst) { -case 0 : -REG_UPDATE (SYMCLKA_CLOCK_ENABLE , -SYMCLKA_CLOCK_ENABLE ,0 ); -break ; -case 1 : -REG_UPDATE (SYMCLKB_CLOCK_ENABLE , -SYMCLKB_CLOCK_ENABLE ,0 ); -break ; -case 2 : -REG_UPDATE (SYMCLKC_CLOCK_ENABLE , -SYMCLKC_CLOCK_ENABLE ,0 ); -break ; -case 3 : -REG_UPDATE (SYMCLKD_CLOCK_ENABLE , -SYMCLKD_CLOCK_ENABLE ,0 ); -break ; -case 4 : -REG_UPDATE (SYMCLKE_CLOCK_ENABLE , -SYMCLKE_CLOCK_ENABLE ,0 ); -break ; +/*check other enabled symclk fe */ + num_enabled_symclk_fe =dccg35_get_other_enabled_symclk_fe (dccg, stream_enc_inst, link_enc_inst); +/*only turn off backend clk if other front end attachecd to this backend are all off, +for mst, only turn off the backend if this is the last front end*/ +if (num_enabled_symclk_fe ==0 ) { +switch (link_enc_inst) { +case 0 : +REG_UPDATE (SYMCLKA_CLOCK_ENABLE , +SYMCLKA_CLOCK_ENABLE ,0 ); +break ; +case 1 : +REG_UPDATE (SYMCLKB_CLOCK_ENABLE , +SYMCLKB_CLOCK_ENABLE ,0 ); +break ; +case 2 : +REG_UPDATE (SYMCLKC_CLOCK_ENABLE , +SYMCLKC_CLOCK_ENABLE ,0 ); +break ; +case 3 : +REG_UPDATE (SYMCLKD_CLOCK_ENABLE , +SYMCLKD_CLOCK_ENABLE ,0 ); +break ; +case 4 : +REG_UPDATE (SYMCLKE_CLOCK_ENABLE , +SYMCLKE_CLOCK_ENABLE ,0 ); +break ; + } } }
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c +0 -4
@@ -751,14 +751,10 @@ static const struct dc_debug_options debug_defaults_drv = { .disable_unbounded_requesting = false, .disable_mem_low_power = true, .enable_hpo_pg_support = false, -//must match enable_single_display_2to1_odm_policy to support dynamic ODM transitions .enable_double_buffered_dsc_pg_support = false, .enable_dp_dig_pixel_rate_div_policy = 1, - .disable_stutter = true, - .disable_idle_power_optimizations = true, .disable_z10 = false, - .disable_mem_low_power = true, .ignore_pg = true, .psp_disabled_wa = true, .disable_ips = true,
Signature · 1 line
2.40.1
PATCH 21/28 drm/amd/display: [FW Promotion] Release 0.0.183.0
In reply to Rodrigo SiqueiraFrom: Anthony Koo <[email protected]>
- Add new IPS ALLOW masks
- Add new Replay power configuration options
--- .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+)
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h +31 -0
@@ -596,6 +596,11 @@ enum dmub_ips_disable_type { DMUB_IPS_DISABLE_IPS2_Z10 = 3, }; +#define DMUB_IPS1_ALLOW_MASK 0x00000001 +#define DMUB_IPS2_ALLOW_MASK 0x00000002 +#define DMUB_IPS1_COMMIT_MASK 0x00000004 +#define DMUB_IPS2_COMMIT_MASK 0x00000008 +/** * union dmub_fw_boot_options - Boot option definitions for SCRATCH14 */
@@ -2786,6 +2791,10 @@ enum dmub_cmd_replay_type {* Set coasting vtotal. */ DMUB_CMD__REPLAY_SET_COASTING_VTOTAL =3 , +/** +* Set power opt and coasting vtotal. +*/ + DMUB_CMD__REPLAY_SET_POWER_OPT_AND_COASTING_VTOTAL = 4, };/**
@@ -2996,6 +3005,24 @@ struct dmub_rb_cmd_replay_set_coasting_vtotal {struct dmub_cmd_replay_set_coasting_vtotal_data replay_set_coasting_vtotal_data; }; +/** +* Definition of a DMUB_CMD__REPLAY_SET_POWER_OPT_AND_COASTING_VTOTAL command. +*/ +struct dmub_rb_cmd_replay_set_power_opt_and_coasting_vtotal { +/** +* Command header. +*/ +struct dmub_cmd_header header; +/** +* Definition of a DMUB_CMD__SET_REPLAY_POWER_OPT command. +*/ +struct dmub_cmd_replay_set_power_opt_data replay_set_power_opt_data; +/** +* Definition of a DMUB_CMD__REPLAY_SET_COASTING_VTOTAL command. +*/ +struct dmub_cmd_replay_set_coasting_vtotal_data replay_set_coasting_vtotal_data; +}; +/** * Definition of a DMUB_CMD__SET_PSR_POWER_OPT command. */
@@ -4138,6 +4165,10 @@ union dmub_rb_cmd {* Definition of a DMUB_CMD__REPLAY_SET_COASTING_VTOTAL command. */ struct dmub_rb_cmd_replay_set_coasting_vtotal replay_set_coasting_vtotal; +/** +* Definition of a DMUB_CMD__REPLAY_SET_POWER_OPT_AND_COASTING_VTOTAL command. +*/ +struct dmub_rb_cmd_replay_set_power_opt_and_coasting_vtotal replay_set_power_opt_and_coasting_vtotal; };/**
Signature · 1 line
2.40.1
PATCH 22/28 drm/amd/display: 3.2.251
In reply to Rodrigo SiqueiraFrom: 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.250" +#define DC_VER "3.2.251"#define MAX_SURFACES 3#define MAX_PLANES 6
Signature · 1 line
2.40.1
PATCH 23/28 drm/amd/display: Optimize OLED T7 delay
In reply to Rodrigo SiqueiraFrom: Agustin Gutierrez <[email protected]>
[Why]
Driver doesn't need T7 delay for OLED panels, since it doesn't control power sequence.
[How]
This delay can be skipped to optimize resume times.
--- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2 -1
@@ -1041,7 +1041,8 @@ void dce110_edp_backlight_control(link_transmitter_control (ctx->dc_bios, &cntl); -if (enable && link->dpcd_sink_ext_caps.bits.oled) { +if (enable && link->dpcd_sink_ext_caps.bits.oled && + !link->dc->config.edp_no_power_sequencing) { post_T7_delay += link->panel_config.pps.extra_post_t7_ms;msleep (post_T7_delay); }
Signature · 1 line
2.40.1
PATCH 24/28 drm/amd/display: Use optc32 instead of optc30 in DC
In reply to Rodrigo SiqueiraFrom: Ovidiu Bunea <[email protected]>
Change DC to use optc32, which uses REG_UPDATE instead of REG_SET. REG_SET clears OTG_H_TIMING_DIV_MODE_MANUAL which must be set to 1 for FRL DSC.
--- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c | 2 +- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.h | 2 ++ drivers/gpu/drm/amd/display/dc/dcn35/dcn35_optc.c | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c +1 -1
@@ -207,7 +207,7 @@ void optc3_set_odm_bypass(struct timing_generator *optc, ); h_div =optc1_is_two_pixels_per_containter (dc_crtc_timing); -REG_SET (OTG_H_TIMING_CNTL ,0 , +REG_UPDATE (OTG_H_TIMING_CNTL ,OTG_H_TIMING_DIV_MODE , h_div); REG_SET(OPTC_MEMORY_CONFIG, 0,
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c +1 -1
@@ -201,7 +201,7 @@ static void optc32_disable_phantom_otg(struct timing_generator *optc)REG_UPDATE (OTG_CONTROL ,OTG_MASTER_EN ,0 ); } -static void optc32_set_odm_bypass (struct timing_generator *optc, +void optc32_set_odm_bypass (struct timing_generator *optc,const struct dc_crtc_timing *dc_crtc_timing) {struct optc *optc1 =DCN10TG_FROM_TG (optc);
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.h +2 -0
@@ -181,5 +181,7 @@void dcn32_timing_generator_init (struct optc *optc1);void optc32_set_h_timing_div_manual_mode (struct timing_generator *optc,bool manual_mode);void optc32_get_odm_combine_segments (struct timing_generator *tg,int *odm_combine_segments); +void optc32_set_odm_bypass (struct timing_generator *optc, +const struct dc_crtc_timing *dc_crtc_timing);#endif /* __DC_OPTC_DCN32_H__ */
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_optc.c +1 -1
@@ -249,7 +249,7 @@ static struct timing_generator_funcs dcn35_tg_funcs = { .set_dsc_config = optc3_set_dsc_config, .get_dsc_status = optc2_get_dsc_status, .set_dwb_source = NULL, - .set_odm_bypass = optc3_set_odm_bypass, + .set_odm_bypass = optc32_set_odm_bypass, .set_odm_combine = optc35_set_odm_combine, .get_optc_source = optc2_get_optc_source, .set_h_timing_div_manual_mode = optc32_set_h_timing_div_manual_mode,
Signature · 1 line
2.40.1
PATCH 25/28 drm/amd/display: Expand DML to better support replay
In reply to Rodrigo SiqueiraFrom: Muhammad Ahmed <[email protected]>
Update with extended blank Vstartup adjustment for replay.
--- .../drm/amd/display/dc/dml/dcn35/dcn35_fpu.c | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+)
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c +47 -0
@@ -29,6 +29,7 @@#include "dcn32/dcn32_resource.h" #include "dcn35/dcn35_resource.h" #include "dml/dcn31/dcn31_fpu.h" +#include "dml/dml_inline_defs.h" #include "link.h"
@@ -358,6 +359,36 @@ static bool is_dual_plane(enum surface_pixel_format format) format ==SURFACE_PIXEL_FORMAT_GRPH_RGBE_ALPHA ; } +/* +* micro_sec_to_vert_lines () - converts time to number of vertical lines for a given timing +* +* @param: num_us: number of microseconds +* @return: number of vertical lines. If exact number of vertical lines is not found then +* it will round up to next number of lines to guarantee num_us +*/ +static unsigned int micro_sec_to_vert_lines (unsigned int num_us,struct dc_crtc_timing *timing) +{ +unsigned int num_lines =0 ; +unsigned int lines_time_in_ns =1000.0 * + (((float )timing->h_total *1000.0 ) / + ((float )timing->pix_clk_100hz /10.0 )); + + num_lines =dml_ceil (1000.0 * num_us / lines_time_in_ns,1.0 ); + +return num_lines; +} + +static unsigned int get_vertical_back_porch (struct dc_crtc_timing *timing) +{ +unsigned int v_active =0 , v_blank =0 , v_back_porch =0 ; + + v_active = timing->v_border_top + timing->v_addressable + timing->v_border_bottom; + v_blank = timing->v_total - v_active; + v_back_porch = v_blank - timing->v_front_porch - timing->v_sync_width; + +return v_back_porch; +} + int dcn35_populate_dml_pipes_from_context_fpu(struct dc *dc, struct dc_state *context, display_e2e_pipe_params_st *pipes,
@@ -367,12 +398,15 @@ int dcn35_populate_dml_pipes_from_context_fpu(struct dc *dc,struct resource_context *res_ctx = &context->res_ctx;struct pipe_ctx *pipe;bool upscaled = false; +const unsigned int max_allowed_vblank_nom =1023 ;dcn31_populate_dml_pipes_from_context (dc, context, pipes, fast_validate);for (i =0 , pipe_cnt =0 ; i < dc->res_pool->pipe_count; i++) {struct dc_crtc_timing *timing; +unsigned int num_lines =0 ; +unsigned int v_back_porch =0 ;if (!res_ctx->pipe_ctx[i].stream)continue ;
@@ -380,6 +414,9 @@ int dcn35_populate_dml_pipes_from_context_fpu(struct dc *dc, pipe = &res_ctx->pipe_ctx[i]; timing = &pipe->stream->timing; + num_lines =micro_sec_to_vert_lines (dcn3_5_ip.VBlankNomDefaultUS, timing); + v_back_porch =get_vertical_back_porch (timing); +if (pipe->stream->adjust.v_total_max == pipe->stream->adjust.v_total_min && pipe->stream->adjust.v_total_min > timing->v_total) {
@@ -389,6 +426,16 @@ int dcn35_populate_dml_pipes_from_context_fpu(struct dc *dc, pipes[pipe_cnt].pipe.dest.vactive; } + pipes[pipe_cnt].pipe.dest.vblank_nom = timing->v_total - pipes[pipe_cnt].pipe.dest.vactive; + pipes[pipe_cnt].pipe.dest.vblank_nom =min (pipes[pipe_cnt].pipe.dest.vblank_nom, num_lines); +// vblank_nom should not smaller than (VSync (timing->v_sync_width + v_back_porch) + 2) +// + 2 is because +// 1 -> VStartup_start should be 1 line before VSync +// 1 -> always reserve 1 line between start of vblank to vstartup signal + pipes[pipe_cnt].pipe.dest.vblank_nom = +max (pipes[pipe_cnt].pipe.dest.vblank_nom, timing->v_sync_width + v_back_porch +2 ); + pipes[pipe_cnt].pipe.dest.vblank_nom =min (pipes[pipe_cnt].pipe.dest.vblank_nom, max_allowed_vblank_nom); + if (pipe->plane_state && (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height ||
Signature · 1 line
2.40.1
PATCH 26/28 drm/amd/display: Enable DCN low mem power by default
In reply to Rodrigo SiqueiraFrom: Muhammad Ahmed <[email protected]>
Enable DCN low mem power by default.
--- drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn35/dcn35_resource.c +1 -1
@@ -749,7 +749,7 @@ static const struct dc_debug_options debug_defaults_drv = { .dmcub_emulation = false, .disable_boot_optimizations = false, .disable_unbounded_requesting = false, - .disable_mem_low_power = true, + .disable_mem_low_power = false, .enable_hpo_pg_support = false,//must match enable_single_display_2to1_odm_policy to support dynamic ODM transitions .enable_double_buffered_dsc_pg_support = false,
Signature · 1 line
2.40.1
PATCH 27/28 drm/amd/display: Drop unused code
In reply to Rodrigo SiqueiraThere are multiple parts of the code that DC does not use anymore, and this commit drops those dead codes.
--- .../drm/amd/display/dc/bios/bios_parser2.c | 9 -- drivers/gpu/drm/amd/display/dc/link/Makefile | 4 +- .../display/dc/link/accessories/link_fpga.c | 95 ------------------- .../display/dc/link/accessories/link_fpga.h | 30 ------ .../gpu/drm/amd/display/dc/link/link_dpms.c | 1 - .../drm/amd/display/dc/link/link_factory.c | 1 - 6 files changed, 2 insertions(+), 138 deletions(-) delete mode 100644 drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.c delete mode 100644 drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.h
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +0 -9
@@ -1723,15 +1723,6 @@ static void bios_parser_set_scratch_critical_state(bios_set_scratch_critical_state (dcb, state); } -struct atom_dig_transmitter_info_header_v5_3 { -struct atom_common_table_header table_header; -uint16_t dpphy_hdmi_settings_offset; -uint16_t dpphy_dvi_settings_offset; -uint16_t dpphy_dp_setting_table_offset; -uint16_t uniphy_xbar_settings_v2_table_offset; -uint16_t dpphy_internal_reg_overide_offset; -}; -static enum bp_result bios_parser_get_firmware_info (struct dc_bios *dcb,struct dc_firmware_info *info)
drivers/gpu/drm/amd/display/dc/link/Makefile +2 -2
@@ -33,7 +33,7 @@ AMD_DISPLAY_FILES += $(AMD_DAL_LINK) ############################################################################### # accessories ############################################################################### -LINK_ACCESSORIES = link_dp_trace.o link_dp_cts.o link_fpga.o +LINK_ACCESSORIES = link_dp_trace.o link_dp_cts.o AMD_DAL_LINK_ACCESSORIES = $(addprefix $(AMDDALPATH)/dc/link/accessories/, \ $(LINK_ACCESSORIES))
@@ -61,4 +61,4 @@ link_edp_panel_control.o link_dp_irq_handler.o link_dp_dpia_bw.o AMD_DAL_LINK_PROTOCOLS = $(addprefix $(AMDDALPATH)/dc/link/protocols/, \ $(LINK_PROTOCOLS)) -AMD_DISPLAY_FILES += $(AMD_DAL_LINK_PROTOCOLS) +AMD_DISPLAY_FILES += $(AMD_DAL_LINK_PROTOCOLS)
drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.c deleted +0 -95
95 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.h deleted +0 -30
@@ -1,30 +0,0 @@ -/* -* Copyright 2023 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. -* -* Authors: AMD -* -*/ -#ifndef __LINK_FPGA_H__ -#define __LINK_FPGA_H__ -#include "link.h" -void dp_fpga_hpo_enable_link_and_stream (struct dc_state *state, -struct pipe_ctx *pipe_ctx); -#endif /* __LINK_FPGA_H__ */
drivers/gpu/drm/amd/display/dc/link/link_dpms.c +0 -1
@@ -38,7 +38,6 @@#include "link_dpms.h" #include "link_hwss.h" #include "link_validation.h" -#include "accessories/link_fpga.h" #include "accessories/link_dp_trace.h" #include "protocols/link_dpcd.h" #include "protocols/link_ddc.h"
drivers/gpu/drm/amd/display/dc/link/link_factory.c +0 -1
@@ -33,7 +33,6 @@#include "link_dpms.h" #include "accessories/link_dp_cts.h" #include "accessories/link_dp_trace.h" -#include "accessories/link_fpga.h" #include "protocols/link_ddc.h" #include "protocols/link_dp_capability.h" #include "protocols/link_dp_dpia_bw.h"
Signature · 1 line
2.40.1
Re: [PATCH 27/28] drm/amd/display: Drop unused code
Quoted 4 lines · Rodrigo Siqueira
There are multiple parts of the code that DC does not use anymore, and this commit drops those dead codes.
Signed-off-by Rodrigo Siqueira <[email protected]>
The commit title is a bit non-descript. I think something like "drop unused link_fpga.c" would be better.
Either way this is
Harry
Quoted 212 lines
--- .../drm/amd/display/dc/bios/bios_parser2.c | 9 -- drivers/gpu/drm/amd/display/dc/link/Makefile | 4 +- .../display/dc/link/accessories/link_fpga.c | 95 ------------------- .../display/dc/link/accessories/link_fpga.h | 30 ------ .../gpu/drm/amd/display/dc/link/link_dpms.c | 1 - .../drm/amd/display/dc/link/link_factory.c | 1 - 6 files changed, 2 insertions(+), 138 deletions(-) delete mode 100644 drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.c delete mode 100644 drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.hdrivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +0
-9@@ -1723,15 +1723,6 @@ static void bios_parser_set_scratch_critical_state(bios_set_scratch_critical_state (dcb, state); } -struct atom_dig_transmitter_info_header_v5_3 { -struct atom_common_table_header table_header; -uint16_t dpphy_hdmi_settings_offset; -uint16_t dpphy_dvi_settings_offset; -uint16_t dpphy_dp_setting_table_offset; -uint16_t uniphy_xbar_settings_v2_table_offset; -uint16_t dpphy_internal_reg_overide_offset; -}; -static enum bp_result bios_parser_get_firmware_info (struct dc_bios *dcb,struct dc_firmware_info *info)drivers/gpu/drm/amd/display/dc/link/Makefile +2
-2@@ -33,7 +33,7 @@ AMD_DISPLAY_FILES += $(AMD_DAL_LINK) ############################################################################### # accessories ############################################################################### -LINK_ACCESSORIES = link_dp_trace.o link_dp_cts.o link_fpga.o +LINK_ACCESSORIES = link_dp_trace.o link_dp_cts.o AMD_DAL_LINK_ACCESSORIES = $(addprefix $(AMDDALPATH)/dc/link/accessories/, \ $(LINK_ACCESSORIES))@@ -61,4 +61,4 @@ link_edp_panel_control.o link_dp_irq_handler.o link_dp_dpia_bw.o AMD_DAL_LINK_PROTOCOLS = $(addprefix $(AMDDALPATH)/dc/link/protocols/, \ $(LINK_PROTOCOLS)) -AMD_DISPLAY_FILES += $(AMD_DAL_LINK_PROTOCOLS) +AMD_DISPLAY_FILES += $(AMD_DAL_LINK_PROTOCOLS)drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.c deleted +0
-95@@ -1,95 +0,0 @@ -/* -* Copyright 2023 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. -* -* Authors: AMD -* -*/ -#include "link_fpga.h" -#include "link/link_dpms.h" -#include "dm_helpers.h" -#include "link_hwss.h" -#include "dccg.h" -#include "resource.h" - -#define DC_LOGGER_INIT (logger) - -void dp_fpga_hpo_enable_link_and_stream (struct dc_state *state,struct pipe_ctx *pipe_ctx) -{ -struct dc *dc = pipe_ctx->stream->ctx->dc; -struct dc_stream_state *stream = pipe_ctx->stream; -struct link_mst_stream_allocation_table proposed_table = {0 }; -struct fixed31_32 avg_time_slots_per_mtp; -uint8_t req_slot_count =0 ; -uint8_t vc_id =1 ;/// VC ID always 1 for SST -struct dc_link_settings link_settings = pipe_ctx->link_config.dp_link_settings; -const struct link_hwss *link_hwss =get_link_hwss (stream->link, &pipe_ctx->link_res); -DC_LOGGER_INIT (pipe_ctx->stream->ctx->logger); - - stream->link->cur_link_settings = link_settings; - -if (link_hwss->ext.enable_dp_link_output) - link_hwss->ext.enable_dp_link_output (stream->link, &pipe_ctx->link_res, - stream->signal, pipe_ctx->clock_source->id, - &link_settings); - -/* Enable DP_STREAM_ENC */ - dc->hwss.enable_stream (pipe_ctx); - -/* Set DPS PPS SDP (AKA "info frames") */ -if (pipe_ctx->stream->timing.flags.DSC) { -link_set_dsc_pps_packet (pipe_ctx, true, true); - } - -/* Allocate Payload */ -if ((stream->signal ==SIGNAL_TYPE_DISPLAY_PORT_MST ) && (state->stream_count >1 )) { -// MST case -uint8_t i; - - proposed_table.stream_count = state->stream_count; -for (i =0 ; i < state->stream_count; i++) { - avg_time_slots_per_mtp =link_calculate_sst_avg_time_slots_per_mtp (state->streams[i], state->streams[i]->link); - req_slot_count =dc_fixpt_ceil (avg_time_slots_per_mtp); - proposed_table.stream_allocations[i].slot_count = req_slot_count; - proposed_table.stream_allocations[i].vcp_id = i+1 ; -/* NOTE: This makes assumption that pipe_ctx index is same as stream index */ - proposed_table.stream_allocations[i].hpo_dp_stream_enc = state->res_ctx.pipe_ctx[i].stream_res.hpo_dp_stream_enc; - } - }else { -// SST case - avg_time_slots_per_mtp =link_calculate_sst_avg_time_slots_per_mtp (stream, stream->link); - req_slot_count =dc_fixpt_ceil (avg_time_slots_per_mtp); - proposed_table.stream_count =1 ;/// Always 1 stream for SST - proposed_table.stream_allocations[0 ].slot_count = req_slot_count; - proposed_table.stream_allocations[0 ].vcp_id = vc_id; - proposed_table.stream_allocations[0 ].hpo_dp_stream_enc = pipe_ctx->stream_res.hpo_dp_stream_enc; - } - - link_hwss->ext.update_stream_allocation_table (stream->link, - &pipe_ctx->link_res, - &proposed_table); - -if (link_hwss->ext.set_throttled_vcp_size) - link_hwss->ext.set_throttled_vcp_size (pipe_ctx, avg_time_slots_per_mtp); - - dc->hwss.unblank_stream (pipe_ctx, &stream->link->cur_link_settings); - dc->hwss.enable_audio_stream (pipe_ctx); -} -drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.h deleted +0
-30@@ -1,30 +0,0 @@ -/* -* Copyright 2023 Advanced Micro Devices, Inc. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR -* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -* OTHER DEALINGS IN THE SOFTWARE. -* -* Authors: AMD -* -*/ -#ifndef __LINK_FPGA_H__ -#define __LINK_FPGA_H__ -#include "link.h" -void dp_fpga_hpo_enable_link_and_stream (struct dc_state *state, -struct pipe_ctx *pipe_ctx); -#endif /* __LINK_FPGA_H__ */ drivers/gpu/drm/amd/display/dc/link/link_dpms.c +0
-1@@ -38,7 +38,6 @@#include "link_dpms.h" #include "link_hwss.h" #include "link_validation.h" -#include "accessories/link_fpga.h" #include "accessories/link_dp_trace.h" #include "protocols/link_dpcd.h" #include "protocols/link_ddc.h" drivers/gpu/drm/amd/display/dc/link/link_factory.c +0
-1@@ -33,7 +33,6 @@#include "link_dpms.h" #include "accessories/link_dp_cts.h" #include "accessories/link_dp_trace.h" -#include "accessories/link_fpga.h" #include "protocols/link_ddc.h" #include "protocols/link_dp_capability.h" #include "protocols/link_dp_dpia_bw.h"
PATCH 28/28 drm/amd/display: 3.2.252
In reply to Rodrigo SiqueiraFrom: Aric Cyr <[email protected]>
This version brings along the following:
- Use optc32 instead of optc30 in DC
- Optimize OLED T7 delay
- Multiple fixes for MST, register mas, and others
- Update driver and IPS interop
- Improve z8 watermark mask
- DCN35 updates
- Enable replay for DCN35
- Temporarily disable clock gating
--- 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.251" +#define DC_VER "3.2.252"#define MAX_SURFACES 3#define MAX_PLANES 6
Signature · 1 line
2.40.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 - b5ce5056952786df17c852f154c92085ebac76d8 drm/amd/display: add skip_implict_edp_power_control flag for dcn32) with new patches added on top of it.
Tested on Ubuntu 22.04.3, on Wayland and X11, using Gnome for both.
Thank you,
Dan Wheeler
Sr. Technologist | AMD
SW Display
------------------------------------------------------------------------------------------------------------------
1 Commerce Valley Dr E, Thornhill, ON L3T 7X6
amd.com
-----Original Message-----
From: Siqueira, Rodrigo <[email protected]>
Sent: Wednesday, September 13, 2023 10:00 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]>; Li, Roman <[email protected]>; Lin, Wayne <[email protected]>; Wang, Chao-kai (Stylon) <[email protected]>; Chiu, Solomon <[email protected]>; Kotarac, Pavle <[email protected]>; Gutierrez, Agustin <[email protected]>; Wheeler, Daniel <[email protected]>
Subject: [PATCH 00/28] DC Patches September 13, 2020
This DC patchset brings improvements in multiple areas. In summary, we highlight:
- Use optc32 instead of optc30 in DC
- Optimize OLED T7 delay
- Multiple fixes for MST, register mas, and others
- Update driver and IPS interop
- Improve z8 watermark mask
- DCN35 updates
- Enable replay for DCN35
- Temporarily disable clock gating
Thanks
Siqueira
Agustin Gutierrez (1):
drm/amd/display: Optimize OLED T7 delay
Anthony Koo (1):
drm/amd/display: [FW Promotion] Release 0.0.183.0
Aric Cyr (2):
drm/amd/display: 3.2.251
drm/amd/display: 3.2.252
Artem Grishin (1):
drm/amd/display: STREAM_MAPPER_CONTROL register offset on DCN35
Charlene Liu (4):
drm/amd/display: Temporarily disable clock gating drm/amd/display: Add z8_marks related in dml for DCN35 drm/amd/display: Correct z8 watermark mask drm/amd/display: fix some non-initialized register mask and setting
Duncan Ma (2):
drm/amd/display: Fix dig register undefined
drm/amd/display: Update driver and IPS interop
Gabe Teeger (1):
drm/amd/display: Add option to flip ODM optimization
Muhammad Ahmed (6):
drm/amd/display: disable clock gating logic drm/amd/display: Enable DCLK_DS from driver by default drm/amd/display: disable IPS
drm/amd/display: Fix MST recognizes connected displays as one drm/amd/display: Expand DML to better support replay drm/amd/display: Enable DCN low mem power by default
Mustapha Ghaddar (1):
drm/amd/display: Add DPIA Link Encoder Assignment Fix for DCN35
Ovidiu Bunea (1):
drm/amd/display: Use optc32 instead of optc30 in DC
Qingqing Zhuo (1):
drm/amd/display: Add DCN35 case for dc_clk_mgr_create
Rodrigo Siqueira (1):
drm/amd/display: Drop unused code
Roman Li (1):
drm/amd/display: Enable replay for dcn35
Sung Joon Kim (2):
drm/amd/display: Add pointer check before function call drm/amd/display: Add IPS control flag
Sung-huai Wang (1):
drm/amd/display: fix static screen detection setting for DCN35
Taimur Hassan (1):
drm/amd/display: Add reset for SYMCLKC_FE_SRC_SEL
Wenjing Liu (1):
drm/amd/display: Update pipe resource interfaces for DCN35
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + .../drm/amd/display/dc/bios/bios_parser2.c | 9 -- .../gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 13 ++ .../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 24 ++- .../amd/display/dc/clk_mgr/dcn35/dcn35_smu.c | 16 +- .../amd/display/dc/clk_mgr/dcn35/dcn35_smu.h | 1 + drivers/gpu/drm/amd/display/dc/dc.h | 3 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 4 + .../display/dc/dce110/dce110_hw_sequencer.c | 3 +- .../drm/amd/display/dc/dcn10/dcn10_hubbub.h | 8 +- .../gpu/drm/amd/display/dc/dcn30/dcn30_optc.c | 2 +- .../gpu/drm/amd/display/dc/dcn32/dcn32_optc.c | 2 +- .../gpu/drm/amd/display/dc/dcn32/dcn32_optc.h | 2 + .../gpu/drm/amd/display/dc/dcn35/dcn35_dccg.c | 114 +++++++++---- .../drm/amd/display/dc/dcn35/dcn35_hubbub.c | 62 +++++-- .../drm/amd/display/dc/dcn35/dcn35_hubbub.h | 9 +- .../gpu/drm/amd/display/dc/dcn35/dcn35_hubp.h | 4 +- .../drm/amd/display/dc/dcn35/dcn35_hwseq.c | 2 + .../gpu/drm/amd/display/dc/dcn35/dcn35_init.c | 2 +- .../gpu/drm/amd/display/dc/dcn35/dcn35_optc.c | 2 +- .../gpu/drm/amd/display/dc/dcn35/dcn35_optc.h | 151 +----------------- .../drm/amd/display/dc/dcn35/dcn35_pg_cntl.c | 53 +++--- .../drm/amd/display/dc/dcn35/dcn35_resource.c | 50 +++++- .../drm/amd/display/dc/dcn35/dcn35_resource.h | 3 +- .../drm/amd/display/dc/dml/dcn35/dcn35_fpu.c | 47 ++++++ .../gpu/drm/amd/display/dc/inc/hw/clk_mgr.h | 1 + drivers/gpu/drm/amd/display/dc/link/Makefile | 4 +- .../display/dc/link/accessories/link_fpga.c | 95 ----------- .../display/dc/link/accessories/link_fpga.h | 30 ---- .../gpu/drm/amd/display/dc/link/link_dpms.c | 1 - .../drm/amd/display/dc/link/link_factory.c | 1 - .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 31 ++++ 32 files changed, 359 insertions(+), 391 deletions(-) delete mode 100644 drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.c delete mode 100644 drivers/gpu/drm/amd/display/dc/link/accessories/link_fpga.h
--
2.40.1