From 5431d0c98a4d52f35e43211cbda2a3ba53b693a3 Mon Sep 17 00:00:00 2001 From: Veera Sundaram Sankaran Date: Thu, 8 Jan 2015 17:54:31 -0800 Subject: [PATCH] msm: mdss: Fix pixel_ram check in smp block calculation MDP v(1.7) supports fixed SMP. mdss_mdp_smp_calc_num_blocks API should not calculate any SMP blocks for this MDP version. Fix the API call to avoid smp block calculation when fixed SMP is enabled. Change-Id: I017ba2d2097471c98d6c4f9a0ec306309bcd7af6 Signed-off-by: Veera Sundaram Sankaran --- drivers/video/fbdev/msm/mdss_mdp_pipe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/fbdev/msm/mdss_mdp_pipe.c b/drivers/video/fbdev/msm/mdss_mdp_pipe.c index 10f380111a72..fa4ee454acab 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pipe.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pipe.c @@ -245,6 +245,9 @@ u32 mdss_mdp_smp_calc_num_blocks(struct mdss_mdp_pipe *pipe) struct mdss_mdp_plane_sizes ps; int rc = 0; int i, num_blks = 0; + struct mdss_data_type *mdata = mdss_mdp_get_mdata(); + if (mdata->has_pixel_ram) + return 0; rc = mdss_mdp_calc_stride(pipe, &ps); if (rc) {