History

iommu: Remove unused IOMMU_SYS_CACHE_ONLY flag

The IOMMU_SYS_CACHE_ONLY flag was never exposed via the DMA API and has no in-tree users. Remove it.

Will Deacon committed 6 years ago

Commit ecd72741 parent 9ebcfad2 files · +0 −9Browse files

Unified · Split

2 files
  1. drivers/iommu/io-pgtable-arm.c +0 −3
  2. include/linux/iommu.h +0 −6
drivers/iommu/io-pgtable-arm.c+0−3
@@ -438,9 +438,6 @@ static arm_lpae_iopte arm_lpae_prot_to_pte(struct arm_lpae_io_pgtable *data, · 437 unmodified lines
438438 else if (prot & IOMMU_CACHE)
439439 pte |= (ARM_LPAE_MAIR_ATTR_IDX_CACHE
440440 << ARM_LPAE_PTE_ATTRINDX_SHIFT);
441− else if (prot & IOMMU_SYS_CACHE_ONLY)
442− pte |= (ARM_LPAE_MAIR_ATTR_IDX_INC_OCACHE
443− << ARM_LPAE_PTE_ATTRINDX_SHIFT);
444441 }
445442
446443 if (prot & IOMMU_CACHE)
include/linux/iommu.h+0−6
@@ -31,12 +31,6 @@ · 30 unmodified lines
3131 * if the IOMMU page table format is equivalent.
3232 */
3333 #define IOMMU_PRIV (1 << 5)
34−/*
35− * Non-coherent masters can use this page protection flag to set cacheable
36− * memory attributes for only a transparent outer level of cache, also known as
37− * the last-level or system cache.
38− */
39−#define IOMMU_SYS_CACHE_ONLY (1 << 6)
4034
4135 struct iommu_ops;
4236 struct iommu_group;