drm/i915: Restrict DRM_DEBUG_MM automatic selection
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Nov 2016 13:19:16 +0000 (13:19 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Nov 2016 01:13:48 +0000 (02:13 +0100)
DRM_DEBUG_MM is only valid if the DRM.ko is builtin as currently
depot_save_stack is not exported.

Fixes: 5c7fcf2db027 ("drm/i915: Enable drm_mm debug when enabling DRM_I915_DEBUG")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161108131917.6253-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Kconfig.debug

index 69edf196ed034d761ca85a8c619f8fd65f0a514f..51ba630a134b8e047a4fe79ba2681812e4f875ac 100644 (file)
@@ -21,7 +21,7 @@ config DRM_I915_DEBUG
         select PREEMPT_COUNT
         select X86_MSR # used by igt/pm_rpm
         select DRM_VGEM # used by igt/prime_vgem (dmabuf interop checks)
-        select DRM_DEBUG_MM
+        select DRM_DEBUG_MM if DRM=y
         default n
         help
           Choose this option to turn on extra driver debugging that may affect