aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2010-07-01 19:48:37 -0400
committerDave Airlie <airlied@redhat.com>2010-07-02 00:04:14 -0400
commite5510fac98a706c424034950f55bb5e819c46f51 (patch)
tree4a0bc3c324538e45844b94174d21983e6c75ddc5 /drivers/gpu/drm/i915/intel_display.c
parentb9c2c9ae882f058084e13e339925dbf8d2d20271 (diff)
drm/i915: add tracepoints for flip requests & completions
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 68dcf36e2793..f879589bead1 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -33,6 +33,7 @@
33#include "intel_drv.h" 33#include "intel_drv.h"
34#include "i915_drm.h" 34#include "i915_drm.h"
35#include "i915_drv.h" 35#include "i915_drv.h"
36#include "i915_trace.h"
36#include "drm_dp_helper.h" 37#include "drm_dp_helper.h"
37 38
38#include "drm_crtc_helper.h" 39#include "drm_crtc_helper.h"
@@ -4650,6 +4651,8 @@ static void do_intel_finish_page_flip(struct drm_device *dev,
4650 atomic_dec_and_test(&obj_priv->pending_flip)) 4651 atomic_dec_and_test(&obj_priv->pending_flip))
4651 DRM_WAKEUP(&dev_priv->pending_flip_queue); 4652 DRM_WAKEUP(&dev_priv->pending_flip_queue);
4652 schedule_work(&work->work); 4653 schedule_work(&work->work);
4654
4655 trace_i915_flip_complete(intel_crtc->plane, work->pending_flip_obj);
4653} 4656}
4654 4657
4655void intel_finish_page_flip(struct drm_device *dev, int pipe) 4658void intel_finish_page_flip(struct drm_device *dev, int pipe)
@@ -4781,6 +4784,8 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
4781 4784
4782 mutex_unlock(&dev->struct_mutex); 4785 mutex_unlock(&dev->struct_mutex);
4783 4786
4787 trace_i915_flip_request(intel_crtc->plane, obj);
4788
4784 return 0; 4789 return 0;
4785} 4790}
4786 4791