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

Commit 123357f5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: update play count on sde crtc"

parents 3f0b4eeb d67cf4ab
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2143,6 +2143,7 @@ void sde_crtc_commit_kickoff(struct drm_crtc *crtc)
		SDE_DEBUG("crtc%d commit\n", crtc->base.id);
		SDE_EVT32(DRMID(crtc), 2);
	}
	sde_crtc->play_count++;

	list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
		if (encoder->crtc != crtc)
@@ -3332,10 +3333,9 @@ static int _sde_debugfs_status_show(struct seq_file *s, void *data)
				sde_crtc->vblank_cb_count * 1000, diff_ms) : 0;

		seq_printf(s,
			"vblank fps:%lld count:%u total:%llums\n",
				fps,
				sde_crtc->vblank_cb_count,
				ktime_to_ms(diff));
			"vblank fps:%lld count:%u total:%llums total_framecount:%llu\n",
				fps, sde_crtc->vblank_cb_count,
				ktime_to_ms(diff), sde_crtc->play_count);

		/* reset time & count for next measurement */
		sde_crtc->vblank_cb_count = 0;
+2 −0
Original line number Diff line number Diff line
@@ -121,6 +121,7 @@ struct sde_crtc_event {
 * @stage_cfg     : H/w mixer stage configuration
 * @debugfs_root  : Parent of debugfs node
 * @vblank_cb_count : count of vblank callback since last reset
 * @play_count    : frame count between crtc enable and disable
 * @vblank_cb_time  : ktime at vblank count reset
 * @vblank_refcount : reference count for vblank enable request
 * @suspend         : whether or not a suspend operation is in progress
@@ -167,6 +168,7 @@ struct sde_crtc {
	struct dentry *debugfs_root;

	u32 vblank_cb_count;
	u64 play_count;
	ktime_t vblank_cb_time;
	atomic_t vblank_refcount;
	bool suspend;