]> 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)
commitb173d5fd537a442e6a0ce13e9d06b8b7fd2a2d0a
tree122df37cbd35385e48176301ef470aebaacb40da
parent5aea961c950eb054348fc1fd11ae489a9f075058
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: da7650c9429d ("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