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

Commit c6669ac4 authored by Kalyan Thota's avatar Kalyan Thota Committed by Ajay Singh Parmar
Browse files

drm/msm/sde: report rsc timeout state



Report rsc timeout/success states to the
dependent components so that they can take
correct next steps.

CRs-Fixed: 2254681
Change-Id: Id2e85bcfbf7e0f07df436872583427ffa9bb3d87
Signed-off-by: default avatarKalyan Thota <kalyant@codeaurora.org>
parent 0e17ff22
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -595,8 +595,12 @@ static int sde_rsc_switch_to_clk(struct sde_rsc_priv *rsc,
			msecs_to_jiffies(PRIMARY_VBLANK_WORST_CASE_MS*2));
		if (!rc) {
			pr_err("Timeout waiting for vsync\n");
			SDE_EVT32(atomic_read(&rsc->rsc_vsync_wait),
			rc = -ETIMEDOUT;
			SDE_EVT32(atomic_read(&rsc->rsc_vsync_wait), rc,
				SDE_EVTLOG_ERROR);
		} else {
			SDE_EVT32(atomic_read(&rsc->rsc_vsync_wait), rc);
			rc = 0;
		}
	}
end:
@@ -651,8 +655,12 @@ static int sde_rsc_switch_to_vid(struct sde_rsc_priv *rsc,
			msecs_to_jiffies(PRIMARY_VBLANK_WORST_CASE_MS*2));
		if (!rc) {
			pr_err("Timeout waiting for vsync\n");
			SDE_EVT32(atomic_read(&rsc->rsc_vsync_wait),
			rc = -ETIMEDOUT;
			SDE_EVT32(atomic_read(&rsc->rsc_vsync_wait), rc,
				SDE_EVTLOG_ERROR);
		} else {
			SDE_EVT32(atomic_read(&rsc->rsc_vsync_wait), rc);
			rc = 0;
		}
	}