Skip to content

Commit 158863f

Browse files
committed
drm/i915: Make global seqno known in i915_gem_request_execute tracepoint
Commit fe49789 ("drm/i915: Deconstruct execute fence") re-arranged the code and moved the i915_gem_request_execute tracepoint to before the global seqno is assigned to the request. We need to move the tracepoint a bit later so this information is once again available. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Fixes: fe49789 ("drm/i915: Deconstruct execute fence") Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: intel-gfx@lists.freedesktop.org Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20180220104742.565-1-tvrtko.ursulin@linux.intel.com
1 parent fed8165 commit 158863f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/i915_gem_request.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,6 @@ void __i915_gem_request_submit(struct drm_i915_gem_request *request)
490490
GEM_BUG_ON(!irqs_disabled());
491491
lockdep_assert_held(&engine->timeline->lock);
492492

493-
trace_i915_gem_request_execute(request);
494-
495493
/* Transfer from per-context onto the global per-engine timeline */
496494
timeline = engine->timeline;
497495
GEM_BUG_ON(timeline == request->timeline);
@@ -515,6 +513,8 @@ void __i915_gem_request_submit(struct drm_i915_gem_request *request)
515513
list_move_tail(&request->link, &timeline->requests);
516514
spin_unlock(&request->timeline->lock);
517515

516+
trace_i915_gem_request_execute(request);
517+
518518
wake_up_all(&request->execute);
519519
}
520520

0 commit comments

Comments
 (0)