drm/amd/display: Fix garbage or black screen when resetting otg
authorZhongwei <Zhongwei.Zhang@amd.com>
Wed, 18 Sep 2024 06:43:49 +0000 (14:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:11:42 +0000 (14:11 -0400)
commitffa1e31f70d2e97c121709b44a8960f5d7becb10
tree191fcf10de339f6f365de33881008bcf5b7afa73
parent608c50afa1bebb1d21859bd45e602a5ed9e1802d
drm/amd/display: Fix garbage or black screen when resetting otg

[Why]
For some EDP to MIPI panel, disabling OTG when link is alive like boot
case, the converter might output garbage or show no display because our
GPU is not sending required pixel data.
Alos Dig fifo underflow was found which might cause garbage, when
resetting otg for other types of EDP panels.

[How]
Skipping resetting OTG if the dig fifo is on. Make sure that the otg for
the pipe is the one that the dig fifo is selecting via the FE mask.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Zhongwei <Zhongwei.Zhang@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@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/dio/dcn314/dcn314_dio_stream_encoder.c
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c