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

Commit 01679085 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: fix kickoff ref count for single phys encoder usecase"

parents 083fb678 ced03aff
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -3397,13 +3397,16 @@ static void _sde_encoder_kickoff_phys(struct sde_encoder_virt *sde_enc)
			set_bit(i, sde_enc->frame_busy_mask);
			set_bit(i, sde_enc->frame_busy_mask);


		if (!phys->ops.needs_single_flush ||
		if (!phys->ops.needs_single_flush ||
				!phys->ops.needs_single_flush(phys))
				!phys->ops.needs_single_flush(phys)) {
			pending_kickoff_cnt =
				sde_encoder_phys_inc_pending(phys);
			_sde_encoder_trigger_flush(&sde_enc->base, phys, 0x0);
			_sde_encoder_trigger_flush(&sde_enc->base, phys, 0x0);
		else if (ctl->ops.get_pending_flush) {
			SDE_EVT32(pending_kickoff_cnt, SDE_EVTLOG_FUNC_CASE1);
		} else if (ctl->ops.get_pending_flush) {
			pending_kickoff_cnt =
			pending_kickoff_cnt =
				sde_encoder_phys_inc_pending(phys);
				sde_encoder_phys_inc_pending(phys);
			ctl->ops.get_pending_flush(ctl, &pending_flush);
			ctl->ops.get_pending_flush(ctl, &pending_flush);
			SDE_EVT32(pending_kickoff_cnt);
			SDE_EVT32(pending_kickoff_cnt, SDE_EVTLOG_FUNC_CASE2);
		}
		}
	}
	}