]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: wait vblank when stream enabled and update dpp clock
authorLewis Huang <Lewis.Huang@amd.com>
Fri, 26 Mar 2021 08:12:45 +0000 (16:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:32:05 +0000 (16:32 -0400)
commit359967748d141ce7c42d3031a5f95d0b2a96bd23
tree1dfff2b6600c80650f8992611a30ab56a477e870
parent8ed1e957b68a53134c1c3a64820e2085f4a06ac1
drm/amd/display: wait vblank when stream enabled and update dpp clock

[Why]
When boot into OS, seamless boot device won't blank stream.
Driver update dpp clock when scanline position in vactive will show
garbage on screen.

[How]
Wait for vblank for seamless boot edp display when driver update dpp clock.
The apply seamless boot flag will be clear when OS call SetVisibility on.
Therefore we only wait for vblank once after boot into OS.

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Acked-by: Bindu Ramamurthy <bindur12@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/clk_mgr/dcn21/rn_clk_mgr.c
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h