drm/i915: Enable drm_mm debug when enabling DRM_I915_DEBUG
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 29 Oct 2016 18:42:14 +0000 (19:42 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Nov 2016 09:35:52 +0000 (10:35 +0100)
A frequent issue that arises on shutdown is the drm_mm range manager
complaining of a leak. To aide debugging those, drm can now track the
allocation callsite and print those for the leaks.

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/20161029184214.17329-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Kconfig.debug

index cee87bfd10c45f8e9bec618549e07591f81551ad..69edf196ed034d761ca85a8c619f8fd65f0a514f 100644 (file)
@@ -21,6 +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
         default n
         help
           Choose this option to turn on extra driver debugging that may affect