diff options
| author | Ujwal Patel <ujwalp@codeaurora.org> | 2015-04-21 09:01:02 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:40:36 -0700 |
| commit | 3574b6767f782845f7e44108face9600f42dcff8 (patch) | |
| tree | c94450a82e0153cf22dea027adb52179c5dd930a /drivers/video/fbdev | |
| parent | 28587990fdf68af8dfd3068ce0d46f09cb8caeea (diff) | |
msm: mdss: fix layer skipping due to dirty pipe
Pipe is marked dirty if it was newly allocated during validate. This
prevents unintentional staging for dirty pipes to HW. However when
the same pipe is used again with good configuration, dirty flag should
be reset. This is missing and leads to skipping of certain layers and
flooding of error logs. Fix this by resting dirty flag when pipe is
successfully validated.
Change-Id: I2d64ecbaaa8968ee7322270c93f5bf5c3e5c90e9
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_layer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_layer.c b/drivers/video/fbdev/msm/mdss_mdp_layer.c index 9ff8ba872f9a..17d6bc7499e9 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_layer.c +++ b/drivers/video/fbdev/msm/mdss_mdp_layer.c @@ -873,8 +873,10 @@ static struct mdss_mdp_pipe *__assign_pipe_for_layer( mutex_unlock(&mdp5_data->list_lock); end: - if (!IS_ERR_OR_NULL(pipe)) + if (!IS_ERR_OR_NULL(pipe)) { + pipe->dirty = false; pipe->params_changed++; + } return pipe; } |
