]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Fix blocked context accounting
authorMatthew Brost <matthew.brost@intel.com>
Thu, 9 Sep 2021 16:47:22 +0000 (09:47 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 13 Sep 2021 18:30:25 +0000 (11:30 -0700)
commit6ea746e522e472c297d5b7384f6d72efc4805a8a
tree6166e9148aefbf126528b77ea694ee9e336691e3
parente5f6660cdd3df7ae467a624a266ce907355a947a
drm/i915/guc: Fix blocked context accounting

Prior to this patch the blocked context counter was cleared on
init_sched_state (used during registering a context & resets) which is
incorrect. This state needs to be persistent or the counter can read the
incorrect value resulting in scheduling never getting enabled again.

Fixes: d8d2ee02d17f ("drm/i915/guc: Support request cancellation")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: <stable@vger.kernel.org>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210909164744.31249-2-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c