Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2f939ec authored by Jordan Crouse's avatar Jordan Crouse
Browse files

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: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent c49b6e47
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)