]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Set flip pending for pipe split
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Wed, 6 Feb 2019 18:19:08 +0000 (13:19 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Mar 2019 20:09:33 +0000 (15:09 -0500)
commitf4ac54ceb38eafa8654a03e17046cc338b193f05
treeb9381864cfd4fccffd93e019de90688c30a79ad0
parentae85d5cfa590c1034dc735acc39a54d23eb8cbd2
drm/amd/display: Set flip pending for pipe split

[WHY]
When doing split pipe, if one pipe is pending on flip, the entire
plane's status should be flip pending, otherwise corruption can occur
when OS writes to a surface prematurely.

[HOW]
Clear the flip pending bit before checking pipes, then OR the flip
pending bits from all pipes together to create the flip pending status
of the entire plane.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Eryk Brol <Eryk.Brol@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_surface.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c