linux-mips
[Top] [All Lists]

[PATCH 9/9] tile: dma_debug: add debug_dma_mapping_error support

To: Joerg Roedel <joro@8bytes.org>, a-jacquiot@ti.com, fenghua.yu@intel.com, catalin.marinas@arm.com, lethal@linux-sh.org, benh@kernel.crashing.org, ralf@linux-mips.org, tony.luck@intel.com, davem@davemloft.net, m.szyprowski@samsung.com, msalter@redhat.com, monstr@monstr.eu, Ming Lei <ming.lei@canonical.com>
Subject: [PATCH 9/9] tile: dma_debug: add debug_dma_mapping_error support
From: Shuah Khan <shuah.khan@hp.com>
Date: Fri, 23 Nov 2012 14:37:54 -0700
Cc: linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, microblaze-uclinux@itee.uq.edu.au, shuahkhan@gmail.com, LKML <linux-kernel@vger.kernel.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Organization: ISS-Linux
Reply-to: shuah.khan@hp.com
Sender: linux-mips-bounce@linux-mips.org
Add dma-debug interface debug_dma_mapping_error() to debug drivers that fail
to check dma mapping errors on addresses returned by dma_map_single() and
dma_map_page() interfaces.

Signed-off-by: Shuah Khan <shuah.khan@hp.com>
---
 arch/tile/include/asm/dma-mapping.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/tile/include/asm/dma-mapping.h 
b/arch/tile/include/asm/dma-mapping.h
index 4b6247d..f2ff191 100644
--- a/arch/tile/include/asm/dma-mapping.h
+++ b/arch/tile/include/asm/dma-mapping.h
@@ -72,6 +72,7 @@ static inline bool dma_capable(struct device *dev, dma_addr_t 
addr, size_t size)
 static inline int
 dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
 {
+       debug_dma_mapping_error(dev, dma_addr);
        return get_dma_ops(dev)->mapping_error(dev, dma_addr);
 }
 
-- 
1.7.9.5





<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 9/9] tile: dma_debug: add debug_dma_mapping_error support, Shuah Khan <=