drm/i915/execlists: Mark up priority boost on preemption
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Jan 2019 13:51:55 +0000 (13:51 +0000)
committerJani Nikula <jani.nikula@intel.com>
Thu, 24 Jan 2019 07:47:28 +0000 (09:47 +0200)
commit2b24408158276faf0f4a71eb97a2364686d5b06c
tree9d10a5c5725e08382aa5968a598efdf75991222d
parent49a57857aeea06ca831043acbb0fa5e0f50602fd
drm/i915/execlists: Mark up priority boost on preemption

Record the priority boost we giving to the preempted client or else we
may end up in a situation where the priority queue no longer matches the
request priority order and so we can end up in an infinite loop of
preempting the same pair of requests.

Fixes: e9eaf82d97a2 ("drm/i915: Priority boost for waiting clients")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190123135155.21562-1-chris@chris-wilson.co.uk
(cherry picked from commit 6e062b60b0b1bd82cac475e63cdb8c451647182b)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_lrc.c