[Intel-gfx] [PATCH v3 19/19] drm/i915: Add fault injection support
Chris Wilson
chris at chris-wilson.co.uk
Wed Mar 16 12:00:59 UTC 2016
On Wed, Mar 16, 2016 at 01:39:08PM +0200, Imre Deak wrote:
> Add support for forcing an error at selected places in the driver. As an
> example add 4 options to fail during driver loading.
>
> Requested by Chris.
>
> v2:
> - Add fault point for modeset initialization
> - Print debug message when injecting an error
> v3:
> - Rename inject_fault to inject_load_failure, rename the related macros
> and helper accordingly (Chris)
> - Use a counter instead of a mask to identify the failure point (Daniel)
> - Mark the module option as _unsafe and keep i915_params ordered (Joonas)
Now that you have something so simple to use, putting a failure point at
the start and end of each init_func is trivial (to test the local unwind
in each function as well as the global unwind).
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list