summaryrefslogtreecommitdiff
path: root/drivers/iommu/iommu-debug.c
diff options
context:
space:
mode:
authorSudarshan Rajagopalan <sudaraja@codeaurora.org>2017-04-20 17:39:20 -0700
committerSudarshan Rajagopalan <sudaraja@codeaurora.org>2017-04-20 17:39:20 -0700
commit0c17028a929f00ec784affd6882c3e5fab31a574 (patch)
tree8d0a55dc15e1b9e4828f327cee4cdd96353deeba /drivers/iommu/iommu-debug.c
parent6ee87610acf2927de5365f456ca0e6529f5c0d1a (diff)
iommu: iommu-debug: assign iova space for fastmap client
With fast mapping, the iova range is zero in the absence of mapping object from the client. In such case, set the iova space using the DOMAIN_ATTR_GEOMETRY dommain attribute. CRs-Fixed: 2020868 Change-Id: I28790728c02ecb2d0a921bf5a218fb8b16662619 Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
Diffstat (limited to 'drivers/iommu/iommu-debug.c')
-rw-r--r--drivers/iommu/iommu-debug.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/iommu/iommu-debug.c b/drivers/iommu/iommu-debug.c
index 75fcde6e2c20..22b4934df6df 100644
--- a/drivers/iommu/iommu-debug.c
+++ b/drivers/iommu/iommu-debug.c
@@ -787,9 +787,13 @@ static int iommu_debug_profiling_fast_show(struct seq_file *s, void *ignored)
enum iommu_attr attrs[] = {
DOMAIN_ATTR_FAST,
DOMAIN_ATTR_ATOMIC,
+ DOMAIN_ATTR_GEOMETRY,
};
int one = 1;
- void *attr_values[] = { &one, &one, &one };
+ struct iommu_domain_geometry geometry = {0, 0, 0};
+ void *attr_values[] = { &one, &one, &geometry};
+
+ geometry.aperture_end = (dma_addr_t)(SZ_1G * 4ULL - 1);
iommu_debug_device_profiling(s, ddev->dev, attrs, attr_values,
ARRAY_SIZE(attrs), sizes);