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

Commit b62f6a76 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

Revert "iommu: io-pgtable-arm: flush tlb for stale mappings"



This reverts commit 713d52a0 ("iommu: io-pgtable-arm: flush tlb for
stale mappings"), which was a workaround for some other bugs in the page
table mapping code.  Those bugs have since been fixed, so the workaround
is no longer needed.

Change-Id: Ic699328dd60baffd1c6080e6b0d9b2fb0feea831
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 59fe7e61
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -207,13 +207,9 @@ static int arm_lpae_init_pte(struct arm_lpae_io_pgtable *data,

	/* We require an unmap first */
	if (iopte_leaf(*ptep, lvl)) {
		if (!suppress_map_failures) {
			*ptep = 0;
			data->iop.cfg.tlb->tlb_flush_all(data->iop.cookie);
		} else {
		WARN_ON(!suppress_map_failures);
		return -EEXIST;
	}
	}

	if (data->iop.cfg.quirks & IO_PGTABLE_QUIRK_ARM_NS)
		pte |= ARM_LPAE_PTE_NS;