android_kernel_oneplus_msm8998/drivers/iommu
Mitchel Humpherys 94c107c426 iommu/io-pgtable-fast: Prove correctness of TLB maintenance
A common software error when it comes to page table code is missing TLB
maintenance.  Add some checks to the io-pgtable-fast code to detect when
an address that might be stale in the TLB is being re-used.  This can be
accomplished by writing a "stale TLB" flag value to the reserved bits of
the PTE during unmap and then removing the flag value when the TLBs are
invalidated (by sweeping the entire page table).  That way, whenever we
map we can know that there might be a stale TLB in the location being
mapped into if it contains the "stale TLB" flag value.

CRs-Fixed: 997751
Change-Id: Icf9c1e41977cb71e8b137190adb3b4a201c339da
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-05-20 19:24:04 -07:00
..
amd_iommu.c
amd_iommu_init.c
amd_iommu_proto.h
amd_iommu_types.h
amd_iommu_v2.c
arm-smmu-v3.c
arm-smmu.c iommu/arm-smmu: Implement DOMAIN_ATTR_PGTBL_INFO 2016-05-20 19:23:59 -07:00
dma-iommu.c
dma-mapping-fast.c iommu/io-pgtable-fast: Prove correctness of TLB maintenance 2016-05-20 19:24:04 -07:00
dmar.c
exynos-iommu.c
fsl_pamu.c
fsl_pamu.h
fsl_pamu_domain.c
fsl_pamu_domain.h
intel-iommu.c
intel-svm.c
intel_irq_remapping.c
io-pgtable-arm.c
io-pgtable-fast.c iommu/io-pgtable-fast: Prove correctness of TLB maintenance 2016-05-20 19:24:04 -07:00
io-pgtable-msm-secure.c iommu/arm-smmu: Add support for slave side protection 2016-03-23 21:25:36 -07:00
io-pgtable.c iommu/io-pgtable: Add fast page table mapper for ARMv8L 2016-05-20 19:23:52 -07:00
io-pgtable.h iommu/io-pgtable: Add fast page table mapper for ARMv8L 2016-05-20 19:23:52 -07:00
iommu-debug.c iommu/iommu-debug: Add debugfs file to enable config clocks 2016-05-20 19:24:03 -07:00
iommu-debug.h iommu/iommu-debug: Maintain list of domains during alloc 2016-05-18 13:42:13 -07:00
iommu-sysfs.c
iommu-traces.c
iommu.c iommu: Support dynamic pgsize_bitmap 2016-05-20 19:23:50 -07:00
iova.c
ipmmu-vmsa.c
irq_remapping.c
irq_remapping.h
Kconfig iommu/io-pgtable-fast: Prove correctness of TLB maintenance 2016-05-20 19:24:04 -07:00
Makefile iommu: Add DMA mapper for io-pgtable-fast 2016-05-20 19:24:00 -07:00
msm_dma_iommu_mapping.c
of_iommu.c
omap-iommu-debug.c
omap-iommu.c
omap-iommu.h
omap-iopgtable.h
rockchip-iommu.c
s390-iommu.c
shmobile-iommu.c
shmobile-ipmmu.c
shmobile-ipmmu.h
tegra-gart.c
tegra-smmu.c