OSDN Git Service

drm/i915/gt: Exercise lrc_wa_ctx initialisation failure
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Jan 2021 11:44:53 +0000 (11:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Jan 2021 16:02:57 +0000 (16:02 +0000)
commit9a437ccb84f09dee148570ca29e0c3b318764098
tree47c29ff5262655f62fc44c4b0aff722083f7c358
parent9b3a8f558ddf8bd406b89698bc62cbaabe098b68
drm/i915/gt: Exercise lrc_wa_ctx initialisation failure

Inject a fault into lrc_init_wa_ctx() to ensure that we can tolerate a
failure to construct the workarounds.

v2: Avoid mentioning an error for fault-injection, other CI will
complain about the dmesg spam.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210109114453.27798-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_execlists_submission.c
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/intel_lrc.h