Преглед на файлове

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_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
 	/* clear existing intf cwb configuration before
 	 * updating for single LM PartialUpdate usecase.
 	 * updating for single LM PartialUpdate usecase.
 	 */
 	 */
 	if (_sde_encoder_is_single_lm_partial_update(wb_enc))
 	if (_sde_encoder_is_single_lm_partial_update(wb_enc))
 		_sde_encoder_phys_wb_setup_cwb(phys_enc, false);
 		_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_cwb(phys_enc, true);
 
 
 	_sde_encoder_phys_wb_setup_prog_line(phys_enc);
 	_sde_encoder_phys_wb_setup_prog_line(phys_enc);