drm/amd/display: Handle commit plane with no FB.
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Wed, 7 Jun 2017 22:28:43 +0000 (18:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:08:02 +0000 (18:08 -0400)
commit1159898a88db33877bd8378714c6f647afab7f9b
treeeb88c1d63568be542a118080bfcc8ac833da72d4
parent70470154104e935eed36478169550eda577dcdb3
drm/amd/display: Handle commit plane with no FB.

1) Always call flip ISR, for any surface comit, not only for page flip.

2) For events not signaled in flip ISR, handle them in end of commit_tail.

3)Fix race condition between subsequent atomic calls by removing
  current state access AFTER drm_atomic_helper_commit_hw_done
  was called. After this call a pending next commit will
  swap in his own state into objects and proceed.

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c