drm/i915: Restrict DRM_I915_DEBUG to developer builds
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 22 Jan 2021 09:10:58 +0000 (09:10 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 8 Feb 2021 21:56:36 +0000 (16:56 -0500)
Let's not encourage everybody to build i915's debug code, and certainly
not the build robots who need to scrutinise the production build. Since
CI will complain if the debug build is broken, having the other build
bots focus on the builds we don't cover ourselves should improve the
build coverage.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 4f86975f539d ("drm/i915: Add DEBUG_GEM to the recommended CI config")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210122091058.5145-1-chris@chris-wilson.co.uk
(cherry picked from commit c442f658299d59b327a4bf21457ec8ece936f133)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/Kconfig.debug

index be76054..72a38f2 100644 (file)
@@ -19,6 +19,8 @@ config DRM_I915_WERROR
 config DRM_I915_DEBUG
        bool "Enable additional driver debugging"
        depends on DRM_I915
+       depends on EXPERT # only for developers
+       depends on !COMPILE_TEST # never built by robots
        select DEBUG_FS
        select PREEMPT_COUNT
        select I2C_CHARDEV