Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9091439 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

drm/msm/sde: use cwb qos lut during clone mode for cwb



Concurrent writeback runs in clone mode with primary
display and it is realtime display. That brings realtime
qos requirement on nrt client also.

Change-Id: I73026a539933347b6085c311ba608b6d358de285
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 3898f87b
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -197,11 +197,19 @@ static void sde_encoder_phys_wb_set_qos(struct sde_encoder_phys *phys_enc)
	qos_cfg.danger_safe_en = true;
	qos_cfg.danger_lut =
		catalog->perf.danger_lut_tbl[SDE_QOS_LUT_USAGE_NRT];
	qos_cfg.safe_lut =
		(u32) _sde_encoder_phys_wb_get_qos_lut(

	if (phys_enc->in_clone_mode)
		qos_cfg.safe_lut = (u32) _sde_encoder_phys_wb_get_qos_lut(
			&catalog->perf.sfe_lut_tbl[SDE_QOS_LUT_USAGE_CWB], 0);
	else
		qos_cfg.safe_lut = (u32) _sde_encoder_phys_wb_get_qos_lut(
			&catalog->perf.sfe_lut_tbl[SDE_QOS_LUT_USAGE_NRT], 0);
	qos_cfg.creq_lut =
		_sde_encoder_phys_wb_get_qos_lut(

	if (phys_enc->in_clone_mode)
		qos_cfg.creq_lut = _sde_encoder_phys_wb_get_qos_lut(
			&catalog->perf.qos_lut_tbl[SDE_QOS_LUT_USAGE_CWB], 0);
	else
		qos_cfg.creq_lut = _sde_encoder_phys_wb_get_qos_lut(
			&catalog->perf.qos_lut_tbl[SDE_QOS_LUT_USAGE_NRT], 0);

	if (hw_wb->ops.setup_danger_safe_lut)