summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_irq.c
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-02-21 12:13:48 +0300
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-02-21 16:18:19 +0300
commitdffabc8f4ee3fce98821bc212bf3c5e31247e2b9 (patch)
treeeb6f2069af205198f7a4a776a8e67cffe1c9a519 /drivers/gpu/drm/i915/i915_irq.c
parent354d036fcf70654cff2e2cbdda54a835d219b9d2 (diff)
downloadlinux-dffabc8f4ee3fce98821bc212bf3c5e31247e2b9.tar.xz
drm/i915/tracepoints: Rename i915_gem_request_notify
i915_gem_ring_notify is more appropriate since we do not have the request information at this point, but it is simply a signal from the engine that some request has been completed. v2: * Always trace and log if there were any waiters. * Rename to intel_engine_notify. (Chris Wilson) Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_irq.c')
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 0657ac44a582..312d30e96dc2 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -1033,10 +1033,12 @@ static void ironlake_rps_change_irq_handler(struct drm_i915_private *dev_priv)
static void notify_ring(struct intel_engine_cs *engine)
{
+ bool waiters;
+
atomic_inc(&engine->irq_count);
set_bit(ENGINE_IRQ_BREADCRUMB, &engine->irq_posted);
- if (intel_engine_wakeup(engine))
- trace_i915_gem_request_notify(engine);
+ waiters = intel_engine_wakeup(engine);
+ trace_intel_engine_notify(engine, waiters);
}
static void vlv_c0_read(struct drm_i915_private *dev_priv,