]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: clear stalled request after a reset
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 11 Aug 2022 21:08:12 +0000 (14:08 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 17 Aug 2022 20:53:55 +0000 (13:53 -0700)
commitc3df0ac88a9adf3daa778b162dae97d7133e7743
treec9a4753466b81e9a35fbcd4085dba94d33ba8ab3
parentfe3d22f8c35a33418a1f93432ebfad40599bab0f
drm/i915/guc: clear stalled request after a reset

If the GuC CTs are full and we need to stall the request submission
while waiting for space, we save the stalled request and where the stall
occurred; when the CTs have space again we pick up the request submission
from where we left off.

If a full GT reset occurs, the state of all contexts is cleared and all
non-guilty requests are unsubmitted, therefore we need to restart the
stalled request submission from scratch. To make sure that we do so,
clear the saved request after a reset.

Fixes note: the patch that introduced the bug is in 5.15, but no
officially supported platform had GuC submission enabled by default
in that kernel, so the backport to that particular version (and only
that one) can potentially be skipped.

Fixes: 4f91eb2d8bf6 ("drm/i915/guc: Implement GuC submission tasklet")
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: John Harrison <john.c.harrison@intel.com>
Cc: <stable@vger.kernel.org> # v5.15+
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220811210812.3239621-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c