]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Always clear preempt status on cancelling all
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jul 2018 12:54:24 +0000 (13:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jul 2018 16:17:27 +0000 (17:17 +0100)
commit5a2bdb01158e62f60c14da8066c3a674be7b7d3e
tree122df37cbd35385e48176301ef470aebaacb40da
parent252226ac728862f498346c0418c1785b5d857a99
drm/i915/execlists: Always clear preempt status on cancelling all

On reset/wedging, we cancel all pending replies from the HW and we also
want to cancel an outstanding preemption event. Since we use the same
function to cancel the pending replies for reset and for a preemption
event, we can simply clear the active tracking for all.

v2: Keep execlists_user_end() markup for wedging
v3: Move assignment to inline to hide the bare assignment.

Fixes: fdc4c6d4c506 ("drm/i915/execlists: Drop clear_gtiir() on GPU reset")
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/20180716125424.5715-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc_submission.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.h