]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Mark i915.inject_load_failure as being hit
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Jun 2018 14:41:53 +0000 (15:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Jun 2018 17:37:30 +0000 (18:37 +0100)
commitbd23c85a79f7e28a54e64ac3eaefc1e68a6e1c34
tree0a14c740134fbdb14920944598d9395fd09cec8b
parentd367f11cc5bc56de5bd86460a0033507cad95b4f
drm/i915: Mark i915.inject_load_failure as being hit

When we reach the magic value and do inject a fault into our module load,
mark the module option as being hit. Since we fail from inside pci
probe, the module load isn't actually aborted and the module (and
parameters) are left lingering. igt can then inspect the parameter on its
synchronous completion of modprobe to see if the fault injection was
successful, and will keeping on injecting new faults until the module
succeeds in loading having surpassed the number of fault points.

v2: Reset to 0 after being hit;

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180606144153.4244-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c