Skip to contentSkip to conversation

x86: bump PREALLOC_DMA_DEBUG_ENTRIES

PATCH In review Maarten Lankhorst 1 participant 2 messages Nov 16, 2012 – Jan 24, 2013 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: bump PREALLOC_DMA_DEBUG_ENTRIES

I ran out of free entries when I had CONFIG_DMA_API_DEBUG enabled. Some other archs seem to default to 65536, so increase this limit for x86 too.

----

arch/x86/kernel/pci-dma.c +1 -1
index de2b7ad..f5597c5 100644
@@ -56,7 +56,7 @@ struct device x86_dma_fallback_dev = {
 EXPORT_SYMBOL(x86_dma_fallback_dev);
 
 /* Number of entries preallocated for DMA-API debugging */
-#define PREALLOC_DMA_DEBUG_ENTRIES       32768
+#define PREALLOC_DMA_DEBUG_ENTRIES       65536
 
 int dma_set_mask(struct device *dev, u64 mask)
 {
#1 lore raw

[tip:x86/urgent] x86/dma-debug: Bump PREALLOC_DMA_DEBUG_ENTRIES

Commit-ID:  73b664ceb5f815c38def1c68912b83f83455e9eb
Gitweb:     http://git.kernel.org/tip/73b664ceb5f815c38def1c68912b83f83455e9eb
Author:     Maarten Lankhorst <[email protected]>
AuthorDate: Fri, 16 Nov 2012 11:17:14 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 24 Jan 2013 17:34:18 +0100

x86/dma-debug: Bump PREALLOC_DMA_DEBUG_ENTRIES

I ran out of free entries when I had CONFIG_DMA_API_DEBUG enabled. Some other archs seem to default to 65536, so increase this limit for x86 too.

----

---
 arch/x86/kernel/pci-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/pci-dma.c +1 -1
index 0f5dec5..872079a 100644
@@ -56,7 +56,7 @@ struct device x86_dma_fallback_dev = {
 EXPORT_SYMBOL(x86_dma_fallback_dev);
 
 /* Number of entries preallocated for DMA-API debugging */
-#define PREALLOC_DMA_DEBUG_ENTRIES       32768
+#define PREALLOC_DMA_DEBUG_ENTRIES       65536
 
 int dma_set_mask(struct device *dev, u64 mask)
 {