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>
This commit is contained in:
parent
4a921c5496
commit
c4b78f594f
1 changed files with 4 additions and 0 deletions
|
@ -500,11 +500,15 @@ static inline bool is_unused_smp_allowed(void)
|
||||||
|
|
||||||
int mdss_mdp_smp_reserve(struct mdss_mdp_pipe *pipe)
|
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;
|
u32 num_blks = 0, reserved = 0;
|
||||||
struct mdss_mdp_plane_sizes ps;
|
struct mdss_mdp_plane_sizes ps;
|
||||||
int i, rc = 0;
|
int i, rc = 0;
|
||||||
bool force_alloc = 0;
|
bool force_alloc = 0;
|
||||||
|
|
||||||
|
if (mdata->has_pixel_ram)
|
||||||
|
return 0;
|
||||||
|
|
||||||
rc = mdss_mdp_calc_stride(pipe, &ps);
|
rc = mdss_mdp_calc_stride(pipe, &ps);
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
Loading…
Add table
Reference in a new issue