From: Michał Winiarski Date: Mon, 6 Jul 2020 14:41:07 +0000 (+0200) Subject: drm/i915: Don't taint when using fault injection X-Git-Tag: howlett/maple_spf/20210104~1335^2~1^2~65 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fcab594a3030d49db933d68bdad398ab8fea265c;p=users%2Fjedix%2Flinux-maple.git 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 Cc: Chris Wilson Cc: Michal Wajdeczko Cc: Petri Latvala Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson Link: https://patchwork.freedesktop.org/patch/msgid/20200706144107.204821-3-michal@hardline.pl --- diff --git a/drivers/gpu/drm/i915/i915_utils.c b/drivers/gpu/drm/i915/i915_utils.c index 01a3d3c941bf..4c305d838016 100644 --- a/drivers/gpu/drm/i915/i915_utils.c +++ b/drivers/gpu/drm/i915/i915_utils.c @@ -53,7 +53,10 @@ void add_taint_for_CI(struct drm_i915_private *i915, unsigned int taint) { __i915_printk(i915, KERN_NOTICE, "CI tainted:%#x by %pS\n", taint, (void *)_RET_IP_); - __add_taint_for_CI(taint); + + /* Failures that occur during fault injection testing are expected */ + if (!i915_error_injected()) + __add_taint_for_CI(taint); } #if IS_ENABLED(CONFIG_DRM_I915_DEBUG)