From aa5020f2af6789b99cb5ec4cd6035dd6204178cd Mon Sep 17 00:00:00 2001 From: Benet Clark Date: Fri, 16 Jan 2015 15:40:10 -0800 Subject: [PATCH] msm: mdss: Clear PP pipe resources before copying new userspace config During the pipe setup function, we copy any PP related parameters from userspace to the pipe cache. We currently do not clear the cache beforehand. In cases where the pipe is being reconfigured, stale, invalid values might still be present in the cache since the last time the pipe was configured. These values need to be cleared before accepting a new config. Change-Id: I0d9a51052bb738f599f386d39cb9de5509aae7ac Signed-off-by: Benet Clark --- drivers/video/fbdev/msm/mdss_mdp_overlay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/fbdev/msm/mdss_mdp_overlay.c b/drivers/video/fbdev/msm/mdss_mdp_overlay.c index 58598ebb538b..a0b09afd30d8 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_overlay.c +++ b/drivers/video/fbdev/msm/mdss_mdp_overlay.c @@ -899,6 +899,7 @@ int mdss_mdp_overlay_pipe_setup(struct msm_fb_data_type *mfd, if (pipe->type == MDSS_MDP_PIPE_TYPE_CURSOR) goto cursor_done; + mdss_mdp_pipe_sspp_term(pipe); if (pipe->flags & MDP_OVERLAY_PP_CFG_EN) { memcpy(&pipe->pp_cfg, &req->overlay_pp_cfg, sizeof(struct mdp_overlay_pp_params));