summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHiroshi Doyu <hdoyu@nvidia.com>2013-02-06 06:15:25 +0200
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:57:07 -0700
commit70fd29cc2c4c16ebe7cae803618852e117cb917a (patch)
tree434c83c3d69ebba56f4e3eb99870453418284d50 /arch
parent837a1bea641e5db489328bbdaeb822ecfa123fc1 (diff)
ARM: dma-mapping: Trace IOMMU atomic allocation
Add dev_dbg() to trance IOMMU atomic allocation, __iommu_{alloc,free}_atomic(). Usage: echo -n 'func __iommu_alloc_atomic +p' > /sys/kernel/debug/dynamic_debug/control echo -n 'func __iommu_free_atomic +p' > /sys/kernel/debug/dynamic_debug/control Change-Id: Ibe322c2d009652eb6b07fd988ff1fff97268e207 Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/197752 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mm/dma-mapping.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
index d84f331d3cbb..6e92fa88abb7 100644
--- a/arch/arm/mm/dma-mapping.c
+++ b/arch/arm/mm/dma-mapping.c
@@ -1396,6 +1396,7 @@ static void *__iommu_alloc_atomic(struct device *dev, size_t size,
if (*handle == DMA_ERROR_CODE)
goto err_mapping;
+ dev_dbg(dev, "%s() %08x(%x)\n", __func__, *handle, size);
return addr;
err_mapping:
@@ -1408,6 +1409,7 @@ static void __iommu_free_atomic(struct device *dev, void *cpu_addr,
{
__iommu_remove_mapping(dev, handle, size);
__free_from_pool(cpu_addr, size);
+ dev_dbg(dev, "%s() %08x(%x)\n", __func__, handle, size);
}
static void *arm_iommu_alloc_attrs(struct device *dev, size_t size,