[Intel-gfx] [PATCH v2] drm/i915: store HW tagging information into tracepoints

Chris Wilson chris at chris-wilson.co.uk
Sun Apr 19 15:19:50 UTC 2020


Quoting Lionel Landwerlin (2020-04-19 14:46:27)
> In Gpuvis [1] we added matching of the OA report tags against i915
> tracepoints fields to figure what workload was submitted by what
> process. It doesn't matter much whether HW tags get reused for a
> single request, as it gets preempted for example. All we need is link
> between the OA report and seqno/engine over a short period of time.
> That is enough to find the relationship between the different elements
> on a timeline.
> 
> The tags got removed from the tracepoints in 2935ed5339c4 ("drm/i915:
> Remove logical HW ID"). I was fine with the idea of reuse and dropping
> them from most tracepoints, but we still need it at execlist port
> insertion.
> 
> This change brings the hw_id back just for the i915_request_in
> tracepoint.

I'd rather remove the tracepoints if they are not being used for the
sole purpose of debugging the kernel. We are not committing to these
to being any form of ABI, and that you want to use these in an
application is a mistake [on our part].

As for the meat of the patch, since nothing is using i915_request.tag,
there's no reason to add it; and the tracepoint would be better at
tracking the context in/out.
-Chris


More information about the Intel-gfx mailing list