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

Commit 327affb3 authored by Yan He's avatar Yan He
Browse files

msm: pcie: add IOMMU_DEVICE for MMIO mapping



PCIe bus driver maps registers to IOVA. So add IOMMU_DEVICE flag for
the mapping here.

Change-Id: Idfeb43ac0f93c68082f308d0db744a65f0c65f41
Signed-off-by: default avatarYan He <yanhe@codeaurora.org>
parent 5404e350
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5857,7 +5857,7 @@ static int msm_pcie_map_qgic_addr(struct msm_pcie_dev_t *dev,
	}

	ret = iommu_map(domain, iova, rounddown(dev->msi_gicm_addr, PAGE_SIZE),
			PAGE_SIZE, IOMMU_READ | IOMMU_WRITE);
			PAGE_SIZE, IOMMU_READ | IOMMU_WRITE | IOMMU_DEVICE);
	if (ret < 0) {
		PCIE_ERR(dev,
			"PCIe: RC%d: ret: %d: Could not do iommu map for QGIC address\n",