[PATCH 01/16] dma-debug: add Kconfig entry

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joerg Roedel
Date: Friday, January 9, 2009 - 9:19 am

Impact: add a Kconfig entry for DMA-API debugging

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
---
 arch/Kconfig      |    2 ++
 lib/Kconfig.debug |   11 +++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/arch/Kconfig b/arch/Kconfig
index 2e13aa2..068554c 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -103,3 +103,5 @@ config HAVE_CLK
 	  The <linux/clk.h> calls support software clock gating and
 	  thus are a key power management tool on many systems.
 
+config HAVE_DMA_API_DEBUG
+	bool
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 2e75478..cba5778 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -899,6 +899,17 @@ config DYNAMIC_PRINTK_DEBUG
 	  debugging for all modules. This mode can be turned off via the above
 	  disable command.
 
+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"
-- 
1.5.6.4


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/16] DMA-API debugging facility v2, Joerg Roedel, (Fri Jan 9, 9:19 am)
[PATCH 01/16] dma-debug: add Kconfig entry, Joerg Roedel, (Fri Jan 9, 9:19 am)
[PATCH 04/16] dma-debug: add allocator code, Joerg Roedel, (Fri Jan 9, 9:19 am)
[PATCH 05/16] dma-debug: add initialization code, Joerg Roedel, (Fri Jan 9, 9:19 am)
[PATCH 07/16] dma-debug: add debugfs interface, Joerg Roedel, (Fri Jan 9, 9:19 am)
[PATCH 08/16] dma-debug: add core checking functions, Joerg Roedel, (Fri Jan 9, 9:19 am)
[PATCH 12/16] dma-debug: add checks for sync_single_*, Joerg Roedel, (Fri Jan 9, 9:19 am)
[PATCH 15/16] dma-debug: x86 architecture bindings, Joerg Roedel, (Fri Jan 9, 9:19 am)
[PATCH 16/16] dma-debug: Documentation update, Joerg Roedel, (Fri Jan 9, 9:19 am)
Re: [PATCH 05/16] dma-debug: add initialization code, Evgeniy Polyakov, (Fri Jan 9, 10:58 am)
Re: [PATCH 05/16] dma-debug: add initialization code, Joerg Roedel, (Fri Jan 9, 11:17 am)
Re: [PATCH 01/16] dma-debug: add Kconfig entry, Randy Dunlap, (Fri Jan 9, 1:12 pm)
Re: [PATCH 0/16] DMA-API debugging facility v2, Michael Chan, (Fri Jan 9, 2:24 pm)
Re: [PATCH 0/16] DMA-API debugging facility v2, Joerg Roedel, (Fri Jan 9, 3:33 pm)
Re: [PATCH 0/16] DMA-API debugging facility v2, Joerg Roedel, (Fri Jan 9, 3:37 pm)
Re: [PATCH 15/16] dma-debug: x86 architecture bindings, Ingo Molnar, (Sat Jan 10, 4:04 pm)
Re: [PATCH 07/16] dma-debug: add debugfs interface, Ingo Molnar, (Sat Jan 10, 4:08 pm)
Re: [PATCH 07/16] dma-debug: add debugfs interface, Ingo Molnar, (Sat Jan 10, 4:15 pm)
Re: [PATCH 04/16] dma-debug: add allocator code, Ingo Molnar, (Sat Jan 10, 4:43 pm)
Re: [PATCH 15/16] dma-debug: x86 architecture bindings, Ingo Molnar, (Sat Jan 10, 4:48 pm)
Re: [PATCH 0/16] DMA-API debugging facility v2, Ingo Molnar, (Sat Jan 10, 4:54 pm)
Re: [PATCH 0/16] DMA-API debugging facility v2, FUJITA Tomonori, (Sat Jan 10, 11:25 pm)
Re: [PATCH 15/16] dma-debug: x86 architecture bindings, FUJITA Tomonori, (Sat Jan 10, 11:25 pm)
Re: [PATCH 07/16] dma-debug: add debugfs interface, Joerg Roedel, (Sun Jan 11, 12:52 am)
Re: [PATCH 08/16] dma-debug: add core checking functions, Joerg Roedel, (Sun Jan 11, 12:54 am)
Re: [PATCH 08/16] dma-debug: add core checking functions, Joerg Roedel, (Sun Jan 11, 12:57 am)
Re: [PATCH 15/16] dma-debug: x86 architecture bindings, Joerg Roedel, (Sun Jan 11, 1:08 am)
Re: [PATCH 0/16] DMA-API debugging facility v2, Joerg Roedel, (Sun Jan 11, 1:11 am)
Re: [PATCH 07/16] dma-debug: add debugfs interface, Joerg Roedel, (Wed Jan 14, 8:22 am)
Re: [PATCH 0/16] DMA-API debugging facility v2, David Woodhouse, (Thu Feb 5, 3:52 pm)
Re: [PATCH 0/16] DMA-API debugging facility v2, Chris Wright, (Thu Feb 5, 7:05 pm)
Re: [PATCH 0/16] DMA-API debugging facility v2, Chris Wright, (Thu Feb 5, 7:27 pm)
Re: [PATCH 0/16] DMA-API debugging facility v2, David Woodhouse, (Fri Feb 6, 12:56 am)
Re: [PATCH 0/16] DMA-API debugging facility v2, Chris Wright, (Fri Feb 6, 9:08 am)
Re: [PATCH 0/16] DMA-API debugging facility v2, Chris Wright, (Fri Feb 6, 11:20 am)
Re: [PATCH 0/16] DMA-API debugging facility v2, Joerg Roedel, (Thu Feb 12, 7:48 am)
Re: [PATCH 0/16] DMA-API debugging facility v2, Joerg Roedel, (Thu Feb 12, 8:20 am)