[2.6.35-rc3] select useful number of entries for DMA debugging...

From: Daniel J Blueman
Date: Mon Jul 05 2010 - 04:35:45 EST


When booting 2.6.35-rc3 on some different x86 boxes with DMA debugging
enabled, I've consistently seen it exhaust the allocated entries during
boot, giving 'DMA-API: debugging out of memory - disabling'.

Increase number of entries to allow DMA debugging again.

Signed-off-by: Daniel J Blueman <daniel.blueman@xxxxxxxxx>

diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c
index 4b7e3d8..5ff7f12 100644
--- a/arch/x86/kernel/pci-dma.c
+++ b/arch/x86/kernel/pci-dma.c
@@ -53,7 +53,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)
{
--
Daniel J Blueman
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/