diff options
| author | Veera Sundaram Sankaran <veeras@codeaurora.org> | 2014-10-03 15:28:56 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:34:25 -0700 |
| commit | c4b78f594f64b96593b23cc23114e8a2d015f2fd (patch) | |
| tree | acab041a43ac96aa41e9f4a5143b83cc39897858 | |
| parent | 4a921c5496036844cbb12cc65e3d5791f3a0973c (diff) | |
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 <veeras@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_pipe.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
