]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Clean up wait on vblank event
authorDavid Francis <David.Francis@amd.com>
Fri, 1 Mar 2019 23:15:26 +0000 (18:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Mar 2019 20:09:33 +0000 (15:09 -0500)
commit65f3f829dd5c930204e6e379f6eac1356d49318f
tree31d2789d1d3948cc7254d181bbfd17da561736b1
parentf4ac54ceb38eafa8654a03e17046cc338b193f05
drm/amd/display: Clean up wait on vblank event

[Why]
The wait_for_vblank boolean in commit_tail was passed by reference
into each stream commit, and if that commit was an asynchronous
flip, it would disable vblank waits on all subsequent flips.

This made the behaviour depend on crtc order in a non-intuitive way,
although since the asynchronous pageflip flag is only used by the
legacy IOCTLs at the moment it is never an issue

[How]
Find wait_for_vblank before doing any stream commits

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c