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)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Jan 2019 14:25:58 +0000 (14:25 +0000)
commit6e062b60b0b1bd82cac475e63cdb8c451647182b
treea69be4347bbe7ea0a5aebcf12ece7f2b427cc963
parent03ca3cf8e9aa7549e6c398462af0f68bdd43e7fe
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
drivers/gpu/drm/i915/intel_lrc.c