]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Fix issues with live_preempt_cancel
authorMatthew Brost <matthew.brost@intel.com>
Thu, 28 Jul 2022 02:42:21 +0000 (19:42 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 29 Jul 2022 17:35:54 +0000 (10:35 -0700)
commit161d20fefe3ea6c301d0408444c1e18eea913218
tree4f14e6bc249f0e02e5a1c0cde9ac900e6595631c
parente7f7b87227fdbd7d0d8b783f07213b7b1452ebfc
drm/i915/guc: Fix issues with live_preempt_cancel

Having semaphores results in different behavior when a dependent request
is cancelled. In the case of semaphores the request could be on the HW
and complete successfully while without the request is held in the
driver and the error from the dependent request is propagated. Fix
live_preempt_cancel to take this behavior into account.

Also update live_preempt_cancel to use new function intel_context_ban
rather than intel_context_set_banned.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220728024225.2363663-3-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/selftest_execlists.c