]> git.baikalelectronics.ru Git - kernel.git/commit
x86/dma/amd-gart: Stop resizing dma_debug_entry pool
authorRobin Murphy <robin.murphy@arm.com>
Mon, 10 Dec 2018 14:00:31 +0000 (14:00 +0000)
committerChristoph Hellwig <hch@lst.de>
Tue, 11 Dec 2018 13:32:12 +0000 (14:32 +0100)
commit523d8071d7f63f8ad50aea008b8c00584aa8bc54
tree216128ca9be3b97e771a4f1b0f31aae1acee9a2a
parent57bb9d00ac9f2fc53725d4a93f63cc2639cb7d43
x86/dma/amd-gart: Stop resizing dma_debug_entry pool

dma-debug is now capable of adding new entries to its pool on-demand if
the initial preallocation was insufficient, so the IOMMU_LEAK logic no
longer needs to explicitly change the pool size. This does lose it the
ability to save a couple of megabytes of RAM by reducing the pool size
below its default, but it seems unlikely that that is a realistic
concern these days (or indeed that anyone is actively debugging AGP
drivers' DMA usage any more). Getting rid of dma_debug_resize_entries()
will make room for further streamlining in the dma-debug code itself.

Removing the call reveals quite a lot of cruft which has been useless
for nearly a decade since commit d96b314c2922 ("x86 gart: reimplement
IOMMU_LEAK feature by using DMA_API_DEBUG"), including the entire
'iommu=leak' parameter, which controlled nothing except whether
dma_debug_resize_entries() was called or not.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Qian Cai <cai@lca.pw>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Documentation/x86/x86_64/boot-options.txt
arch/x86/kernel/amd_gart_64.c