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)
commit15c5401dee76e03a1b4e30b7ba8fcec972e5bebd
tree4f14e6bc249f0e02e5a1c0cde9ac900e6595631c
parent9fb3473732908ff0f8d8f8763318c407489ae955
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