diff options
| author | Jordan Crouse <jcrouse@codeaurora.org> | 2017-02-13 10:14:09 -0700 |
|---|---|---|
| committer | Jordan Crouse <jcrouse@codeaurora.org> | 2017-02-13 15:29:46 -0700 |
| commit | a2f939ec05189b9fe36e2186c39be33e583f35f4 (patch) | |
| tree | a0abb093b6cb8b3ce955c3f0fef3fe0f2b1a99df | |
| parent | c49b6e4727f2affd42d946398ee5a6549b2ff4eb (diff) | |
drm/msm: Use phys_addr_t for physical addresses
Use phys_addr_t to store physical addresses destined for iommu_map() to
support targets that can have more than 32 bits of physical address space.
Change-Id: Ic0dedbad8d87bf05c602bccdd48338086d76478d
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
| -rw-r--r-- | drivers/gpu/drm/msm/msm_iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/msm_iommu.c b/drivers/gpu/drm/msm/msm_iommu.c index 7ac2f1997e4a..ea0ab5d294fc 100644 --- a/drivers/gpu/drm/msm/msm_iommu.c +++ b/drivers/gpu/drm/msm/msm_iommu.c @@ -57,10 +57,10 @@ static int msm_iommu_map(struct msm_mmu *mmu, uint32_t iova, return -EINVAL; for_each_sg(sgt->sgl, sg, sgt->nents, i) { - u32 pa = sg_phys(sg) - sg->offset; + phys_addr_t pa = sg_phys(sg) - sg->offset; size_t bytes = sg->length + sg->offset; - VERB("map[%d]: %08x %08x(%zx)", i, iova, pa, bytes); + VERB("map[%d]: %08x %pa(%zx)", i, iova, &pa, bytes); ret = iommu_map(domain, da, pa, bytes, prot); if (ret) |
