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

Commit 53c15a34 authored by Patrick Daly's avatar Patrick Daly Committed by Liam Mark
Browse files

iommu: io-pgtable-arm: Remove duplicate tlb flush



In a previous patch, iommu_unmap was modified to use the tlbiall
operation, but not all instances of tlbiva were removed.
Remove them now to avoid unnecessary work by the cpu.

Change-Id: Ia5a71dfeb363cdf87354c57ef32f9868c0bafa69
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent a60934ca
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -873,16 +873,7 @@ static int __arm_lpae_unmap(struct arm_lpae_io_pgtable *data,
		if (!iopte_tblcnt(*ptep)) {
			/* no valid mappings left under this table. free it. */
			__arm_lpae_set_pte(ptep, 0, &iop->cfg);
			io_pgtable_tlb_add_flush(iop, iova,
						 entries * entry_size,
						 ARM_LPAE_GRANULE(data),
						 false);
			__arm_lpae_free_pgtable(data, lvl + 1, table_base);
		} else {
			io_pgtable_tlb_add_flush(iop, iova,
						 entries * entry_size,
						 ARM_LPAE_GRANULE(data),
						 true);
		}

		return entries * entry_size;