x86 gart: reimplement IOMMU_LEAK feature by using DMA_API_DEBUG
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 14 Apr 2009 00:43:19 +0000 (09:43 +0900)
committerIngo Molnar <mingo@elte.hu>
Wed, 15 Apr 2009 10:22:47 +0000 (12:22 +0200)
commit19c1a6f5764d787113fa323ffb18be7991208f82
tree97b5c7e9be546ecaf6df41fe1fbec6ec0f816a6b
parente6a1a89d572c31b62d6dcf11a371c7323852d9b2
x86 gart: reimplement IOMMU_LEAK feature by using DMA_API_DEBUG

IOMMU_LEAK, GART's own feature, dumps the used IOMMU entries when
IOMMU entries is full, which might be useful to find a bad driver that
eats IOMMU entries.

DMA_API_DEBUG provides the similar feature, debug_dma_dump_mappings,
and it's better than GART's IOMMU_LEAK feature. GART's IOMMU_LEAK
feature doesn't say who uses IOMMU entries so it's hard to find a bad
driver.

This patch reimplements the GART's IOMMU_LEAK feature by using
DMA_API_DEBUG.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Joerg Roedel <joerg.roedel@amd.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <1239669799-23579-2-git-send-email-fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/Kconfig.debug
arch/x86/kernel/pci-gart_64.c