[Intel-gfx] [PATCH] drm/i915/execlists: Include reset depth in traces

Chris Wilson chris at chris-wilson.co.uk
Thu Aug 16 11:08:14 UTC 2018


Quoting Mika Kuoppala (2018-08-16 12:04:28)
> Chris Wilson <chris at chris-wilson.co.uk> writes:
> 
> > Show the reset depth (the tasklet disable count) in the GEM_TRACE to
> > indicate when we might not expect tasklets to be flushed.
> >
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > ---
> >  drivers/gpu/drm/i915/intel_lrc.c | 6 ++++--
> >  1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
> > index 178a74e29400..257d6f5f44d1 100644
> > --- a/drivers/gpu/drm/i915/intel_lrc.c
> > +++ b/drivers/gpu/drm/i915/intel_lrc.c
> > @@ -1834,7 +1834,8 @@ execlists_reset_prepare(struct intel_engine_cs *engine)
> >       struct i915_request *request, *active;
> >       unsigned long flags;
> >  
> > -     GEM_TRACE("%s\n", engine->name);
> > +     GEM_TRACE("%s: depth<-%d\n", engine->name,
> > +               atomic_read(&execlists->tasklet.count));
> 
> Interesting notation but yes, entry and exit will be visible.
> 
> I can't think of the details on a case when this would matter.
> Regardless, the knowledge of at what point we flushed or not
> is beneficial.

Grasping at straws trying to explain the trace and I wanted to rule out
that we were leaking the tasklet_disable(). For the record, we weren't.
-Chris


More information about the Intel-gfx mailing list