]> 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)
commitb492777b3db7263b83a683857bde32591ef7a14b
tree4f14e6bc249f0e02e5a1c0cde9ac900e6595631c
parent0064b3193edcdffee0ea71bda7bb7c6938dfd9ca
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