]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:44 +0000 (20:03 +0100)
commitb33f6e83921f1a7fa547758e291260049f92b65d
tree932479d177faa505bb18dd9307d05a7a13e12d1c
parent9921e7879be9fef8ccd1d700b049f48c04adf470
drm/amd/display: Fix garbage or black screen when resetting otg

[ Upstream commit ffa1e31f70d2e97c121709b44a8960f5d7becb10 ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dio/dcn314/dcn314_dio_stream_encoder.c
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c