OSDN Git Service

drm/i915/guc: Flush G2H handler during a GT reset
authorMatthew Brost <matthew.brost@intel.com>
Fri, 21 Jan 2022 04:31:18 +0000 (20:31 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 21 Jan 2022 23:46:44 +0000 (15:46 -0800)
commit5fe0fdd23e3379833f4346b49fa791733c22ed29
treead028afad0fdae285ee316dddb12bee6e78ee97f
parent1f73a367420c954f5cae2f899ebb9515be093645
drm/i915/guc: Flush G2H handler during a GT reset

Now that the error capture is fully decoupled from fence signalling
(request retirement to free memory, which in turn depends on resets) we
can safely flush the G2H handler during a GT reset. This eliminates
corner cases where GuC generated G2H (e.g. engine resets) race with a GT
reset.

v2:
 (John Harrison)
  - Fix typo in commit message (s/is/in)

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-4-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c