From 3574b6767f782845f7e44108face9600f42dcff8 Mon Sep 17 00:00:00 2001 From: Ujwal Patel Date: Tue, 21 Apr 2015 09:01:02 -0700 Subject: [PATCH] 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 --- drivers/video/fbdev/msm/mdss_mdp_layer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }