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

Commit 4103d662 authored by Robin Murphy's avatar Robin Murphy Committed by Will Deacon
Browse files

iommu/arm-smmu: Remove arm_smmu_flush_pgtable()



With the io-pgtable code now enforcing its own appropriate sync points,
the vestigial flush_pgtable callback becomes entirely redundant, so
remove it altogether.

Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 87a91b15
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -608,23 +608,10 @@ static void arm_smmu_tlb_inv_range_nosync(unsigned long iova, size_t size,
	}
}

static void arm_smmu_flush_pgtable(void *addr, size_t size, void *cookie)
{
	struct arm_smmu_domain *smmu_domain = cookie;

	/*
	 * Ensure new page tables are visible to a coherent hardware walker.
	 * The page table code deals with flushing for the non-coherent case.
	 */
	if (smmu_domain->smmu->features & ARM_SMMU_FEAT_COHERENT_WALK)
		dsb(ishst);
}

static struct iommu_gather_ops arm_smmu_gather_ops = {
	.tlb_flush_all	= arm_smmu_tlb_inv_context,
	.tlb_add_flush	= arm_smmu_tlb_inv_range_nosync,
	.tlb_sync	= arm_smmu_tlb_sync,
	.flush_pgtable	= arm_smmu_flush_pgtable,
};

static irqreturn_t arm_smmu_context_fault(int irq, void *dev)