]> git.itanic.dy.fi Git - linux-stable/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)
commit9888beaaf118b6878347e1fe2b369fc66d756d18
tree1fc023b057b9ad9bf9655e1ca79e17f057c893ef
parentcf37e5c820f16972bd806e06632eb83e7a152d60
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: 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
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c