diff options
| author | Michał Winiarski <[email protected]> | 2017-10-25 22:00:17 +0200 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2017-10-26 21:35:21 +0100 |
| commit | fa87271e5bc57ad30c19385e2d0d1d7fbd3c21c1 (patch) | |
| tree | fa9883b16df5753caed24c448d3c96339d446d5f | |
| parent | 3b8a8a30064d0b89d09e979adb4c975d892c21ef (diff) | |
drm/i915/guc: Keep request->priority for its lifetime
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 <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Jeff McGee <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
| -rw-r--r-- | drivers/gpu/drm/i915/i915_guc_submission.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_guc_submission.c b/drivers/gpu/drm/i915/i915_guc_submission.c index 301c658a4cde..c99ddd8457f3 100644 --- a/drivers/gpu/drm/i915/i915_guc_submission.c +++ b/drivers/gpu/drm/i915/i915_guc_submission.c @@ -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)); |