]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Adjust dto fix coverage
authorAusef Yousof <Ausef.Yousof@amd.com>
Thu, 29 May 2025 22:22:21 +0000 (18:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 16:19:17 +0000 (12:19 -0400)
[WHY & HOW]
Unnecessary to affect legacy APU's dto src sel during dpms behaviour

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Signed-off-by: Ausef Yousof <Ausef.Yousof@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c

index a9a3001109c35efe38df9ef8ef0a58bbd6134b13..c717cc1eca6de71a0957e5e9eda27278dc599b20 100644 (file)
@@ -1186,7 +1186,7 @@ void dce110_disable_stream(struct pipe_ctx *pipe_ctx)
                if (dccg) {
                        dccg->funcs->disable_symclk32_se(dccg, dp_hpo_inst);
                        dccg->funcs->set_dpstreamclk(dccg, REFCLK, tg->inst, dp_hpo_inst);
-                       if (dc->ctx->dce_version == DCN_VERSION_3_15) {
+                       if (!(dc->ctx->dce_version >= DCN_VERSION_3_5)) {
                                if (dccg && dccg->funcs->set_dtbclk_dto)
                                        dccg->funcs->set_dtbclk_dto(dccg, &dto_params);
                        }
index bc06b7b3d67d905aac31fd35c4b5488dcb2336af..6a00f0984ce183cc618b3e18dac85f8b8635f7bc 100644 (file)
@@ -2871,7 +2871,7 @@ void dcn20_reset_back_end_for_pipe(
                        link->phy_state.symclk_state = SYMCLK_OFF_TX_OFF;
                }
                if (dc->link_srv->dp_is_128b_132b_signal(pipe_ctx) && dccg
-                       && dc->ctx->dce_version != DCN_VERSION_3_15) {
+                       && dc->ctx->dce_version >= DCN_VERSION_3_5) {
                        dto_params.otg_inst = pipe_ctx->stream_res.tg->inst;
                        dto_params.timing = &pipe_ctx->stream->timing;
                        if (dccg && dccg->funcs->set_dtbclk_dto)