From cef4f545bfdcf81696bfd42b83df00ecf97cd795 Mon Sep 17 00:00:00 2001 From: Lakshmi Narayana Kalavala Date: Fri, 26 Jul 2019 16:27:10 -0700 Subject: [PATCH] disp: msm: sde: add trace points for modeset Adding trace points for the encoder modeset which provides the duration of modeset when there is a resolution or fps switch. Change-Id: Idfba792addcb9b68285c8575b62608dec60ca275 Signed-off-by: Lakshmi Narayana Kalavala --- msm/msm_atomic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/msm/msm_atomic.c b/msm/msm_atomic.c index afb4b078da..9567132dac 100644 --- a/msm/msm_atomic.c +++ b/msm/msm_atomic.c @@ -341,6 +341,7 @@ msm_crtc_set_mode(struct drm_device *dev, struct drm_atomic_state *old_state) DRM_DEBUG_ATOMIC("modeset on [ENCODER:%d:%s]\n", encoder->base.id, encoder->name); + SDE_ATRACE_BEGIN("msm_set_mode"); /* * Each encoder has at most one connector (since we always steal * it away), so we won't call mode_set hooks twice. @@ -349,6 +350,7 @@ msm_crtc_set_mode(struct drm_device *dev, struct drm_atomic_state *old_state) funcs->mode_set(encoder, mode, adjusted_mode); drm_bridge_mode_set(encoder->bridge, mode, adjusted_mode); + SDE_ATRACE_END("msm_set_mode"); } }