Skip to content

Commit

Permalink
drm/i915: Add a fault injection point to WOPCM init
Browse files Browse the repository at this point in the history
Add a fault injection point in the WOPCM initialization path.

v4:
Move the injection inside the WOPCM init function.

Signed-off-by: Jakub Bartmiński <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Michał Winiarski <[email protected]>
Cc: Michal Wajdeczko <[email protected]>
Reviewed-by: Michal Wajdeczko <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
Jakub Bartmiński authored and ickle committed Jul 27, 2018
1 parent 496bcce commit 905febf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/intel_wopcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ int intel_wopcm_init(struct intel_wopcm *wopcm)

GEM_BUG_ON(!wopcm->size);

if (i915_inject_load_failure())
return -E2BIG;

if (guc_fw_size >= wopcm->size) {
DRM_ERROR("GuC FW (%uKiB) is too big to fit in WOPCM.",
guc_fw_size / 1024);
Expand Down

0 comments on commit 905febf

Please sign in to comment.