]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 13 Sep 2021 18:30:33 +0000 (11:30 -0700)
commit2b1d315ab1158683214a5dc2e428f75b832ebfd2
tree1fc023b057b9ad9bf9655e1ca79e17f057c893ef
parent5c88834e006f6eb1f2199315fc06ba5b3c90eddf
drm/i915/guc: Don't enable scheduling on a banned context, guc_id invalid, not registered

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: d8d2ee02d17f ("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
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c