Re: [PATCH 0/3] dma-debug: add additional checks
From: Joerg Roedel
Date: Tue Mar 17 2009 - 08:01:44 EST
On Mon, Mar 16, 2009 at 06:05:27PM +0100, Joerg Roedel wrote:
> Hi,
>
> this small series of patches adds three additional checks to the dma-api
> debugging code. The first one checks if dma mappings are requested for
> kernel text or rodata segments.
> The second check added makes noise if a device is unbound from its
> driver and there are still pending dma allocations we are aware of.
>
> Joerg
>
> diffstat:
>
> arch/x86/kernel/pci-dma.c | 4 ++
> include/linux/dma-debug.h | 7 ++++
> lib/dma-debug.c | 81 ++++++++++++++++++++++++++++++++++++++++++++-
> 3 files changed, 91 insertions(+), 1 deletions(-)
Ingo,
you can also pull these patches from my dma-api/debug branch at
git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu.git dma-api/debug
including the other dma-debug patches relative to your tip/core/iommu
branch.
The complete diffstat and shortlog against tip/core/iommu is here:
Documentation/DMA-API.txt | 106 ++++
Documentation/kernel-parameters.txt | 10 +
arch/Kconfig | 2 +
arch/x86/Kconfig | 1 +
arch/x86/include/asm/dma-mapping.h | 45 ++-
arch/x86/kernel/pci-dma.c | 10 +
include/linux/dma-debug.h | 174 +++++++
lib/Kconfig.debug | 11 +
lib/Makefile | 2 +
lib/dma-debug.c | 949 +++++++++++++++++++++++++++++++++++
10 files changed, 1304 insertions(+), 6 deletions(-)
David Woodhouse (2):
dma-debug: add function to dump dma mappings
dma-debug: print stacktrace of mapping path on unmap error
Joerg Roedel (19):
dma-debug: add Kconfig entry
dma-debug: add header file and core data structures
dma-debug: add hash functions for dma_debug_entries
dma-debug: add allocator code
dma-debug: add initialization code
dma-debug: add kernel command line parameters
dma-debug: add debugfs interface
dma-debug: add core checking functions
dma-debug: add checking for map/unmap_page/single
dma-debug: add add checking for map/unmap_sg
dma-debug: add checking for [alloc|free]_coherent
dma-debug: add checks for sync_single_*
dma-debug: add checks for sync_single_range_*
dma-debug: add checks for sync_single_sg_*
dma-debug: x86 architecture bindings
dma-debug: Documentation update
dma-debug: add checks for kernel text and rodata
dma-debug: add a check dma memory leaks
dma-debug/x86: register pci bus for dma-debug leak detection
Joerg
--
| Advanced Micro Devices GmbH
Operating | Karl-Hammerschmidt-Str. 34, 85609 Dornach bei MÃnchen
System |
Research | GeschÃftsfÃhrer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni
Center | Sitz: Dornach, Gemeinde Aschheim, Landkreis MÃnchen
| Registergericht MÃnchen, HRB Nr. 43632
--
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/