Merge branch 'linus' into core/iommu
[sfrench/cifs-2.6.git] / lib / Kconfig.debug
index 8fee0a13ac589a9484b89472274e1d77c44f5f0b..251fa7ba3014947db7fea0ac6950416e27f5bf49 100644 (file)
@@ -912,6 +912,17 @@ config DYNAMIC_DEBUG
 
          See Documentation/dynamic-debug-howto.txt for additional information.
 
+config DMA_API_DEBUG
+       bool "Enable debugging of DMA-API usage"
+       depends on HAVE_DMA_API_DEBUG
+       help
+         Enable this option to debug the use of the DMA API by device drivers.
+         With this option you will be able to detect common bugs in device
+         drivers like double-freeing of DMA mappings or freeing mappings that
+         were never allocated.
+         This option causes a performance degredation.  Use only if you want
+         to debug device drivers. If unsure, say N.
+
 source "samples/Kconfig"
 
 source "lib/Kconfig.kgdb"