drm/i915/guc: Add work queue to trigger a GT reset
authorMatthew Brost <matthew.brost@intel.com>
Fri, 21 Jan 2022 04:31:17 +0000 (20:31 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 21 Jan 2022 23:46:42 +0000 (15:46 -0800)
commit1f73a367420c954f5cae2f899ebb9515be093645
tree7feea0d42905ee4d6dbae63ce6d307e715071fd6
parent4f72fc3c7f3d9f29a438bb0e17c7773f2fc8242a
drm/i915/guc: Add work queue to trigger a GT reset

The G2H handler needs to be flushed during a GT reset but a G2H
indicating engine reset failure can trigger a GT reset. Add a worker to
trigger the GT rest when an engine reset failure is received to break
this circular dependency.

v2:
 (John Harrison)
  - Store engine reset mask
  - Fix typo in commit message
v3:
 (John Harrison)
  - Fix another typo in commit message
  - s/reset_*/reset_fail_*/

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