diff options
author | Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> | 2016-11-09 05:41:51 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 17:10:03 -0400 |
commit | 858058da47a557b6c0211830d530045c1c8e62ab (patch) | |
tree | 6f39503e681bc5c592363f758ccfc67e82d622c6 | |
parent | 721d30cf8363247c0c6cb44514e88a5811151c01 (diff) | |
download | linux-stable-858058da47a557b6c0211830d530045c1c8e62ab.tar.gz linux-stable-858058da47a557b6c0211830d530045c1c8e62ab.tar.bz2 linux-stable-858058da47a557b6c0211830d530045c1c8e62ab.zip |
drm/amd/display: Use pflip prepare and submit parts (v2)
Use new functions so flip failures can be gracefully handled
v2:
Avoid -EINVAL returned from amdgpu_crtc_prepare_flip in some
error cases, it is not allowed according to expected
return values for atomic_commit hook.
Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 c32fc6d26088..ad08d6f7f094 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 @@ -2267,7 +2267,6 @@ int amdgpu_dm_atomic_commit( uint32_t flip_crtcs_count = 0; struct drm_crtc *crtc; struct drm_crtc_state *old_crtc_state; - const struct dc_stream *commit_streams[MAX_STREAMS]; struct amdgpu_crtc *new_crtcs[MAX_STREAMS]; const struct dc_stream *new_stream; |