Skip to content

Commit

Permalink
drm/i915/guc: Keep request->priority for its lifetime
Browse files Browse the repository at this point in the history
We also want to support preemption with GuC submission backend.
In order to do that, we need to remember the priority, like we do on
execlists path.

v2: Remove completed prio == INT_MAX optimization

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jeff McGee <jeff.mcgee@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171025200020.16636-10-michal.winiarski@intel.com
  • Loading branch information
Michał Winiarski authored and Chris Wilson committed Oct 26, 2017
1 parent 3b8a8a3 commit fa87271
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/gpu/drm/i915/i915_guc_submission.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,6 @@ static void i915_guc_dequeue(struct intel_engine_cs *engine)
}

INIT_LIST_HEAD(&rq->priotree.link);
rq->priotree.priority = INT_MAX;

__i915_gem_request_submit(rq);
trace_i915_gem_request_in(rq, port_index(port, execlists));
Expand Down

0 comments on commit fa87271

Please sign in to comment.