]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Implement multi-lrc reset
authorMatthew Brost <matthew.brost@intel.com>
Thu, 14 Oct 2021 17:19:54 +0000 (10:19 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 15 Oct 2021 17:45:44 +0000 (10:45 -0700)
commit13d6789917c2ac2932eaebe4ac62f8666c022663
treed4b63d9a17627f4edd416755ea2d5d4418e2cd54
parentf141b6ad3db083777768c4ae6b8f2c0d49794d53
drm/i915/guc: Implement multi-lrc reset

Update context and full GPU reset to work with multi-lrc. The idea is
parent context tracks all the active requests inflight for itself and
its children. The parent context owns the reset replaying / canceling
requests as needed.

v2:
 (John Harrison)
  - Simply loop in find active request
  - Add comments to find ative request / reset loop
v3:
 (John Harrison)
  - s/its'/its/g
  - Fix comment when searching for active request
  - Reorder if state in __guc_reset_context
v4:
 (Kernel test robot)
  - Delete unused is_multi_lrc function

Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211014172005.27155-15-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/intel_context.c
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c