Re: [PATCH v2 4/8] dma-debug: Dynamically expand the dma_debug_entry pool

2018-12-06 Thread Robin Murphy
On 06/12/2018 14:24, Christoph Hellwig wrote: @@ -47,6 +47,8 @@ #ifndef PREALLOC_DMA_DEBUG_ENTRIES #define PREALLOC_DMA_DEBUG_ENTRIES (1 << 16) #endif FYI, I think we should drop the potential arch hook with the ifndef here once we support the dynamic adjustment. Sure - I have a vague f

Re: [PATCH v2 4/8] dma-debug: Dynamically expand the dma_debug_entry pool

2018-12-06 Thread Christoph Hellwig
> @@ -47,6 +47,8 @@ > #ifndef PREALLOC_DMA_DEBUG_ENTRIES > #define PREALLOC_DMA_DEBUG_ENTRIES (1 << 16) > #endif FYI, I think we should drop the potential arch hook with the ifndef here once we support the dynamic adjustment. > + if (dma_debug_create_entries(DMA_DEBUG_DYNAMIC_ENTRI

[PATCH v2 4/8] dma-debug: Dynamically expand the dma_debug_entry pool

2018-12-05 Thread Robin Murphy
Certain drivers such as large multi-queue network adapters can use pools of mapped DMA buffers larger than the default dma_debug_entry pool of 65536 entries, with the result that merely probing such a device can cause DMA debug to disable itself during boot unless explicitly given an appropriate "d