]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Disable phantom OTG after enable for plane disable
authorAlvin Lee <Alvin.Lee2@amd.com>
Fri, 11 Aug 2023 21:07:05 +0000 (16:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2023 16:27:23 +0000 (18:27 +0200)
commite61f0ad73668912feef345e35beeefcce5bbbd63
treecba21d87e55f2b0f3237b8363cb021b39da232a8
parent9caac2a9f69f58bed2ba35845a13fa7039d2e1d2
drm/amd/display: Disable phantom OTG after enable for plane disable

commit dc55b106ad477c67f969f3432d9070c6846fb557 upstream

[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>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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