drm/amd/display: enable DPG when disabling plane for phantom pipe
authorSamson Tam <samson.tam@amd.com>
Fri, 27 Jan 2023 23:30:08 +0000 (18:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Feb 2023 19:30:55 +0000 (14:30 -0500)
commitf3f8f16b10f8258f1836e1110099097490a1d6c1
tree92fba82cdcb494dce336e100c458bb64c0e76d0a
parentb5fefd01e8367763840e032bf1537747905a1447
drm/amd/display: enable DPG when disabling plane for phantom pipe

[Why]
In disable_dangling_plane, for phantom pipes, we enable OTG so
disable programming gets the double buffer update.  But this
causes an underflow to occur.

[How]
Enable DPG prior to enabling OTG.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Samson Tam <samson.tam@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/core/dc.c