OSDN Git Service

drm/i915/guc: Check for wedged before doing stuff
authorJohn Harrison <John.C.Harrison@Intel.com>
Tue, 21 Dec 2021 21:02:12 +0000 (13:02 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 23 Dec 2021 19:43:40 +0000 (11:43 -0800)
commitc3c2ac4c77ee2191ae2f1e8d140a59e852104e3b
tree13114cf45b60c673f30ae5316696c18f18411f57
parenta88afcfa258672601eda5966439d2fc310a34cb7
drm/i915/guc: Check for wedged before doing stuff

A fault injection probe test hit a BUG_ON in a GuC error path. It
showed that the GuC code could potentially attempt to do many things
when the device is actually wedged. So, add a check in to prevent that.

v2: Use intel_gt_is_wedged instead of testing bits directly in the
GuC submission code (review feedback from Tvrtko).

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