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

Commit 6254dd2d authored by Kalyan Thota's avatar Kalyan Thota
Browse files

msm: mdss: add xlog for debug in ping_pong timeout



Add addtional debug info to know the commit count
on pingpong timeout.

Change-Id: I1f40a5eee1a14efbf03487db9d398e04cd2e6f7c
Signed-off-by: default avatarKalyan Thota <kalyant@codeaurora.org>
parent 9da4ddc1
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1505,10 +1505,10 @@ static int mdss_mdp_cmd_wait4pingpong(struct mdss_mdp_ctl *ctl, void *arg)

	if (rc <= 0) {
		u32 status, mask;

		mask = BIT(MDSS_MDP_IRQ_PING_PONG_COMP + ctx->current_pp_num);
		status = mask & readl_relaxed(ctl->mdata->mdp_base +
				MDSS_MDP_REG_INTR_STATUS);
		MDSS_XLOG(status, atomic_read(&ctx->koff_cnt), rc);
		if (status) {
			pr_warn("pp done but irq not triggered\n");
			mdss_mdp_irq_clear(ctl->mdata,
@@ -1524,9 +1524,10 @@ static int mdss_mdp_cmd_wait4pingpong(struct mdss_mdp_ctl *ctl, void *arg)
	}

	if (rc <= 0) {
		pr_err("%s: wait4pingpong timed out. ctl=%d rc=%d cnt=%d\n",
		pr_err("%s:wait4pingpong timed out ctl=%d rc=%d cnt=%d koff_cnt=%d\n",
				__func__,
				ctl->num, rc, ctx->pp_timeout_report_cnt);
				ctl->num, rc, ctx->pp_timeout_report_cnt,
				atomic_read(&ctx->koff_cnt));
		if (ctx->pp_timeout_report_cnt == 0) {
			MDSS_XLOG(0xbad);
			MDSS_XLOG_TOUT_HANDLER("mdp", "dsi0_ctrl", "dsi0_phy",