From: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Date: Wed, 17 May 2017 22:05:36 +0000 (-0400)
Subject: drm/amd/display: Add missed wait_for_prev_commits.
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7b9454f51ec1e04f7842a9412df568f98371b01c;p=linux.git

drm/amd/display: Add missed wait_for_prev_commits.

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>
---

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
index d6ea2d5726ddb..b76f0f7e55947 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
@@ -3111,6 +3111,7 @@ int amdgpu_dm_atomic_check(struct drm_device *dev,
 							surface);
 
 				need_to_validate = true;
+				wait_for_prev_commits = true;
 			}
 		}
 	}