From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>,
Tvrtko Ursulin <tursulin@ursulin.net>,
Intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/i915/tracepoints: Remove DRM_I915_LOW_LEVEL_TRACEPOINTS Kconfig option
Date: Tue, 26 Jun 2018 12:24:51 +0100 [thread overview]
Message-ID: <1aa01b39-6de4-c766-61dd-633cb1652026@linux.intel.com> (raw)
In-Reply-To: <153001051011.8693.10471534961568370035@mail.alporthouse.com>
On 26/06/2018 11:55, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2018-06-26 11:46:51)
>>
>> On 25/06/2018 21:02, Chris Wilson wrote:
>>> If we know what is wanted can we define that better in terms of
>>> dma_fence and leave lowlevel for debugging (or think of how we achieve
>>> the same with generic bpf? kprobes)? Hmm, I wonder how far we can push
>>> that.
>>
>> What is wanted is for instance take trace.pl on any kernel anywhere and
>> it is able to deduce/draw the exact metrics/timeline of command
>> submission for an workload.
>>
>> At the moment it without low level tracepoints, and without the
>> intel_engine_notify tweak, it is workload dependent on how close it
>> could get.
>
> Interjecting what dma-fence already has (or we could use), not sure how
> well userspace can actually map it to their timelines.
>>
>> So a set of tracepoints to allow drawing the timeline:
>>
>> 1. request_queue (or _add)
> dma_fence_init
>
>> 2. request_submit
>
>> 3. intel_engine_notify
> For obvious reasons, no match in dma_fence.
>
>> 4. request_in
> dma_fence_emit
>
>> 5. request out
> dma_fence_signal (similar, not quite, we would have to force irq
> signaling).
Yes not quite the same due potential time shift between user interrupt
and dma_fence_signal call via different paths.
>
>> With this set the above is possible and we don't need a lot of work to
>> get there.
>
> From a brief glance we are missing a dma_fence_queue for request_submit
> replacement.
>
> So next question is what information do we get from our tracepoints (or
> more precisely do you use) that we lack in dma_fence?
Port=%u and preemption (completed=%u) comes immediately to mind. Way to
tie with engines would be nice or it is all abstract timelines.
Going this direction sounds like a long detour to get where we almost
are. I suspect you are valuing the benefit of it being generic and hence
and parsing tool could be cross-driver. But you can also just punt the
"abstractising" into the parsing tool.
>> And with the Virtual Engine it will become more interesting to have
>> this. So if we had a bug report saying load balancing is not working
>> well, we could just say "please run it via trace.pl --trace and attach
>> perf script output". That way we could easily see whether or not is is a
>> problem in userspace behaviour or else.
>
> And there I was wanting a script to capture the workload so that we
> could replay it and dissect it. :-p
Depends on what level you want that. Perf script output from the above
tracepoints would do on one level. If you wanted a higher level to
re-exercise load balancing then it wouldn't completely be enough, or at
least a lot of guesswork would be needed.
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-06-26 11:24 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-25 17:25 [PATCH 1/2] drm/i915/tracepoints: Remove i915_request_execute tracepoint Tvrtko Ursulin
2018-06-25 17:25 ` [PATCH 2/2] drm/i915/tracepoints: Remove DRM_I915_LOW_LEVEL_TRACEPOINTS Kconfig option Tvrtko Ursulin
2018-06-25 20:02 ` Chris Wilson
2018-06-26 10:46 ` Tvrtko Ursulin
2018-06-26 10:55 ` Chris Wilson
2018-06-26 11:24 ` Tvrtko Ursulin [this message]
2018-06-26 11:48 ` Chris Wilson
2018-08-08 12:13 ` Tvrtko Ursulin
2018-08-08 12:42 ` Chris Wilson
2018-08-08 12:56 ` Tvrtko Ursulin
2018-08-13 9:54 ` Joonas Lahtinen
2018-08-13 13:44 ` Kukanova, Svetlana
2018-08-21 12:06 ` Joonas Lahtinen
2018-08-22 12:49 ` Tvrtko Ursulin
2018-08-22 13:02 ` Tvrtko Ursulin
2018-08-22 13:12 ` Joonas Lahtinen
2018-08-27 13:37 ` Kukanova, Svetlana
2018-08-29 14:51 ` Joonas Lahtinen
2018-09-03 12:22 ` Kukanova, Svetlana
2018-09-04 8:56 ` Joonas Lahtinen
2018-06-25 17:52 ` ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/tracepoints: Remove i915_request_execute tracepoint Patchwork
2018-06-25 21:36 ` ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1aa01b39-6de4-c766-61dd-633cb1652026@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=Intel-gfx@lists.freedesktop.org \
--cc=chris@chris-wilson.co.uk \
--cc=tursulin@ursulin.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).