From c4b78f594f64b96593b23cc23114e8a2d015f2fd Mon Sep 17 00:00:00 2001 From: Veera Sundaram Sankaran Date: Fri, 3 Oct 2014 15:28:56 -0700 Subject: [PATCH] msm: mdss: Fix MDSS smp reserve pixel_ram check MDP v(1.7) supports fixed SMP. mdp_smp_reserve API should not reserve any SMP for this MDP version. This change fixes the API call to avoid smp reservation when fixed SMP is enabled Change-Id: Idf5594e216115c51f4cb4f7a2ad6ea7b9690b641 Signed-off-by: Veera Sundaram Sankaran --- drivers/video/fbdev/msm/mdss_mdp_pipe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/fbdev/msm/mdss_mdp_pipe.c b/drivers/video/fbdev/msm/mdss_mdp_pipe.c index 6f0929392338..ddab01c98bac 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pipe.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pipe.c @@ -500,11 +500,15 @@ static inline bool is_unused_smp_allowed(void) int mdss_mdp_smp_reserve(struct mdss_mdp_pipe *pipe) { + struct mdss_data_type *mdata = mdss_mdp_get_mdata(); u32 num_blks = 0, reserved = 0; struct mdss_mdp_plane_sizes ps; int i, rc = 0; bool force_alloc = 0; + if (mdata->has_pixel_ram) + return 0; + rc = mdss_mdp_calc_stride(pipe, &ps); if (rc) return rc;