summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_sprite.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2014-04-29 13:35:48 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-06 10:18:03 +0200
commit25ef284a2a7de5393b2ef608046e0d48db0e6e2a (patch)
treebb1fa71a272defb212caf8b1622c67de53c44f1f /drivers/gpu/drm/i915/intel_sprite.c
parent5b633d6b8e3aa1f3ba3daa568416e36e054a3bb1 (diff)
downloadlwn-25ef284a2a7de5393b2ef608046e0d48db0e6e2a.tar.gz
lwn-25ef284a2a7de5393b2ef608046e0d48db0e6e2a.zip
drm/i915: Add pipe update trace points
Add trace points for observing the atomic pipe update mechanism. v2: Rebased due to earlier changes v3: Pass intel_crtc instead of drm_crtc (Daniel) v4: Pass frame counter from the caller to evaded/end since the caller now always has that ready Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Sourab Gupta <sourabgupta@gmail.com> Reviewed-by: Akash Goel <akash.goels@gmail.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sprite.c')
-rw-r--r--drivers/gpu/drm/i915/intel_sprite.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
index 6192e586de5d..213cd58f0412 100644
--- a/drivers/gpu/drm/i915/intel_sprite.c
+++ b/drivers/gpu/drm/i915/intel_sprite.c
@@ -73,6 +73,8 @@ static bool intel_pipe_update_start(struct intel_crtc *crtc, uint32_t *start_vbl
local_irq_disable();
+ trace_i915_pipe_update_start(crtc, min, max);
+
for (;;) {
/*
* prepare_to_wait() has a memory barrier, which guarantees
@@ -104,6 +106,8 @@ static bool intel_pipe_update_start(struct intel_crtc *crtc, uint32_t *start_vbl
*start_vbl_count = dev->driver->get_vblank_counter(dev, pipe);
+ trace_i915_pipe_update_vblank_evaded(crtc, min, max, *start_vbl_count);
+
return true;
}
@@ -113,6 +117,8 @@ static void intel_pipe_update_end(struct intel_crtc *crtc, u32 start_vbl_count)
enum pipe pipe = crtc->pipe;
u32 end_vbl_count = dev->driver->get_vblank_counter(dev, pipe);
+ trace_i915_pipe_update_end(crtc, end_vbl_count);
+
local_irq_enable();
if (start_vbl_count != end_vbl_count)