OSDN Git Service

drm/amd/display: Disable phantom OTG after enable for plane disable
authorAlvin Lee <Alvin.Lee2@amd.com>
Thu, 27 Oct 2022 14:51:15 +0000 (10:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Nov 2022 22:25:45 +0000 (17:25 -0500)
commitdc55b106ad477c67f969f3432d9070c6846fb557
tree352a7b12f18fdc2ef6edb41e10f7108c78184170
parent9e7d03e8b046c84e1b2973a29cd800495a5a2f09
drm/amd/display: Disable phantom OTG after enable for plane disable

[Description]
- Need to disable phantom OTG after it's enabled
  in order to restore it to it's original state.
- If it's enabled and then an MCLK switch comes in
  we may not prefetch the correct data since the phantom
  OTG could already be in the middle of the frame.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@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
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c
drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h