ANDROID: arm64: dma-mapping: Update iommu dma-ops setup hook parameters

Commit ac6d704679 ("iommu/dma: Pass address limit rather than size to
iommu_setup_dma_ops()") makes it so that the DMA limit is passed
to iommu_setup_dma_ops() for a device. Align
android_vh_iommu_setup_dma_ops() to also expect the DMA limit for the
sake of consistency.

Bug: 195574584
Change-Id: Ic2a3a72442111db3d6ebff75bcf0f5d787d806a0
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
Isaac J. Manjarres
2021-08-04 13:30:17 -07:00
parent 8698c3da64
commit d74067d69e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
dev->dma_coherent = coherent;
if (iommu) {
iommu_setup_dma_ops(dev, dma_base, dma_base + size - 1);
trace_android_vh_iommu_setup_dma_ops(dev, dma_base, size);
trace_android_vh_iommu_setup_dma_ops(dev, dma_base, dma_base + size - 1);
}
#ifdef CONFIG_XEN
+3 -3
View File
@@ -15,12 +15,12 @@
#if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_ANDROID_VENDOR_HOOKS)
DECLARE_HOOK(android_vh_iommu_setup_dma_ops,
TP_PROTO(struct device *dev, u64 dma_base, u64 size),
TP_ARGS(dev, dma_base, size));
TP_PROTO(struct device *dev, u64 dma_base, u64 dma_limit),
TP_ARGS(dev, dma_base, dma_limit));
#else
#define trace_android_vh_iommu_setup_dma_ops(dev, dma_base, size)
#define trace_android_vh_iommu_setup_dma_ops(dev, dma_base, dma_limit)
#endif