From 05014b30d1f4df0259b04fd5256e7a8d58b671df Mon Sep 17 00:00:00 2001 From: Amine Najahi Date: Thu, 24 Mar 2022 12:24:08 -0400 Subject: [PATCH] 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 --- msm/sde/sde_plane.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/msm/sde/sde_plane.c b/msm/sde/sde_plane.c index f6e0acba03..0b4adf3e97 100644 --- a/msm/sde/sde_plane.c +++ b/msm/sde/sde_plane.c @@ -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;