drm/amd/display: Fix tiled display misalignment
authorMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Thu, 9 Nov 2023 05:04:36 +0000 (00:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Nov 2023 21:49:00 +0000 (16:49 -0500)
[Why]
When otg workaround is applied during clock update, otgs of
tiled display went out of sync.

[How]
To call dc_trigger_sync() after clock update to sync otgs again.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 76b47f17812797b95f0bf3fe5ef5ed966cbcacc3..eab713c0da0d787ca3ebb210a2405c3d28bb6ab0 100644 (file)
@@ -1964,6 +1964,10 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c
                wait_for_no_pipes_pending(dc, context);
                /* pplib is notified if disp_num changed */
                dc->hwss.optimize_bandwidth(dc, context);
+               /* Need to do otg sync again as otg could be out of sync due to otg
+                * workaround applied during clock update
+                */
+               dc_trigger_sync(dc, context);
        }
 
        if (dc->hwss.update_dsc_pg)