drm/i915/guc: Correct the request_in tracepoint position
authorTvrtko Ursulin <[email protected]>
Mon, 20 Mar 2017 13:25:56 +0000 (13:25 +0000)
committerTvrtko Ursulin <[email protected]>
Tue, 21 Mar 2017 08:16:57 +0000 (08:16 +0000)
It has to be called after the global seqno has been assigned.

Signed-off-by: Tvrtko Ursulin <[email protected]>
Fixes: 31de73501ac9 ("drm/i915/scheduler: emulate a scheduler for guc")
Cc: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: MichaƂ Winiarski <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: [email protected]
Reviewed-by: Chris Wilson <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_guc_submission.c

index 832ac9e45801370f9ec444221d0ae4968b6959fc..7a78e12867596466f150209fb08342e51b1498e3 100644 (file)
@@ -609,8 +609,8 @@ static bool i915_guc_dequeue(struct intel_engine_cs *engine)
                RB_CLEAR_NODE(&rq->priotree.node);
                rq->priotree.priority = INT_MAX;
 
-               trace_i915_gem_request_in(rq, port - engine->execlist_port);
                i915_guc_submit(rq);
+               trace_i915_gem_request_in(rq, port - engine->execlist_port);
                last = rq;
                submit = true;
        }