[PATCH 25/81] drm/amd/display: Remove unblanaced drm_vblank_put.
sunpeng.li at amd.com
sunpeng.li at amd.com
Tue Jul 25 13:53:45 UTC 2017
From: Andrey Grodzovsky <Andrey.Grodzovsky at amd.com>
Since drm_vblank_get moved from this function to just
before do_flip no need to release vblank here in case of error.
Change-Id: Iedc900618da2a0c940f49fe63299c6ae3eec260d
Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky at amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c | 3 +--
1 file changed, 1 insertion(+), 2 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 fb5afba..ed48c5e 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
@@ -1016,8 +1016,7 @@ static int amdgpu_atomic_helper_page_flip(struct drm_crtc *crtc,
if (ret == -EDEADLK)
goto backoff;
- if (ret)
- drm_crtc_vblank_put(crtc);
+ drm_atomic_state_put(state);
return ret;
backoff:
--
2.7.4
More information about the amd-gfx
mailing list