On Tue, Feb 21, 2017 at 09:13:48AM +0000, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx> > > 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@xxxxxxxxx> > --- > drivers/gpu/drm/i915/i915_irq.c | 6 ++++-- > drivers/gpu/drm/i915/i915_trace.h | 13 ++++++++----- > 2 files changed, 12 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c > index 57fa1bf78a85..bc70e2c451b2 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); Close enough! (Here the waiters are sleepers, but that will change shortly). -Chris -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx