Commit 51e645b6 authored by Chris Wilson's avatar Chris Wilson

drm/i915: Mark the GPU as wedged without error on fault injection

If we have been instructed (by CI) to inject a fault to load the module
with a wedged GPU, do so quietly less we upset CI.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: default avatarMichał Winiarski <michal.winiarski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180607134558.31150-1-chris@chris-wilson.co.uk
parent 39e78234
...@@ -5491,6 +5491,8 @@ int i915_gem_init(struct drm_i915_private *dev_priv) ...@@ -5491,6 +5491,8 @@ int i915_gem_init(struct drm_i915_private *dev_priv)
} }
if (i915_inject_load_failure()) { if (i915_inject_load_failure()) {
DRM_DEBUG_DRIVER("Marking the driver as wedged\n");
i915_gem_set_wedged(dev_priv); /* Fail silently! */
ret = -EIO; ret = -EIO;
goto err_init_hw; goto err_init_hw;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment