]> www.infradead.org Git - nvme.git/commitdiff
drm/amd/display: replace CRTC disable function call
authorXi (Alex) Liu <xi.liu@amd.com>
Wed, 12 Jun 2024 16:45:19 +0000 (12:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Jul 2024 20:10:35 +0000 (16:10 -0400)
[Why]

In OTG disable workarund, CRTC is disabled immediately
to improve performance, but this may cause timing issue
in DP HPO encoder FIFO and result in blank CRCs.

[How]

Replace the immediate CRTC disable call with normal disable call

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Xi (Alex) Liu <xi.liu@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/clk_mgr/dcn35/dcn35_clk_mgr.c

index 5691714f738d3e78c019c4cd9e026077368ae098..70ee0089a20dfe48fca1aa72eeeeee541f7636ca 100644 (file)
@@ -137,8 +137,8 @@ static void dcn35_disable_otg_wa(struct clk_mgr *clk_mgr_base, struct dc_state *
                if (pipe->stream && (pipe->stream->dpms_off || dc_is_virtual_signal(pipe->stream->signal) ||
                                     !pipe->stream->link_enc)) {
                        if (disable) {
-                               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);
+                               if (pipe->stream_res.tg && pipe->stream_res.tg->funcs->disable_crtc)
+                                       pipe->stream_res.tg->funcs->disable_crtc(pipe->stream_res.tg);
 
                                reset_sync_context_for_pipe(dc, context, i);
                        } else {