浏览代码

disp: msm: sde: fix cwb crop ctrl enablement flow

When partial fb is sent from userspace to dump only partial
frame roi, cwb crop feature needs to be enabled.
'commit fded00588190
("disp: msm: sde: add support for CWB + single LM partial update")'
is overriding this crop ctrl enable bit. Due to this cwb xin is idle
always and wb timeouts are seen. Add changes to move the cwb setup
with false to happen early to fix overriding the crop ctrl enablement.

Change-Id: If187319d59026f43db71e6655a74bfd62acf2dc3
Signed-off-by: Akhil Jaiswal <[email protected]>
Akhil Jaiswal 1 年之前
父节点
当前提交
0d3c4d5ac1
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      msm/sde/sde_encoder_phys_wb.c

+ 6 - 5
msm/sde/sde_encoder_phys_wb.c

@@ -1823,17 +1823,18 @@ static void sde_encoder_phys_wb_setup(struct sde_encoder_phys *phys_enc)
 
 	sde_encoder_phys_setup_cdm(phys_enc, fb, wb_enc->wb_fmt, wb_roi);
 
-	sde_encoder_phys_wb_setup_fb(phys_enc, fb, wb_roi, out_width, out_height);
-
-	_sde_encoder_phys_wb_setup_ctl(phys_enc, wb_enc->wb_fmt);
-
-	_sde_encoder_phys_wb_setup_sys_cache(phys_enc, fb);
 	/* clear existing intf cwb configuration before
 	 * updating for single LM PartialUpdate usecase.
 	 */
 	if (_sde_encoder_is_single_lm_partial_update(wb_enc))
 		_sde_encoder_phys_wb_setup_cwb(phys_enc, false);
 
+	sde_encoder_phys_wb_setup_fb(phys_enc, fb, wb_roi, out_width, out_height);
+
+	_sde_encoder_phys_wb_setup_ctl(phys_enc, wb_enc->wb_fmt);
+
+	_sde_encoder_phys_wb_setup_sys_cache(phys_enc, fb);
+
 	_sde_encoder_phys_wb_setup_cwb(phys_enc, true);
 
 	_sde_encoder_phys_wb_setup_prog_line(phys_enc);