summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-08-17 04:14:38 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-08-17 04:14:38 +0000
commitc1cc8705e43dbb76413e4b5698840f0923c2552e (patch)
treebe7cf312385f304f13dd438b1e3a6223a5c0eba2 /sys
parentb129a2786bf732bc13f885e6cf24be2386619360 (diff)
drm/amd/display: trigger timing sync only if TG is running
From Aurabindo Pillai b61a06eca15cc4fd6ff50540ba3bbdea76e52c6b in linux-6.1.y/6.1.46 6066aaf74f510fc171dbe9375153aee2d60d37aa in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
index a6fde27d134..39402711896 100644
--- a/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+++ b/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
@@ -2284,6 +2284,12 @@ void dcn10_enable_timing_synchronization(
opp = grouped_pipes[i]->stream_res.opp;
tg = grouped_pipes[i]->stream_res.tg;
tg->funcs->get_otg_active_size(tg, &width, &height);
+
+ if (!tg->funcs->is_tg_enabled(tg)) {
+ DC_SYNC_INFO("Skipping timing sync on disabled OTG\n");
+ return;
+ }
+
if (opp->funcs->opp_program_dpg_dimensions)
opp->funcs->opp_program_dpg_dimensions(opp, width, 2*(height) + 1);
}