Skip to content

Commit ecd7274

Browse files
committed
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. Cc: Robin Murphy <[email protected]> Cc: "Isaac J. Manjarres" <[email protected]> Cc: Joerg Roedel <[email protected]> Cc: Rob Clark <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Sai Prakash Ranjan <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 9ebcfad commit ecd7274

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

drivers/iommu/io-pgtable-arm.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,6 @@ static arm_lpae_iopte arm_lpae_prot_to_pte(struct arm_lpae_io_pgtable *data,
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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
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;

0 commit comments

Comments
 (0)