drm/i915/guc: Keep request->priority for its lifetime
authorMichał Winiarski <michal.winiarski@intel.com>
Wed, 25 Oct 2017 20:00:17 +0000 (22:00 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Oct 2017 20:35:21 +0000 (21:35 +0100)
commitfa87271e5bc57ad30c19385e2d0d1d7fbd3c21c1
treefa9883b16df5753caed24c448d3c96339d446d5f
parent3b8a8a30064d0b89d09e979adb4c975d892c21ef
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 <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
drivers/gpu/drm/i915/i915_guc_submission.c