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

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

Merge "msm: mdss: add debug traces to measure blank time"

parents 6084bf75 b7568ca5
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -53,6 +53,8 @@

#include "mdss_fb.h"
#include "mdss_mdp_splash_logo.h"
#define CREATE_TRACE_POINTS
#include "mdss_debug.h"

#ifdef CONFIG_FB_MSM_TRIPLE_BUFFER
#define MDSS_FB_NUM 3
@@ -1324,6 +1326,7 @@ static int mdss_fb_blank_sub(int blank_mode, struct fb_info *info,
	struct msm_fb_data_type *mfd = (struct msm_fb_data_type *)info->par;
	int ret = 0;
	int cur_power_state, req_power_state = MDSS_PANEL_POWER_OFF;
	char trace_buffer[32];

	if (!mfd || !op_enable)
		return -EPERM;
@@ -1334,6 +1337,10 @@ static int mdss_fb_blank_sub(int blank_mode, struct fb_info *info,
	pr_debug("%pS mode:%d\n", __builtin_return_address(0),
		blank_mode);

	snprintf(trace_buffer, sizeof(trace_buffer), "fb%d blank %d",
		mfd->index, blank_mode);
	ATRACE_BEGIN(trace_buffer);

	cur_power_state = mfd->panel_power_state;

	/*
@@ -1401,6 +1408,8 @@ static int mdss_fb_blank_sub(int blank_mode, struct fb_info *info,
	/* Notify listeners */
	sysfs_notify(&mfd->fbi->dev->kobj, NULL, "show_blank_event");

	ATRACE_END(trace_buffer);

	return ret;
}

+0 −1
Original line number Diff line number Diff line
@@ -55,7 +55,6 @@
#include "mdss_mdp_debug.h"
#include "mdss_mdp_rotator.h"

#define CREATE_TRACE_POINTS
#include "mdss_mdp_trace.h"

#define AXI_HALT_TIMEOUT_US	0x4000