OSDN Git Service

drm/amd/display: Disable plane right after disconnected
authorYongqiang Sun <yongqiang.sun@amd.com>
Fri, 17 Nov 2017 15:44:15 +0000 (10:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 15:53:32 +0000 (10:53 -0500)
commit8e504bccc11663c3b334ef1a7698e18a967de920
tree860bc596e978d917e5e0369f672d0a8f00f612c8
parent9168a586e865083646e737a19ab38db8f1dcff3e
drm/amd/display: Disable plane right after disconnected

HDR display playing video underflow is observed when switching
to full screen due to program a lower watermark right after unlock otg.

Instead of disable plane in next flip coming, if there is a
plane disconnected, after otg unlock wait for mpcc idle and disable
the plane, then program watermark. So there is enough warter mark to make
sure current frame data pass through.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c