Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: Don't taint when using fault injection

It is not really unexpected to hit wedge on init this way.
We're already downgrading error printk when running with fault injection,
let's use the same approach for CI tainting.

v2: Don't check fault inject in trace dump (Chris)

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200706144107.204821-3-michal@hardline.pl

authored by

Michał Winiarski and committed by
Chris Wilson
fcab594a 65706203

+4 -1
+4 -1
drivers/gpu/drm/i915/i915_utils.c
··· 53 53 { 54 54 __i915_printk(i915, KERN_NOTICE, "CI tainted:%#x by %pS\n", 55 55 taint, (void *)_RET_IP_); 56 - __add_taint_for_CI(taint); 56 + 57 + /* Failures that occur during fault injection testing are expected */ 58 + if (!i915_error_injected()) 59 + __add_taint_for_CI(taint); 57 60 } 58 61 59 62 #if IS_ENABLED(CONFIG_DRM_I915_DEBUG)