Skip to content

Commit 6066aaf

Browse files
Aurabindo Pillaialexdeucher
authored andcommitted
drm/amd/display: trigger timing sync only if TG is running
[Why&How] If the timing generator isnt running, it does not make sense to trigger a sync on the corresponding OTG. Check this condition before starting. Otherwise, this will cause error like: *ERROR* GSL: Timeout on reset trigger! Fixes: dc55b10 ("drm/amd/display: Disable phantom OTG after enable for plane disable") Signed-off-by: Aurabindo Pillai <[email protected]> Reviewed-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 25b2483 commit 6066aaf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,6 +2252,12 @@ void dcn10_enable_timing_synchronization(
22522252
opp = grouped_pipes[i]->stream_res.opp;
22532253
tg = grouped_pipes[i]->stream_res.tg;
22542254
tg->funcs->get_otg_active_size(tg, &width, &height);
2255+
2256+
if (!tg->funcs->is_tg_enabled(tg)) {
2257+
DC_SYNC_INFO("Skipping timing sync on disabled OTG\n");
2258+
return;
2259+
}
2260+
22552261
if (opp->funcs->opp_program_dpg_dimensions)
22562262
opp->funcs->opp_program_dpg_dimensions(opp, width, 2*(height) + 1);
22572263
}

0 commit comments

Comments
 (0)