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

Commit b7568ca5 authored by Ingrid Gallardo's avatar Ingrid Gallardo Committed by Ujwal Patel
Browse files

msm: mdss: add debug traces to measure blank time



Add systrace events to log the time to process a blank
request; this helps to profile the time that display
driver takes during the power transitions.

Change-Id: I0081c3825a4776561db248123d701c25101e9245
Signed-off-by: default avatarIngrid Gallardo <ingridg@codeaurora.org>
Signed-off-by: default avatarUjwal Patel <ujwalp@codeaurora.org>
parent 317264ca
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