diff options
| author | Alvin Lee <Alvin.Lee2@amd.com> | 2026-09-17 10:11:38 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-10-01 11:32:44 -0400 |
| commit | 162fac7a8eed99dc93b063c7a76a96997dfd4ec3 (patch) | |
| tree | c7ad2c56ebb8f3343f0bfb7c9fd9609566c2408f /drivers | |
| parent | a66c8a344234d65563d204b7d2bda7c7ac62fee2 (diff) | |
| download | linux-next-162fac7a8eed99dc93b063c7a76a96997dfd4ec3.tar.gz linux-next-162fac7a8eed99dc93b063c7a76a96997dfd4ec3.zip | |
drm/amd/display: Add temporary programming for port control in dc_init
[Description]
Add the POR setting for SDP_PORT_CONTROL into dc init sequence.
This is temporary until the initialization moves into pre-OS DMCUB.
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com>
Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/hubbub/dcn60/dcn60_hubbub.c | 8 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/hwss/dcn60/dcn60_hwseq.c | 5 | ||||
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/hubbub/dcn60/dcn60_hubbub.c b/drivers/gpu/drm/amd/display/dc/hubbub/dcn60/dcn60_hubbub.c index 639c71cf1123..843a0da4bdd7 100644 --- a/drivers/gpu/drm/amd/display/dc/hubbub/dcn60/dcn60_hubbub.c +++ b/drivers/gpu/drm/amd/display/dc/hubbub/dcn60/dcn60_hubbub.c @@ -1905,6 +1905,13 @@ static void hubbub60_override_utm_client_qc_profile(struct hubbub *hubbub, uint8 } } +static void hubbub60_set_sdpif_port_control(struct hubbub *hubbub, bool ignore_cstate_req) +{ + struct dcn20_hubbub *hubbub2 = TO_DCN20_HUBBUB(hubbub); + + REG_UPDATE(DCHUBBUB_SDPIF_CFG0, SDPIF_PORT_CONTROL, ignore_cstate_req); +} + static const struct hubbub_funcs hubbub60_funcs = { .update_dchub = hubbub2_update_dchub, .init_dchub_sys_ctx = hubbub60_init_dchub_sys_ctx, @@ -1970,6 +1977,7 @@ static const struct hubbub_funcs hubbub60_funcs = { .reset_display_qos_profile = hubbub60_reset_display_qos_profile, }, + .set_sdpif_port_control = hubbub60_set_sdpif_port_control, }; void hubbub60_construct(struct dcn20_hubbub *hubbub2, diff --git a/drivers/gpu/drm/amd/display/dc/hwss/dcn60/dcn60_hwseq.c b/drivers/gpu/drm/amd/display/dc/hwss/dcn60/dcn60_hwseq.c index ef1c10bc9bfa..d515b9cbc934 100644 --- a/drivers/gpu/drm/amd/display/dc/hwss/dcn60/dcn60_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/hwss/dcn60/dcn60_hwseq.c @@ -885,6 +885,11 @@ void dcn60_init_hw(struct dc *dc) dc->res_pool->hubbub->funcs->override_utm_client_qc_profile(dc->res_pool->hubbub, dc->debug.utm_client_qc_profiles[1], 1); dc->res_pool->hubbub->funcs->override_utm_client_qc_profile(dc->res_pool->hubbub, dc->debug.utm_client_qc_profiles[2], 2); } + /* Temporary init for SDP port control in driver. + * Remove once programming is in pre-OS DMU init. + */ + if (dc->res_pool->hubbub->funcs->set_sdpif_port_control) + dc->res_pool->hubbub->funcs->set_sdpif_port_control(dc->res_pool->hubbub, false); // Get DMCUB capabilities if (dc->ctx->dmub_srv) { diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h b/drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h index 8d1024a875a7..d68232f10f3e 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h @@ -226,6 +226,8 @@ struct hubbub_funcs { void (*hubbub_read_reg_state)(struct hubbub *hubbub, struct dcn_hubbub_reg_state *hubbub_reg_state); + void (*set_sdpif_port_control)(struct hubbub *hubbub, bool ignore_cstate_req); + /** * @program_det_size: * |
