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

Commit 5a50a4a4 authored by Alan Kwong's avatar Alan Kwong
Browse files

drm/msm/sde: enable debugfs for writeback timeout



Fix writeback timeout to use debugfs provided value to
facilitate development.

CRs-Fixed: 2009714
Change-Id: I49a0e80a18ae66c83c9dd855383ee3546616384d
Signed-off-by: default avatarAlan Kwong <akwong@codeaurora.org>
parent 531f5574
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -670,6 +670,7 @@ static int sde_encoder_phys_wb_wait_for_commit_done(
	u32 irq_status;
	u64 wb_time = 0;
	int rc = 0;
	u32 timeout = max_t(u32, wb_enc->wbdone_timeout, KICKOFF_TIMEOUT_MS);

	/* Return EWOULDBLOCK since we know the wait isn't necessary */
	if (WARN_ON(phys_enc->enable_state != SDE_ENC_ENABLED))
@@ -678,7 +679,7 @@ static int sde_encoder_phys_wb_wait_for_commit_done(
	SDE_EVT32(DRMID(phys_enc->parent), WBID(wb_enc), wb_enc->frame_count);

	ret = wait_for_completion_timeout(&wb_enc->wbdone_complete,
			KICKOFF_TIMEOUT_JIFFIES);
			msecs_to_jiffies(timeout));

	if (!ret) {
		SDE_EVT32(DRMID(phys_enc->parent), WBID(wb_enc),