drm/i915/execlists: Emit i915_trace_request_out for preemption
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 May 2018 23:02:02 +0000 (00:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 May 2018 08:39:26 +0000 (09:39 +0100)
commitb9b7742687085fc0fc0135d9104e0a8f30bea2e1
treeaffcb56c73d181f7c311848289e999e84a4d321f
parenta89d1f921c15932b4c9a70861d134290f1a14a10
drm/i915/execlists: Emit i915_trace_request_out for preemption

Move the tracepoint into the common execlists_context_schedule_out() and
call it from preemption completion as well. A small bit of refactoring
code should help with when tracing, or else we end up with requests
mysteriously disappearing and some being emitted to HW multiple times.

Reported-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180502230202.6848-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c