drm/i915/guc: Correct the request_in tracepoint position
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 20 Mar 2017 13:25:56 +0000 (13:25 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
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 <tvrtko.ursulin@intel.com>
Fixes: 31de73501ac9 ("drm/i915/scheduler: emulate a scheduler for guc")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: MichaƂ Winiarski <michal.winiarski@intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170320132556.29286-1-tvrtko.ursulin@linux.intel.com
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;
        }