aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/Kconfig2
-rw-r--r--lib/Kconfig.debug11
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/Kconfig b/arch/Kconfig
index 550dab22daa1..830c16a2b801 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -106,3 +106,5 @@ config HAVE_CLK
106 The <linux/clk.h> calls support software clock gating and 106 The <linux/clk.h> calls support software clock gating and
107 thus are a key power management tool on many systems. 107 thus are a key power management tool on many systems.
108 108
109config HAVE_DMA_API_DEBUG
110 bool
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 1bcf9cd4baa0..d9cbada7e2f8 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -902,6 +902,17 @@ config DYNAMIC_PRINTK_DEBUG
902 debugging for all modules. This mode can be turned off via the above 902 debugging for all modules. This mode can be turned off via the above
903 disable command. 903 disable command.
904 904
905config DMA_API_DEBUG
906 bool "Enable debugging of DMA-API usage"
907 depends on HAVE_DMA_API_DEBUG
908 help
909 Enable this option to debug the use of the DMA API by device drivers.
910 With this option you will be able to detect common bugs in device
911 drivers like double-freeing of DMA mappings or freeing mappings that
912 were never allocated.
913 This option causes a performance degredation. Use only if you want
914 to debug device drivers. If unsure, say N.
915
905source "samples/Kconfig" 916source "samples/Kconfig"
906 917
907source "lib/Kconfig.kgdb" 918source "lib/Kconfig.kgdb"