|
@@ -45,13 +45,13 @@ static void msm_iommu_detach(struct msm_mmu *mmu, const char * const *names,
|
|
|
iommu_detach_device(iommu->domain, mmu->dev);
|
|
|
}
|
|
|
|
|
|
-static int msm_iommu_map(struct msm_mmu *mmu, uint32_t iova,
|
|
|
+static int msm_iommu_map(struct msm_mmu *mmu, uint64_t iova,
|
|
|
struct sg_table *sgt, unsigned len, int prot)
|
|
|
{
|
|
|
struct msm_iommu *iommu = to_msm_iommu(mmu);
|
|
|
struct iommu_domain *domain = iommu->domain;
|
|
|
struct scatterlist *sg;
|
|
|
- unsigned int da = iova;
|
|
|
+ unsigned long da = iova;
|
|
|
unsigned int i, j;
|
|
|
int ret;
|
|
|
|
|
@@ -62,7 +62,7 @@ static int msm_iommu_map(struct msm_mmu *mmu, uint32_t iova,
|
|
|
dma_addr_t pa = sg_phys(sg) - sg->offset;
|
|
|
size_t bytes = sg->length + sg->offset;
|
|
|
|
|
|
- VERB("map[%d]: %08x %08lx(%zx)", i, da, (unsigned long)pa, bytes);
|
|
|
+ VERB("map[%d]: %08lx %08lx(%zx)", i, da, (unsigned long)pa, bytes);
|
|
|
|
|
|
ret = iommu_map(domain, da, pa, bytes, prot);
|
|
|
if (ret)
|
|
@@ -84,13 +84,13 @@ fail:
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-static int msm_iommu_unmap(struct msm_mmu *mmu, uint32_t iova,
|
|
|
+static int msm_iommu_unmap(struct msm_mmu *mmu, uint64_t iova,
|
|
|
struct sg_table *sgt, unsigned len)
|
|
|
{
|
|
|
struct msm_iommu *iommu = to_msm_iommu(mmu);
|
|
|
struct iommu_domain *domain = iommu->domain;
|
|
|
struct scatterlist *sg;
|
|
|
- unsigned int da = iova;
|
|
|
+ unsigned long da = iova;
|
|
|
int i;
|
|
|
|
|
|
for_each_sg(sgt->sgl, sg, sgt->nents, i) {
|
|
@@ -101,7 +101,7 @@ static int msm_iommu_unmap(struct msm_mmu *mmu, uint32_t iova,
|
|
|
if (unmapped < bytes)
|
|
|
return unmapped;
|
|
|
|
|
|
- VERB("unmap[%d]: %08x(%zx)", i, da, bytes);
|
|
|
+ VERB("unmap[%d]: %08lx(%zx)", i, da, bytes);
|
|
|
|
|
|
BUG_ON(!PAGE_ALIGNED(bytes));
|
|
|
|