disp: msm: sde: handle SSPP system cache for multi-plane scenario

Currently, when CWB system cache use case is enabled and multiple planes
are used to fetch the LLCC data only one SSPP is programmed correctly.

This change ensures that whenever the fb_cache_flag is non 0, the SSPP
system cache gets reprogrammed.

Change-Id: Ic90eaae207f6221efb1fc8749093d8b44e092e44
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
This commit is contained in:
Amine Najahi
2022-03-24 12:24:08 -04:00
committed by Gerrit - the friendly Code Review server
parent 068c83ecd9
commit 05014b30d1

View File

@@ -2831,8 +2831,7 @@ static void _sde_plane_sspp_setup_sys_cache(struct sde_plane *psde,
cfg->flags |= SYS_CACHE_NO_ALLOC;
cfg->type = SDE_SYS_CACHE_DISP;
} else if ((sc_cfg[fb_cache_type].has_sys_cache)
&& (fb_cache_flag & MSM_FB_CACHE_WRITE_EN)) {
} else if ((sc_cfg[fb_cache_type].has_sys_cache) && fb_cache_flag) {
cfg->rd_en = true;
cfg->rd_scid = sc_cfg[fb_cache_type].llcc_scid;
cfg->rd_noallocate = true;