drm: Track drm_mm allocators and show leaks on shutdown
[linux-2.6-microblaze.git] / drivers / gpu / drm / Kconfig
index 483059a..25e8e37 100644 (file)
@@ -33,6 +33,19 @@ config DRM_DP_AUX_CHARDEV
          read and write values to arbitrary DPCD registers on the DP aux
          channel.
 
+config DRM_DEBUG_MM
+       bool "Insert extra checks and debug info into the DRM range managers"
+       default n
+       depends on DRM
+       select STACKDEPOT
+       help
+         Enable allocation tracking of memory manager and leak detection on
+         shutdown.
+
+         Recommended for driver developers only.
+
+         If in doubt, say "N".
+
 config DRM_KMS_HELPER
        tristate
        depends on DRM