OSDN Git Service

drm/i915/selftests: Disable capturing forced error states
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 9 Feb 2020 23:08:35 +0000 (23:08 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 10 Feb 2020 16:46:21 +0000 (16:46 +0000)
When we are forcing the error for a selftest, we don't need to capture
the GPU state (typically).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200209230838.361154-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/mock_context.c

index 8176428..b12ea1d 100644 (file)
@@ -107,6 +107,7 @@ kernel_context(struct drm_i915_private *i915)
 
        i915_gem_context_clear_bannable(ctx);
        i915_gem_context_set_persistence(ctx);
+       i915_gem_context_set_no_error_capture(ctx);
 
        return ctx;
 }