[PATCH 5/9] mips: dma_debug: add debug_dma_mapping_error support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Joerg Roedel <joro@xxxxxxxxxx>, a-jacquiot@xxxxxx, fenghua.yu@xxxxxxxxx, catalin.marinas@xxxxxxx, lethal@xxxxxxxxxxxx, benh@xxxxxxxxxxxxxxxxxxx, ralf@xxxxxxxxxxxxxx, tony.luck@xxxxxxxxx, davem@xxxxxxxxxxxxx, m.szyprowski@xxxxxxxxxxx, msalter@xxxxxxxxxx, monstr@xxxxxxxxx, Ming Lei <ming.lei@xxxxxxxxxxxxx>
- Subject: [PATCH 5/9] mips: dma_debug: add debug_dma_mapping_error support
- From: Shuah Khan <shuah.khan@xxxxxx>
- Date: Fri, 23 Nov 2012 14:34:56 -0700
- Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linux-c6x-dev@xxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, linux-sh@xxxxxxxxxxxxxxx, sparclinux@xxxxxxxxxxxxxxx, microblaze-uclinux@xxxxxxxxxxxxxx, shuahkhan@xxxxxxxxx, LKML <linux-kernel@xxxxxxxxxxxxxxx>
- List-id: <linux-ia64.vger.kernel.org>
- Organization: ISS-Linux
- Reply-to: shuah.khan@xxxxxx
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@xxxxxx>
---
arch/mips/include/asm/dma-mapping.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/mips/include/asm/dma-mapping.h b/arch/mips/include/asm/dma-mapping.h
index be39a12..006b43e 100644
--- a/arch/mips/include/asm/dma-mapping.h
+++ b/arch/mips/include/asm/dma-mapping.h
@@ -40,6 +40,8 @@ static inline int dma_supported(struct device *dev, u64 mask)
static inline int dma_mapping_error(struct device *dev, u64 mask)
{
struct dma_map_ops *ops = get_dma_ops(dev);
+
+ debug_dma_mapping_error(dev, mask);
return ops->mapping_error(dev, mask);
}
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]