drm/i915/guc: Don't enable scheduling on a banned context, guc_id invalid, not registered
authorMatthew Brost <matthew.brost@intel.com>
Thu, 9 Sep 2021 16:47:30 +0000 (09:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 08:49:04 +0000 (09:49 +0100)
commitad583a961905f843c420279a8db230e2719f60d1
treee14fe0f3ba6dcb463e79d7cd51007b585fe929c8
parent519bd9107ef60d1137ba48106925a7f861624fd8
drm/i915/guc: Don't enable scheduling on a banned context, guc_id invalid, not registered

commit 9888beaaf118b6878347e1fe2b369fc66d756d18 upstream.

When unblocking a context, do not enable scheduling if the context is
banned, guc_id invalid, or not registered.

v2:
 (Daniele)
  - Add helper for unblock

Fixes: 62eaf0ae217d ("drm/i915/guc: Support request cancellation")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210909164744.31249-10-matthew.brost@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c