]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/i915: Squelch very verbose error logging
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 06:53:06 +0000 (07:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 10:23:47 +0000 (11:23 +0100)
Having found the error causing the IGT test to fail, downgrade the
verbose logging so that we stop flooding the syslogs as we deliberately
provoke it many thousands of time during selftests.

References: 10195b1e4411 ("drm/i915: Show vma allocator stack when in doubt")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706065332.15214-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Kconfig.debug
drivers/gpu/drm/i915/i915_vma.c

index 80efee1ff7f38e25f1a4f0910e97700c81035445..96b577f6275291b2a126f2e744a20adf72d6524d 100644 (file)
@@ -51,6 +51,18 @@ config DRM_I915_DEBUG_GEM
 
           If in doubt, say "N".
 
+config DRM_I915_ERRLOG_GEM
+       bool "Insert extra logging (very verbose) for common GEM errors"
+       default n
+       depends on DRM_I915_DEBUG_GEM
+       help
+         Enable additional logging that may help track down the cause of
+         principally userspace errors.
+
+         Recommended for driver developers only.
+
+         If in doubt, say "N".
+
 config DRM_I915_TRACE_GEM
        bool "Insert extra ftrace output from the GEM internals"
        depends on DRM_I915_DEBUG_GEM
index de2b6d65e865e2a99a979a7f9e280dc852408cb8..518de47111ff262d30a9b4a6e872e2665dfc4365 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <drm/drm_gem.h>
 
-#if IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM) && IS_ENABLED(CONFIG_DRM_DEBUG_MM)
+#if IS_ENABLED(CONFIG_DRM_I915_ERRLOG_GEM) && IS_ENABLED(CONFIG_DRM_DEBUG_MM)
 
 #include <linux/stackdepot.h>