diff options
author | Rob Clark <robdclark@gmail.com> | 2017-05-21 12:05:07 -0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-05-27 13:48:27 -0400 |
commit | adcbae310f9ed84ef139e3fa6d7a7743d96c44c8 (patch) | |
tree | 3d3c38b6762dfbfbdace942c0769725743a05c45 /drivers/gpu | |
parent | 3c30cc41a87880db86c343b8c9cc8bc2d3d36055 (diff) | |
download | linux-adcbae310f9ed84ef139e3fa6d7a7743d96c44c8.tar.gz linux-adcbae310f9ed84ef139e3fa6d7a7743d96c44c8.tar.bz2 linux-adcbae310f9ed84ef139e3fa6d7a7743d96c44c8.zip |
drm/msm/mdp5: release hwpipe(s) for unused planes
Otherwise, if userspace doesn't re-use a given plane, it's hwpipe(s)
could stay permanently assigned.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c index 30b4691f7b0d..7d3741215387 100644 --- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c +++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c @@ -445,6 +445,10 @@ static int mdp5_plane_atomic_check_with_state(struct drm_crtc_state *crtc_state, mdp5_pipe_release(state->state, old_hwpipe); mdp5_pipe_release(state->state, old_right_hwpipe); } + } else { + mdp5_pipe_release(state->state, mdp5_state->hwpipe); + mdp5_pipe_release(state->state, mdp5_state->r_hwpipe); + mdp5_state->hwpipe = mdp5_state->r_hwpipe = NULL; } return 0; |